Modifier and Type | Class and Description |
---|---|
static class |
EventProvider.events |
Constructor and Description |
---|
EventProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(EventHandler eventHandler,
java.lang.Enum... events)
Add listener to provider with selected type of event(s)
|
void |
clearListeners()
Clearing listeners from event provider
|
protected void |
fireEvent(java.lang.Enum event,
java.lang.Object object,
java.lang.Object oldData,
java.lang.Object newData) |
void |
removeListener(EventHandler eventHandler,
java.lang.Enum... events)
Removes handler from provider
|
void |
removeListeners(java.lang.Enum event)
Removes listeners by event type
|
public void addListener(EventHandler eventHandler, java.lang.Enum... events)
eventHandler
- handler which will be called when event firedevents
- type of events which want to listenpublic void removeListener(EventHandler eventHandler, java.lang.Enum... events)
eventHandler
- handler which want to removeevents
- event typespublic void removeListeners(java.lang.Enum event)
event
- event typepublic void clearListeners()
protected void fireEvent(java.lang.Enum event, java.lang.Object object, java.lang.Object oldData, java.lang.Object newData)