Package io.keikai.ui
Class ModelEventDispatcher
- java.lang.Object
-
- io.keikai.ui.ModelEventDispatcher
-
- All Implemented Interfaces:
EventQueueModelEventListener
,ModelEventListener
,Serializable
public class ModelEventDispatcher extends Object implements EventQueueModelEventListener
To dispatch model event- Since:
- 3.5.0
- Author:
- Dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModelEventDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addEventListener(String name, ModelEventListener listener)
void
onEvent(ModelEvent event)
Override this method to handle the model event.boolean
removeEventListener(String name, ModelEventListener listener)
-
-
-
Method Detail
-
onEvent
public void onEvent(ModelEvent event)
Description copied from interface:ModelEventListener
Override this method to handle the model event.- Specified by:
onEvent
in interfaceModelEventListener
-
addEventListener
public boolean addEventListener(String name, ModelEventListener listener)
-
removeEventListener
public boolean removeEventListener(String name, ModelEventListener listener)
-
-