Class AuthorityGroupSelector
- 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.controller.AuthorityGroupSelector
-
- 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 AuthorityGroupSelector extends DefaultWidgetController
Widget for change the active authority group for the current user.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSOCKET_OUT_AUTHORITYGROUP
-
Constructor Summary
Constructors Constructor Description AuthorityGroupSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.zkoss.zul.ListboxgetAuthorityGroupSelectorListbox()AuthorityGroupServicegetAuthorityGroupService()CockpitEventQueuegetCockpitEventQueue()CockpitUserServicegetCockpitUserService()protected java.lang.StringgetDisplayLabel(AuthorityGroup authorityGroup)org.zkoss.zul.ButtongetSelectorButton()voidinitialize(org.zkoss.zk.ui.Component comp)Displaying all available authority groups for the current user in a list box.protected voidselectAuthorityGroup(java.lang.String code)-
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
-
SOCKET_OUT_AUTHORITYGROUP
public static final java.lang.String SOCKET_OUT_AUTHORITYGROUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp)
Displaying all available authority groups for the current user in a list box. The active authority group will be checked initially. By clicking the proceed button the checked authority group will be send out and the page will be reloaded.- Overrides:
initializein classDefaultWidgetController
-
getDisplayLabel
protected java.lang.String getDisplayLabel(AuthorityGroup authorityGroup)
-
selectAuthorityGroup
protected void selectAuthorityGroup(java.lang.String code)
-
getCockpitUserService
public CockpitUserService getCockpitUserService()
-
getAuthorityGroupService
public AuthorityGroupService getAuthorityGroupService()
-
getCockpitEventQueue
public CockpitEventQueue getCockpitEventQueue()
-
getAuthorityGroupSelectorListbox
public org.zkoss.zul.Listbox getAuthorityGroupSelectorListbox()
-
getSelectorButton
public org.zkoss.zul.Button getSelectorButton()
-
-