|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.appframe.IlvDefaultMessageManager
public class IlvDefaultMessageManager
The class IlvDefaultMessageManager manages messages and
actions listeners.
This class is used in Java Standalone applications. It is responsible for dispatching all messages and actions to all listeners that have subscribed.
| Field Summary | |
|---|---|
protected ilog.views.appframe.IlvAList |
msgListeners
Contains all the message listeners. |
| Constructor Summary | |
|---|---|
IlvDefaultMessageManager()
This constructor is protected because this class is a singleton and the instance is created by the {#Get()} method. |
|
| Method Summary | |
|---|---|
void |
addMessageListener(MessageListener listener,
String name)
Adds the object listener to the list of objects that will
receive messages. |
void |
removeMessageListener(MessageListener listener)
Removes the object listener from the list of listeners. |
void |
sendMessage(String targetName,
MessageEvent event)
Sends the specified event to the message listener registered with the message manager with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ilog.views.appframe.IlvAList msgListeners
addMessageListener(MessageListener, String),
removeMessageListener(MessageListener)| Constructor Detail |
|---|
public IlvDefaultMessageManager()
| Method Detail |
|---|
public void addMessageListener(MessageListener listener,
String name)
listener to the list of objects that will
receive messages.
listener - The object to add to the list of messages listeners.name - The listener name.removeMessageListener(MessageListener)public void removeMessageListener(MessageListener listener)
listener from the list of listeners.
listener - The object to remove from the list of message
listeners.addMessageListener(MessageListener, String)
public void sendMessage(String targetName,
MessageEvent event)
targetName - The name associated with the listener to be notified.
This is the same name as used when registering the
listener with the message manager using the method addMessageListener(ilog.views.appframe.event.MessageListener, java.lang.String).
null, the message will be sent to all the listeners
that are registered with the message manager.event - The message event sent to all the listeners registered with
the message manager.addMessageListener(ilog.views.appframe.event.MessageListener, java.lang.String)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||