M - the class type of the current modelpublic abstract class AbstractBaseModel<M extends Model> extends AbstractWaveReady<Model> implements Model
| Modifier and Type | Field and Description |
|---|---|
private Map<InnerModel,Model> |
innerModelMap
The map that store inner models loaded.
|
private Model |
rootModel
The root model not null for inner model.
|
private boolean |
viewDisplayed
Flag used to determine if a view has been already displayed, useful to manage first time animation.
|
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 |
|---|
AbstractBaseModel() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bind()
Bind method to implement for adding custom bindings.
|
protected abstract void |
bindInternal()
Bind current object to view's widget.
|
protected void |
finalize() |
Model |
getInnerModel(InnerModel innerModel)
Get an inner model.
|
Model |
getRootModel()
Return the root model (for inner model).
|
Node |
getRootNode()
Return the root node.
|
protected void |
hideInternalView()
Hide the view.
|
protected abstract void |
hideView()
Perform custom action before hiding the view.
|
protected abstract void |
initInnerModels()
Initialize method for inner models to implement for adding custom processes.
|
protected void |
initInternalInnerModels()
Initialize the included models.
|
protected abstract void |
initInternalModel()
Initialize the model.
|
protected abstract void |
initModel()
Initialize method to implement for adding custom processes.
|
protected abstract void |
processWave(Wave wave)
Process the wave.
|
protected void |
ready()
The component is now ready to do custom initialization tasks.
|
void |
setRootModel(Model rootModel)
Define the root model for an inner model.
|
protected void |
showInternalView()
Show the view.
|
protected abstract void |
showView()
Perform custom user action before showing the view.
|
attachUi, 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, waitdoHideView, doShowView, getViewgetReturnCommand, getReturnWaveType, listen, listen, listen, registerCallback, registerCallback, registerCallback, sendWave, sendWave, unlistengetKey, getLocalFacade, release, setKey, setLocalFacade, setupattachUi, getModelgetService, returnDatacallCommand, callCommand, getCommandprivate Model rootModel
private final Map<InnerModel,Model> innerModelMap
private boolean viewDisplayed
protected final void ready()
throws CoreException
ready in class AbstractWaveReady<Model>CoreException - if an error occurredprotected abstract void initInternalModel()
throws CoreException
CoreException - if the creation of the view failsprotected abstract void initModel()
initModel() method to setup your model.protected final void initInternalInnerModels()
initInnerModels() method to setup your inner models.protected abstract void initInnerModels()
protected abstract void bindInternal()
bind() method to add your bindings.protected abstract void bind()
protected final void showInternalView()
#org.jrebirth.af.core.ui.View.start() or
#org.jrebirth.af.core.ui.View.reload() method
You must implement the showView() method to setup your view.protected abstract void showView()
protected final void hideInternalView()
#org.jrebirth.af.core.ui.View.hide() methodprotected abstract void hideView()
public Node getRootNode()
getRootNode in interface Modelpublic Model getRootModel()
getRootModel in interface Modelpublic void setRootModel(Model rootModel)
setRootModel in interface ModelrootModel - The rootModel to set.public final Model getInnerModel(InnerModel innerModel)
getInnerModel in interface ModelinnerModel - the enumeration entry that describe the inner modelprotected abstract void processWave(Wave wave)
processWave in class AbstractWaveReady<Model>wave - the wave receivedCopyright © 2011–2014 JRebirth OSS. All rights reserved.