|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventBroadcaster
Central location for listening to and broadcasting editor events. Instance available via ELJBean.getEventBroadcaster()
.
Method Summary | |
---|---|
void |
broadcastEvent(TextEvent event)
Broadcasts an event across the application to all registered listeners. |
void |
broadcastEventOnSwingThread(TextEvent event)
Helper method that uses SwingUtilities.invokeLater(Runnable) to broadcast an event on the swing thread. |
void |
broadcastSimpleEvent(int eventId)
Wraps broadcastEvent(TextEvent) with default extraS and extraI parameters to TextEvent. |
void |
registerBeanEditorListener(EventListener listener)
Adds an editor listener for notification of events. |
void |
removeBeanEditorListener(EventListener listener)
Removes an editor listener. |
Method Detail |
---|
void broadcastEvent(TextEvent event)
event
- The event to be broadcastvoid broadcastSimpleEvent(int eventId)
broadcastEvent(TextEvent)
with default extraS and extraI parameters to TextEvent.
Saves some code when the event doesn't use the extraString or extraInt.
eventId
- An event ID from TextEvent
void broadcastEventOnSwingThread(TextEvent event)
SwingUtilities.invokeLater(Runnable)
to broadcast an event on the swing thread.
event
- Event to broadcastvoid registerBeanEditorListener(EventListener listener)
listener
- Object to add to the listener list.void removeBeanEditorListener(EventListener listener)
listener
- Object to remove from listener list.
|
Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |