|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BrowserMessageDispatcher
Method Summary | |
---|---|
void |
addListener(BrowserMessageListener listener)
Registers the given listener for the given ID. |
void |
dispatch(BrowserMessage message)
Dispatches the given message to the appropriate listener. |
BrowserMessageListener |
getListener(String id)
Returns the listener with the given ID. |
void |
removeListener(BrowserMessageListener listener)
Deregisters the listener with the given ID. |
void |
removeListener(String id)
Deregisters the listener with the given ID. |
Method Detail |
---|
void addListener(BrowserMessageListener listener)
id
- unique identifier used when dispatching messageslistener
- receives messages targetted at the given ID
IllegalStateException
- if another listener is already registered under the same IDvoid dispatch(BrowserMessage message)
message
- holds the listener ID, operation ID and parameters
IllegalArgumentException
- if no listener is registered with the given IDBrowserMessageListener getListener(String id)
id
- unique identifier of the listener to be returned
void removeListener(BrowserMessageListener listener)
id
- unique identifier of the listener to be removedvoid removeListener(String id)
id
- unique identifier of the listener to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |