|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.MessageDispatcher
The MessageDispatcher manages communication between various parts of the framework.
| Field Summary | |
static int |
ACTION_OCCURRED
Indicates that the UndoManager registered an Action. |
static int |
ACTION_REDONE
Indicates that the UndoManager just performed a redo operation. |
static int |
ACTION_UNDONE
Indicates that the UndoManager just performed an undo operation. |
static int |
APP_INIT
Indicates that the application has just been launched. |
static int |
APP_QUIT
Indicates that the application is shutting down. |
static int |
COMMAND_ISSUED
Indicates that the user has issued a command, for example clicked a menu entry. |
static int |
DOCUMENT_DIRTY
Indicates that a documents dirty status has been changed. |
static int |
DOCUMENT_SAVED
Indicates that a document has been saved. |
static int |
DOCUMENT_SELECTED
Indicates that another document has been selected. |
static int |
IO_EXPORTER_REGISTERED
Indicates that the FileIOManager has registered a new FileExporter. |
static int |
IO_LOADER_REGISTERED
Indicates that the FileIOManager has registered a new FileLoader. |
static int |
IO_SAVER_REGISTERED
Indicates that the FileIOManager has registered a new FileSaver. |
static int |
LAST_RESERVED
This is the last message ID reserved by the MDI framework. |
static int |
SELECTION_CHANGED
Indicates that the current selection has been changed. |
static int |
WINDOW_CLOSED
Indicates that a document window has been closed. |
static int |
WINDOW_CREATED
Indicates that a new document window has been created. |
static int |
WINDOW_OPENED
Indicates that a document window has been opened. |
static int |
WINDOW_SELECTED
Indicated that a document window has been selected/activated. |
| Constructor Summary | |
MessageDispatcher()
Creates a new message dispatcher. |
|
| Method Summary | |
int |
countProcessors()
Counts the registered MessageProcessors. |
void |
dispatch(Object source,
int type,
Object argument)
Dispatches a message. |
void |
registerProcessor(MessageProcessor processor)
Register a message processor so that it will be notified of future messages. |
void |
unregisterAllProcessors()
Unregisters all MessageProcessors, so that nobody will be notified of future messages. |
void |
unregisterProcessor(MessageProcessor processor)
Unregister a message processor so that it will no longer be notified of any messages. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int WINDOW_CREATED
public static final int WINDOW_OPENED
public static final int WINDOW_CLOSED
public static final int WINDOW_SELECTED
public static final int APP_INIT
public static final int APP_QUIT
public static final int COMMAND_ISSUED
public static final int SELECTION_CHANGED
public static final int ACTION_OCCURRED
public static final int ACTION_UNDONE
public static final int ACTION_REDONE
public static final int IO_LOADER_REGISTERED
public static final int IO_SAVER_REGISTERED
public static final int IO_EXPORTER_REGISTERED
public static final int DOCUMENT_SELECTED
public static final int DOCUMENT_SAVED
public static final int DOCUMENT_DIRTY
public static final int LAST_RESERVED
| Constructor Detail |
public MessageDispatcher()
Application.getMessageDispatcher().
| Method Detail |
public void registerProcessor(MessageProcessor processor)
processor - the message processorpublic void unregisterProcessor(MessageProcessor processor)
processor - the message processorpublic int countProcessors()
public void unregisterAllProcessors()
public void dispatch(Object source,
int type,
Object argument)
source - the source where this message originated fromtype - the message typeargument - an argument
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||