public class StackModel extends DefaultModel<StackModel,StackView>
| Modifier and Type | Field and Description |
|---|---|
private org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> |
currentModelKey
Hold the current model displayed as a page.
|
private org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> |
defaultPageModelKey
The default page model key to display first.
|
private static org.slf4j.Logger |
LOGGER
The Constant LOGGER.
|
innerComponentMap, PROCESS_WAVE_METHOD_NAME, rootComponentADD_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, 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 |
|---|
StackModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
doShowPageEnum(PageEnum pageEnum,
org.jrebirth.af.api.wave.Wave wave)
Show page.
|
void |
doShowPageModel(org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> pageModelKey,
String stackName,
org.jrebirth.af.api.wave.Wave wave)
Show page.
|
org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> |
getDefaultPageModelKey() |
private Class<PageEnum> |
getPageEnumClass()
Returns the page enum class associated to this model.
|
private String |
getStackName()
Returns the current stack name associated to this model.
|
protected void |
initModel() |
private void |
showPage(org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> pageModelKey)
Private method used to show another page.
|
protected void |
showView() |
bind, hideView, initInnerComponents, processWavebindInternal, buildView, doHideView, doShowView, getView, initInternalModelfinalize, getRootNode, hideInternalView, ready, showInternalViewaddBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavior, manageOptionalDataaddInnerComponent, attachUi, callCommand, callCommand, getInnerComponent, getRootComponent, initInternalInnerComponents, listen, listen, listen, release, returnData, sendWave, sendWave, setRootComponent, setup, unlistengetCommand, getCommand, getFirstKeyPart, getKey, getKeyPart, getListKeyPart, getLocalFacade, getModel, getModel, getSecondKeyPart, getService, getService, getThirdKeyPart, setKey, setLocalFacadeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavioraddInnerComponent, getInnerComponent, getRootComponent, listen, listen, listen, sendWave, sendWave, setRootComponent, unlistengetKey, getLocalFacade, release, setKey, setLocalFacade, setupprivate static final org.slf4j.Logger LOGGER
private org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> currentModelKey
private org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> defaultPageModelKey
protected void initModel()
initModel in class DefaultModel<StackModel,StackView>public void doShowPageModel(org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> pageModelKey,
String stackName,
org.jrebirth.af.api.wave.Wave wave)
pageModelKey - the modelKey for the page to showstackName - the unique string tha t identify the stackwave - the wavepublic void doShowPageEnum(PageEnum pageEnum, org.jrebirth.af.api.wave.Wave wave)
pageEnum - the page enum for the model to showwave - the waveprivate Class<PageEnum> getPageEnumClass()
PageEnumprivate String getStackName()
private void showPage(org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> pageModelKey)
pageModelKey - the mdoelKey for the page to showprotected void showView()
showView in class DefaultModel<StackModel,StackView>public org.jrebirth.af.api.key.UniqueKey<? extends org.jrebirth.af.api.ui.Model> getDefaultPageModelKey()
Copyright © 2011–2015 JRebirth OSS. All rights reserved.