Class PerspectiveChooserWidgetController
- 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.backoffice.widgets.perspectivechooser.controller.PerspectiveChooserWidgetController
-
- 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 PerspectiveChooserWidgetController extends DefaultWidgetController
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classPerspectiveChooserWidgetController.ChooserContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPERSPECTIVE_SELECTED_SOCKETprotected org.zkoss.zk.ui.HtmlBasedComponentperspectiveMenuContainerstatic java.lang.StringPOSSIBLE_PERSPECTIVES_SOCKETDeprecated, for removal: This API element is subject to removal in a future version.since 6.6 no longer user.static java.lang.StringSELECT_PERSPECTIVE_OUTstatic java.lang.StringSOCKET_INPUT_ACTIONS
-
Constructor Summary
Constructors Constructor Description PerspectiveChooserWidgetController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected NavigationTreedecorateNavigationTree(NavigationTree navigationTree)protected voiddoSelectNode(NavigationNode node)protected NavigationTreeformNavigationTree(java.util.Collection<ActionDefinition> actions)protected NavigationContextgetChooserContext()protected java.util.List<NavigationNode>getPermittedPerspectives(NavigationTree navigationTree)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5, allowed perspectives configuration has been moved to View Switcher widgetprotected PerspectiveChooserRenderergetPerspectiveChooserRenderer()PerspectiveInfoServicegetPerspectiveInfoService()org.zkoss.zk.ui.HtmlBasedComponentgetPerspectivesToolbar()protected booleanisSelected(NavigationNode node)protected booleanisSelectionParent(NavigationNode node)protected voidmergeNodes(NavigationNode destination, NavigationNode addon)voidperspectiveSelected(NavigationNode navigationNode)voidreset(CockpitEvent event)voidsetActions(java.util.Collection<ActionDefinition> actions)-
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, initialize, 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
-
SELECT_PERSPECTIVE_OUT
public static final java.lang.String SELECT_PERSPECTIVE_OUT
- See Also:
- Constant Field Values
-
POSSIBLE_PERSPECTIVES_SOCKET
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String POSSIBLE_PERSPECTIVES_SOCKETDeprecated, for removal: This API element is subject to removal in a future version.since 6.6 no longer user.- See Also:
- Constant Field Values
-
PERSPECTIVE_SELECTED_SOCKET
public static final java.lang.String PERSPECTIVE_SELECTED_SOCKET
- See Also:
- Constant Field Values
-
SOCKET_INPUT_ACTIONS
public static final java.lang.String SOCKET_INPUT_ACTIONS
- See Also:
- Constant Field Values
-
perspectiveMenuContainer
protected transient org.zkoss.zk.ui.HtmlBasedComponent perspectiveMenuContainer
-
-
Method Detail
-
reset
public void reset(CockpitEvent event)
-
setActions
public void setActions(java.util.Collection<ActionDefinition> actions)
-
perspectiveSelected
public void perspectiveSelected(NavigationNode navigationNode)
-
getChooserContext
protected NavigationContext getChooserContext()
-
doSelectNode
protected void doSelectNode(NavigationNode node)
-
isSelected
protected boolean isSelected(NavigationNode node)
-
isSelectionParent
protected boolean isSelectionParent(NavigationNode node)
-
mergeNodes
protected void mergeNodes(NavigationNode destination, NavigationNode addon)
-
formNavigationTree
protected NavigationTree formNavigationTree(java.util.Collection<ActionDefinition> actions)
-
decorateNavigationTree
protected NavigationTree decorateNavigationTree(NavigationTree navigationTree)
-
getPermittedPerspectives
@Deprecated(since="6.5", forRemoval=true) protected java.util.List<NavigationNode> getPermittedPerspectives(NavigationTree navigationTree)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5, allowed perspectives configuration has been moved to View Switcher widget
-
getPerspectivesToolbar
public org.zkoss.zk.ui.HtmlBasedComponent getPerspectivesToolbar()
-
getPerspectiveInfoService
public PerspectiveInfoService getPerspectiveInfoService()
-
getPerspectiveChooserRenderer
protected PerspectiveChooserRenderer getPerspectiveChooserRenderer()
-
-