M - the class type of the current modelV - the class type of the view managed by this modelpublic abstract class AbstractModel<M extends Model,V extends View<?,?,?>> extends AbstractBaseModel<M>
| Modifier and Type | Field and Description |
|---|---|
private V |
view
The dedicated view component.
|
PROCESS_WAVE_METHOD_NAMECALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, USE_DEFAULT_WAVE_HANDLER, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR| Constructor and Description |
|---|
AbstractModel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindInternal()
Bind current object to view's widget.
|
protected void |
buildView()
Create the view it was null.
|
void |
doHideView(Wave wave)
Perform the hide view action triggered by a wave.
|
void |
doShowView(Wave wave)
Perform the show view action triggered by a wave.
|
V |
getView()
Return the view.
|
protected void |
initInternalModel()
Initialize the model.
|
bind, finalize, getInnerModel, getRootModel, getRootNode, hideInternalView, hideView, initInnerModels, initInternalInnerModels, initModel, processWave, ready, setRootModel, showInternalView, showViewattachUi, callCommand, callCommand, getReturnCommand, getReturnWaveType, listen, listen, listen, registerCallback, registerCallback, registerCallback, release, returnData, sendWave, sendWave, setup, unlistengetCommand, getFirstKeyPart, getKey, getListKeyPart, getLocalFacade, getModel, getSecondKeyPart, getService, getThirdKeyPart, setKey, setLocalFacadeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReturnCommand, getReturnWaveType, listen, listen, listen, registerCallback, registerCallback, registerCallback, sendWave, sendWave, unlistengetKey, getLocalFacade, release, setKey, setLocalFacade, setupattachUi, getModelgetService, returnDatacallCommand, callCommand, getCommandprotected void initInternalModel()
throws CoreException
initInternalModel in class AbstractBaseModel<M extends Model>CoreException - if the creation of the view failsprotected void bindInternal()
AbstractBaseModel.bind() method to add your bindings.bindInternal in class AbstractBaseModel<M extends Model>public final void doShowView(Wave wave)
wave - the wave that trigger the actionpublic final void doHideView(Wave wave)
wave - the wave that trigger the actionpublic final V getView()
CoreExceptionprotected void buildView()
Copyright © 2011–2014 JRebirth OSS. All rights reserved.