M
- the class type of the current modelpublic abstract class AbstractBaseModel<M extends Model> extends AbstractBehavioredComponent<Model> implements Model
Modifier and Type | Field and Description |
---|---|
protected boolean |
createViewIntoJAT
Force the creation of the View into JAT if set to true (useful when the view has got a WebView).
|
protected boolean |
hasBeenAttached |
innerComponentMap, PROCESS_WAVE_METHOD_NAME, rootComponent
ADD_BEHAVIOR, CALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, COMPONENT_RELEASE_ERROR, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, NOTIFIER_HANDLES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR
booleanItem, byteItem, characterItem, classItem, doubleItem, exceptionItem, floatItem, integerItem, longItem, shortItem, stringItem, voidItem
Constructor and Description |
---|
AbstractBaseModel()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attachParentListener()
Attach a custom listener that will release the mode when the rootNode is removed from its parent.
|
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() |
protected void |
hideInternalView(Wave wave)
Hide the view.
|
protected abstract void |
hideView()
Perform custom action before hiding the view.
|
protected abstract void |
initInternalModel()
Initialize the model.
|
protected abstract void |
initModel()
Initialize method to implement for adding custom processes.
|
Node |
node()
Return the root node.
|
protected abstract void |
prepareView()
Prepare the view by constructing the root node and all its children.
|
protected abstract void |
processWave(Wave wave)
Process the wave.
|
protected void |
ready()
The component is now ready to do custom initialization tasks.
|
protected void |
showInternalView(Wave wave)
Show the view.
|
protected abstract void |
showView()
Perform custom user action before showing the view.
|
addBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavior, manageOptionalData
attachUi, callCommand, callCommand, findInnerComponent, getInnerComponentMap, initInnerComponents, initInternalInnerComponents, listen, listen, listen, release, returnData, rootComponent, rootComponent, sendWave, sendWave, sendWave, setup, unlisten
getCommand, getCommand, getCommands, getCommands, getFirstKeyPart, getKeyPart, getListKeyPart, getModel, getModel, getModels, getModels, getSecondKeyPart, getService, getService, getServices, getServices, getThirdKeyPart, key, key, localFacade, localFacade
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doHideView, doShowView, view
addBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavior
findInnerComponent, listen, listen, listen, rootComponent, rootComponent, sendWave, sendWave, sendWave, unlisten
key, key, localFacade, localFacade, release, setup
attachUi, getModel, getModel, getModels, getModels
getService, getService, getServices, getServices, returnData
callCommand, callCommand, getCommand, getCommand, getCommands, getCommands
protected boolean createViewIntoJAT
protected boolean hasBeenAttached
public AbstractBaseModel()
protected final void ready() throws CoreException
ready
in class AbstractComponent<Model>
CoreException
- if an error occurredprotected abstract void prepareView()
protected abstract void initInternalModel() throws CoreException
CoreException
- if the creation of the view failsprotected abstract void initModel()
initModel()
method to setup your model.protected abstract void bindInternal()
bind()
method to add your bindings.protected abstract void bind()
protected final void showInternalView(Wave wave)
#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(Wave wave)
#org.jrebirth.af.core.ui.View.hide()
methodprotected abstract void hideView()
protected abstract void processWave(Wave wave)
processWave
in class AbstractComponent<Model>
wave
- the wave receivedprotected void attachParentListener()
Copyright © 2011–2016 JRebirth OSS. All rights reserved.