|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a state change event producer. Provides abilities to register and unregister a state change listener and also fires state change events.
Method Summary | |
boolean |
addStateChangeListener(BitSet events,
EbiStateChangeListener listener)
Adds a state change event listener that only listens on a specific set of events. |
boolean |
addStateChangeListener(EbiStateChangeListener listener)
Adds a state change event listener. |
boolean |
addVetoableStateChangeListener(BitSet events,
EbiVetoableStateChangeListener listener)
Adds a vetoable state change event listener that only listens on a specific set of events. |
boolean |
addVetoableStateChangeListener(EbiVetoableStateChangeListener listener)
Adds a vetoable state change event listener. |
void |
fireStateChange(EboStateChangeEvent event)
Fires off a state change event. |
boolean |
fireVetoableStateChange(EboStateChangeEvent event)
Fires off a vetoable state change event. |
Collection |
getListeners()
Gets the list of all regular listeners registered with the producer. |
String |
getScpDescription()
Gets the description of this state change producer. |
EbiLog |
getScpLog()
Gets the log set up for the state change producer |
Collection |
getVetoableListeners()
Gets the list of all vetoable listeners registered with the producer. |
boolean |
hasListeners()
Tells whether the producer has any (regular) listeners registered. |
boolean |
hasVetoableListeners()
Tells whether the producer has any vetoable listeners registered. |
boolean |
removeStateChangeListener(EbiStateChangeListener listener)
Removes a state change event listener. |
boolean |
removeVetoableStateChangeListener(EbiVetoableStateChangeListener listener)
Removes a vetoable state change event listener. |
void |
setScpDescription(String descr)
Sets an (optional) description for the state change producer. |
void |
setScpLog(EbiLog log)
Sets the log for the state change producer |
Method Detail |
public boolean addStateChangeListener(EbiStateChangeListener listener)
listener
- listener to addpublic boolean addVetoableStateChangeListener(EbiVetoableStateChangeListener listener)
listener
- listener to addpublic boolean addStateChangeListener(BitSet events, EbiStateChangeListener listener)
events
- a bit set of event identifierslistener
- listener to addpublic boolean addVetoableStateChangeListener(BitSet events, EbiVetoableStateChangeListener listener)
events
- a bit set of event identifierslistener
- listener to addpublic boolean removeStateChangeListener(EbiStateChangeListener listener)
listener
- listener to removepublic boolean removeVetoableStateChangeListener(EbiVetoableStateChangeListener listener)
listener
- listener to removepublic void fireStateChange(EboStateChangeEvent event)
event
- the event to fire offpublic boolean fireVetoableStateChange(EboStateChangeEvent event)
false
from their vetoableStateChanged
method.
Note that the out-of-the-box implementation of the state change producer
sends the event to vetoable listeners in the same order as they were
added to the producer.event
- the event to fire offpublic void setScpLog(EbiLog log)
log
- the logpublic EbiLog getScpLog()
public void setScpDescription(String descr)
descr
- the description for the state change producerpublic String getScpDescription()
public boolean hasListeners()
public boolean hasVetoableListeners()
public Collection getListeners()
EbiStateChangeListener
's which is
empty if no listeners have been registeredpublic Collection getVetoableListeners()
EbiVetoableStateChangeListener
's
which is empty if no vetoable listeners have been registered
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |