Class PerspectiveContainerWidgetController
- 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.viewswitcher.ViewSwitcherWidgetController
-
- com.hybris.backoffice.widgets.perspectivecontainer.controller.PerspectiveContainerWidgetController
-
- 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 PerspectiveContainerWidgetController extends ViewSwitcherWidgetController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_CONFIG_CONTEXTstatic java.lang.StringPERSPECTIVES_OUT_SOCKETstatic java.lang.StringPERSPECTIVES_SLOTstatic java.lang.StringPOSSIBLE_PERSPECTIVES_OUT_SOCKETDeprecated, for removal: This API element is subject to removal in a future version.since 6.6 no longer usedstatic java.lang.StringSELECT_PERSPECTIVE_BY_ID_SOCKETstatic java.lang.StringSELECT_PERSPECTIVE_SOCKETstatic java.lang.StringSELECTED_PERSPECTIVE_SOCKETprotected static java.lang.StringSETTING_CONFIG_CONTEXT-
Fields inherited from class com.hybris.backoffice.widgets.viewswitcher.ViewSwitcherWidgetController
EVENT_NAME, MODEL_DESELECTED_VIEWS, MODEL_PARENT, MODEL_VIEWS, SETTING_AUTO_CLOSE, SETTING_DEFAULT_VIEW, SETTING_EVALUATE_EXPRESSION_PATTERN, SETTING_INITIAL_VIEW, SOCKET_INPUT_SELECT_VIEW, SOCKET_OUTPUT_REQUESTED_VIEWS, SOCKET_OUTPUT_SELECTED_VIEWS, SOCKET_OUTPUT_VIEWS_SWITCHED, WIDGETS_SLOT_VIEWS
-
-
Constructor Summary
Constructors Constructor Description PerspectiveContainerWidgetController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CockpitEventQueuegetCockpitEventQueue()protected java.lang.StringgetConfigurationContextCode()WidgetchildrengetPerspectiveContainer()WidgetchildrengetViewsContainer()protected java.lang.StringgetViewsSlotId()protected voidinitialize()protected ActionDefinitionmapToAction(Widget widget)protected voidnotifyViewsRequested(java.util.Collection<java.lang.String> viewsId)protected voidnotifyViewsSelected(java.lang.String viewId)protected voidnotifyViewsSelected(java.util.Collection<java.lang.String> viewsId)protected voidnotifyViewsSwitched(java.util.Collection<java.lang.String> requested, java.util.Collection<java.lang.String> selected, java.util.Collection<java.lang.String> deselected)voidselectPerspective(NavigationNode navigationNode)voidselectPerspectiveById(java.lang.String id)-
Methods inherited from class com.hybris.backoffice.widgets.viewswitcher.ViewSwitcherWidgetController
addSelectedViews, createOnFocusEventListener, evaluateView, evaluateViews, extractViews, filterPossibleWidgets, getDefaultView, getPossibleWidgetInstances, getPossibleWidgets, getResolver, getResolverFactory, getSelectedViewsWidgets, getViewSwitcherUtils, getWidgetAuthorizationService, getWidgetInstanceFacade, initialize, initializeViewSelection, initializeVirtualSockets, notifyViewsFocused, notifyViewsFocused, removeSelectedViews, reset, selectDefaultView, selectViews, selectViews, selectViews, selectViewsImmediately, selectViewsImmediately, setSelectedViews, updateSelectedViewsInModel
-
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
-
PERSPECTIVES_SLOT
public static final java.lang.String PERSPECTIVES_SLOT
- See Also:
- Constant Field Values
-
SELECT_PERSPECTIVE_SOCKET
public static final java.lang.String SELECT_PERSPECTIVE_SOCKET
- See Also:
- Constant Field Values
-
SELECT_PERSPECTIVE_BY_ID_SOCKET
public static final java.lang.String SELECT_PERSPECTIVE_BY_ID_SOCKET
- See Also:
- Constant Field Values
-
SELECTED_PERSPECTIVE_SOCKET
public static final java.lang.String SELECTED_PERSPECTIVE_SOCKET
- See Also:
- Constant Field Values
-
POSSIBLE_PERSPECTIVES_OUT_SOCKET
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String POSSIBLE_PERSPECTIVES_OUT_SOCKETDeprecated, for removal: This API element is subject to removal in a future version.since 6.6 no longer used- See Also:
- Constant Field Values
-
PERSPECTIVES_OUT_SOCKET
public static final java.lang.String PERSPECTIVES_OUT_SOCKET
- See Also:
- Constant Field Values
-
SETTING_CONFIG_CONTEXT
protected static final java.lang.String SETTING_CONFIG_CONTEXT
- See Also:
- Constant Field Values
-
DEFAULT_CONFIG_CONTEXT
protected static final java.lang.String DEFAULT_CONFIG_CONTEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
protected void initialize()
- Overrides:
initializein classViewSwitcherWidgetController
-
selectPerspective
public void selectPerspective(NavigationNode navigationNode)
-
selectPerspectiveById
public void selectPerspectiveById(java.lang.String id)
-
getViewsSlotId
protected java.lang.String getViewsSlotId()
- Overrides:
getViewsSlotIdin classViewSwitcherWidgetController
-
notifyViewsSelected
protected void notifyViewsSelected(java.util.Collection<java.lang.String> viewsId)
- Overrides:
notifyViewsSelectedin classViewSwitcherWidgetController
-
notifyViewsRequested
protected void notifyViewsRequested(java.util.Collection<java.lang.String> viewsId)
- Overrides:
notifyViewsRequestedin classViewSwitcherWidgetController
-
notifyViewsSwitched
protected void notifyViewsSwitched(java.util.Collection<java.lang.String> requested, java.util.Collection<java.lang.String> selected, java.util.Collection<java.lang.String> deselected)- Overrides:
notifyViewsSwitchedin classViewSwitcherWidgetController
-
notifyViewsSelected
protected void notifyViewsSelected(java.lang.String viewId)
-
mapToAction
protected ActionDefinition mapToAction(Widget widget)
-
getConfigurationContextCode
protected java.lang.String getConfigurationContextCode()
- Overrides:
getConfigurationContextCodein classViewSwitcherWidgetController
-
getPerspectiveContainer
public Widgetchildren getPerspectiveContainer()
-
getViewsContainer
public Widgetchildren getViewsContainer()
- Overrides:
getViewsContainerin classViewSwitcherWidgetController
-
getCockpitEventQueue
public CockpitEventQueue getCockpitEventQueue()
-
-