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>
createViewIntoJAT, 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 |
---|
AbstractModel() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyStyle(ModelConfig<?> mc)
TODO To complete.
|
protected void |
bindInternal()
Bind current object to view's widget.
|
protected V |
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.
|
protected void |
initInternalModel()
Initialize the model.
|
protected void |
prepareView()
Prepare the view by constructing the root node and all its children.
|
V |
view()
Return the view.
|
attachParentListener, bind, finalize, hideInternalView, hideView, initModel, node, processWave, ready, showInternalView, showView
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
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
public AbstractModel()
protected void prepareView()
prepareView
in class AbstractBaseModel<M extends Model>
protected void initInternalModel() throws CoreException
initInternalModel
in class AbstractBaseModel<M extends Model>
CoreException
- if the creation of the view failsprotected void applyStyle(ModelConfig<?> mc)
mc
- public final void doShowView(Wave wave)
wave
- the wave that trigger the actionpublic final void doHideView(Wave wave)
wave
- the wave that trigger the actionprotected void bindInternal()
AbstractBaseModel.bind()
method to add your bindings.bindInternal
in class AbstractBaseModel<M extends Model>
public final V view()
CoreException
protected V buildView() throws CoreException
CoreException
- when han't been built correctlyCopyright © 2011–2016 JRebirth OSS. All rights reserved.