Class PreviousItemSelectorController
- java.lang.Object
-
- org.zkoss.zk.ui.event.GenericEventListener
-
- org.zkoss.zk.ui.util.GenericComposer<T>
-
- org.zkoss.zk.ui.util.GenericAutowireComposer<T>
-
- org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
-
- com.hybris.cockpitng.util.ViewAnnotationAwareComposer
-
- com.hybris.cockpitng.util.DefaultWidgetController
-
- com.hybris.cockpitng.widgets.navigation.prev.PreviousItemSelectorController
-
- All Implemented Interfaces:
WidgetController,WidgetDragAndDropAware,WidgetInstanceManagerAware,java.io.Serializable,org.zkoss.zk.ui.event.EventListener,org.zkoss.zk.ui.event.SerializableEventListener,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
public class PreviousItemSelectorController extends DefaultWidgetController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBTN_SCLASSstatic java.lang.StringNAVIGATION_PREV_ITEM_SELECTOR_CONTEXTstatic java.lang.StringNAVIGATION_PREVIOUSstatic java.lang.StringPREVIOUS_BUTTONDeprecated, for removal: This API element is subject to removal in a future version.since 6.6static java.lang.StringPREVIOUS_ITEM_SELECTOR_CONTEXTstatic java.lang.StringPREVIOUS_ITEM_SELECTOR_INVOCATION
-
Constructor Summary
Constructors Constructor Description PreviousItemSelectorController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanSelectPreviousItem()protected NavigationItemSelectorContextgetNavigationItemSelectorContextFromModel()org.zkoss.zul.ButtongetPreviousButton()voidhandleSelectorContext(NavigationItemSelectorContext navigationItemSelectorContext)voidinitialize(org.zkoss.zk.ui.Component comp)Override this method to do initialization stuff for your widget, like initialize widget settings, restore view state from viewmodel, etc.-
Methods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitle
-
Methods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListeners
-
Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivate
-
-
-
-
Field Detail
-
PREVIOUS_ITEM_SELECTOR_CONTEXT
public static final java.lang.String PREVIOUS_ITEM_SELECTOR_CONTEXT
- See Also:
- Constant Field Values
-
PREVIOUS_BUTTON
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String PREVIOUS_BUTTONDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
PREVIOUS_ITEM_SELECTOR_INVOCATION
public static final java.lang.String PREVIOUS_ITEM_SELECTOR_INVOCATION
- See Also:
- Constant Field Values
-
NAVIGATION_PREV_ITEM_SELECTOR_CONTEXT
public static final java.lang.String NAVIGATION_PREV_ITEM_SELECTOR_CONTEXT
- See Also:
- Constant Field Values
-
BTN_SCLASS
public static final java.lang.String BTN_SCLASS
- See Also:
- Constant Field Values
-
NAVIGATION_PREVIOUS
public static final java.lang.String NAVIGATION_PREVIOUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp)
Description copied from class:DefaultWidgetControllerOverride this method to do initialization stuff for your widget, like initialize widget settings, restore view state from viewmodel, etc. This method will be invoked byDefaultWidgetController.doAfterCompose(Component)everytime your widget view is created. SeeGenericForwardComposer.doAfterCompose(Component)for more details.- Overrides:
initializein classDefaultWidgetController
-
handleSelectorContext
public void handleSelectorContext(NavigationItemSelectorContext navigationItemSelectorContext)
-
canSelectPreviousItem
protected boolean canSelectPreviousItem()
-
getNavigationItemSelectorContextFromModel
protected NavigationItemSelectorContext getNavigationItemSelectorContextFromModel()
-
getPreviousButton
public org.zkoss.zul.Button getPreviousButton()
-
-