All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.SimpleEvent.Simple

java.lang.Object
   |
   +----examples.mo.SimpleEvent.Simple

public class Simple
extends Object
implements Serializable
Simple definition of a m-bean.
The m-bean shows how to: The object has three properties:

See Also:
SimpleEvent, SimpleListener

Constructor Index

 o Simple()

Method Index

 o addSimpleListener(SimpleListener)
Register a listener for receiving SimpleEvents events.
 o getClassVersion()
Getter for the "ClassVersion" property.
 o getNbChanges()
Getter for the "NbChanges" property.The method is compliant with the Bean design pattern.
 o getState()
Getter for the "State" property.
 o removeSimpleListener(SimpleListener)
Remove a listener.
 o setState(String)
Getter for the "State" property.

Constructors

 o Simple
 public Simple()

Methods

 o getClassVersion
 public String getClassVersion()
Getter for the "ClassVersion" property. The method is compliant with the Bean design pattern.

Returns:
the current value of the "tClassVersion" property
 o getState
 public String getState()
Getter for the "State" property. The method is compliant with the Bean design pattern.

Returns:
the current value of the "State" property.
 o setState
 public void setState(String s)
Getter for the "State" property. The method is compliant with the Bean design pattern. Each time the method is called, a SimpleEvent will be sent to all the listeners that implements the SimpleListener interface and which is at the time registered with the m-bean.

Returns:
the current value of the "State" property.
 o getNbChanges
 public Integer getNbChanges()
Getter for the "NbChanges" property.The method is compliant with the Bean design pattern.

Returns:
the current value of the "NbChanges" property.
 o addSimpleListener
 public synchronized void addSimpleListener(SimpleListener x)
Register a listener for receiving SimpleEvents events. The method is compliant with the Bean design pattern.

Parameters:
x - the listener to add.
 o removeSimpleListener
 public synchronized void removeSimpleListener(SimpleListener x)
Remove a listener.

Parameters:
x - the listener to remove.

All Packages  Class Hierarchy  This Package  Previous  Next  Index