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
NOT_IMPLEMENTED_YET
Constructor and Description |
---|
AbstractController(V view)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Wave |
callCommand(Class<? extends Command> commandClass,
WaveData<?>... data)
Redirect to
CommandReady.callCommand(Class, WaveData...) . |
protected <WB extends WaveBean> |
callCommand(Class<? extends CommandBean<WB>> commandClass,
WB waveBean)
Redirect to
CommandReady.callCommand(Class, WaveBean) . |
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,
WaveType 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,
WaveType 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, initEventAdapters, initEventHandlers, initInternalEventAdapters, initInternalEventHandlers, model, node, view
public 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, WaveType 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, 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 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 dataprotected Wave callCommand(Class<? extends Command> commandClass, WaveData<?>... data)
CommandReady.callCommand(Class, WaveData...)
.commandClass
- the command class to calldata
- the data to transportprotected <WB extends WaveBean> Wave callCommand(Class<? extends CommandBean<WB>> commandClass, WB waveBean)
CommandReady.callCommand(Class, WaveBean)
.WB
- the type of the wave bean to usedcommandClass
- the command class to callwaveBean
- the WaveBean that holds all required wave dataCopyright © 2011–2016 JRebirth OSS. All rights reserved.