Class NextItemSelectorController
- 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.next.NextItemSelectorController
-
- 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 NextItemSelectorController extends DefaultWidgetController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBTN_SCLASSstatic java.lang.StringNAVIGATION_NEXTstatic java.lang.StringNAVIGATION_NEXT_ITEM_SELECTOR_CONTEXTstatic java.lang.StringNEXT_BUTTONDeprecated, for removal: This API element is subject to removal in a future version.since 6.6static java.lang.StringNEXT_ITEM_SELECTOR_CONTEXTstatic java.lang.StringNEXT_ITEM_SELECTOR_INVOCATION
-
Constructor Summary
Constructors Constructor Description NextItemSelectorController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanSelectNextItem()protected NavigationItemSelectorContextgetNavigationItemSelectorContextFromModel()org.zkoss.zul.ButtongetNextButton()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
-
NEXT_ITEM_SELECTOR_CONTEXT
public static final java.lang.String NEXT_ITEM_SELECTOR_CONTEXT
- See Also:
- Constant Field Values
-
NEXT_BUTTON
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String NEXT_BUTTONDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
NEXT_ITEM_SELECTOR_INVOCATION
public static final java.lang.String NEXT_ITEM_SELECTOR_INVOCATION
- See Also:
- Constant Field Values
-
NAVIGATION_NEXT_ITEM_SELECTOR_CONTEXT
public static final java.lang.String NAVIGATION_NEXT_ITEM_SELECTOR_CONTEXT
- See Also:
- Constant Field Values
-
BTN_SCLASS
public static final java.lang.String BTN_SCLASS
- See Also:
- Constant Field Values
-
NAVIGATION_NEXT
public static final java.lang.String NAVIGATION_NEXT
- 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)
-
canSelectNextItem
protected boolean canSelectNextItem()
-
getNavigationItemSelectorContextFromModel
protected NavigationItemSelectorContext getNavigationItemSelectorContextFromModel()
-
getNextButton
public org.zkoss.zul.Button getNextButton()
-
-