M - the class type of the model of the view controlledV - the class type of the view controlledpublic abstract class AbstractController<M extends Model,V extends View<M,?,?>> extends AbstractBaseController<M,V>
EventAdapter.Linker| Constructor and Description |
|---|
AbstractController(V view)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected <E extends Event> |
linkCommand(Node node,
EventType<E> eventType,
Class<? extends Command> commandClass,
Callback<E,Boolean> callback,
WaveData<?>... waveData)
Link a command to an event triggered on a node.
|
protected <E extends Event> |
linkCommand(Node node,
EventType<E> eventType,
Class<? extends Command> commandClass,
WaveData<?>... waveData)
Link a command to an event triggered on a node.
|
protected <E extends Event> |
linkService(Node node,
EventType<E> eventType,
Class<? extends Service> serviceClass,
WaveTypeBase waveType,
Callback<E,Boolean> callback,
WaveData<?>... waveData)
Link a Service to an event triggered on a node.
|
protected <E extends Event> |
linkService(Node node,
EventType<E> eventType,
Class<? extends Service> serviceClass,
WaveTypeBase waveType,
WaveData<?>... waveData)
Link a Service to an event triggered on a node.
|
protected <E extends Event> |
linkUi(Node node,
EventType<E> eventType,
Class<? extends Model> modelClass,
Callback<E,Boolean> callback,
WaveData<?>... waveData)
Link an User Interface action to an event triggered on a node.
|
protected <E extends Event> |
linkUi(Node node,
EventType<E> eventType,
Class<? extends Model> modelClass,
WaveData<?>... waveData)
Link an User Interface action to an event triggered on a node.
|
protected <E extends Event> |
linkWave(Node node,
EventType<E> eventType,
WaveType waveType,
Callback<E,Boolean> callback,
WaveData<?>... waveData)
Link the creation of a wave to an event triggered on a node.
|
protected <E extends Event> |
linkWave(Node node,
EventType<E> eventType,
WaveType waveType,
WaveData<?>... waveData)
Link the creation of a wave to an event triggered on a node.
|
activate, addAdapter, finalize, getHandler, getModel, getRootNode, getView, initEventAdapters, initEventHandlers, initInternalEventAdapters, initInternalEventHandlerspublic AbstractController(V view) throws CoreException
view - the controlled viewCoreException - if an error occurred while creating event handlersprotected <E extends Event> void linkWave(Node node, EventType<E> eventType, WaveType waveType, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followwaveType - the type of the wave to createwaveData - additional Wave dataprotected <E extends Event> void linkWave(Node node, EventType<E> eventType, WaveType waveType, Callback<E,Boolean> callback, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followwaveType - the type of the wave to createcallback - the call back to use to check if the wave can be sentwaveData - additional Wave dataprotected <E extends Event> void linkCommand(Node node, EventType<E> eventType, Class<? extends Command> commandClass, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followcommandClass - the command to launchwaveData - additional Wave dataprotected <E extends Event> void linkCommand(Node node, EventType<E> eventType, Class<? extends Command> commandClass, Callback<E,Boolean> callback, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followcommandClass - the command to launchcallback - the call back to use to check if the command can be calledwaveData - additional Wave dataprotected <E extends Event> void linkUi(Node node, EventType<E> eventType, Class<? extends Model> modelClass, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followmodelClass - the model to displaywaveData - additional Wave data, Must contain either #JRebirthWaves.ATTACH_UI_NODE_PLACEHOLDER or #JRebirthWaves.ADD_UI_CHILDREN_PLACEHOLDER wave data to indicate where to attach the
created modelprotected <E extends Event> void linkUi(Node node, EventType<E> eventType, Class<? extends Model> modelClass, Callback<E,Boolean> callback, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followmodelClass - the model to displaycallback - the call back to use to check if the ui can be attachedwaveData - additional Wave data, Must contain either #JRebirthWaves.ATTACH_UI_NODE_PLACEHOLDER or #JRebirthWaves.ADD_UI_CHILDREN_PLACEHOLDER wave data to indicate where to attach the
created modelprotected <E extends Event> void linkService(Node node, EventType<E> eventType, Class<? extends Service> serviceClass, WaveTypeBase waveType, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followserviceClass - the service to callwaveType - the method of the service callwaveData - additional Wave dataprotected <E extends Event> void linkService(Node node, EventType<E> eventType, Class<? extends Service> serviceClass, WaveTypeBase waveType, Callback<E,Boolean> callback, WaveData<?>... waveData)
E - The type of JavaFX Event to tracknode - the node to followeventType - the type of the event to followserviceClass - the service to callwaveType - the method of the service callcallback - the call back to use to check if the service can be calledwaveData - additional Wave dataCopyright © 2011–2014 JRebirth OSS. All rights reserved.