Class GlobalLinksController
- 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.globallinks.GlobalLinksController
-
- 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 GlobalLinksController extends DefaultWidgetController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCLASS_GLOBAL_LINKS_CONTAINER_LINKstatic java.lang.StringSCLASS_GLOBAL_LINKS_CONTAINER_LINK_ICONstatic java.lang.StringSCLASS_GLOBAL_LINKS_CONTAINER_LINK_LABELprotected static java.lang.StringSETTING_HIDE_IF_EMPTYprotected static java.lang.StringSETTING_LINKS_COMPONENT_NAME
-
Constructor Summary
Constructors Constructor Description GlobalLinksController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.DivcreateLink(Link link)org.zkoss.zul.DivgetGlobalLinksContainer()org.zkoss.zul.PopupgetGlobalLinksPopup()protected java.lang.StringgetLinkLabel(java.lang.String labelKey)org.zkoss.zul.ToolbarbuttongetToolbarbutton()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.protected LinksloadLinks()protected voidonOpenLink(Link link)protected voidsendRedirect(java.lang.String url, java.lang.String target)-
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
-
SETTING_LINKS_COMPONENT_NAME
protected static final java.lang.String SETTING_LINKS_COMPONENT_NAME
- See Also:
- Constant Field Values
-
SETTING_HIDE_IF_EMPTY
protected static final java.lang.String SETTING_HIDE_IF_EMPTY
- See Also:
- Constant Field Values
-
SCLASS_GLOBAL_LINKS_CONTAINER_LINK
public static final java.lang.String SCLASS_GLOBAL_LINKS_CONTAINER_LINK
- See Also:
- Constant Field Values
-
SCLASS_GLOBAL_LINKS_CONTAINER_LINK_ICON
public static final java.lang.String SCLASS_GLOBAL_LINKS_CONTAINER_LINK_ICON
- See Also:
- Constant Field Values
-
SCLASS_GLOBAL_LINKS_CONTAINER_LINK_LABEL
public static final java.lang.String SCLASS_GLOBAL_LINKS_CONTAINER_LINK_LABEL
- 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
-
createLink
protected org.zkoss.zul.Div createLink(Link link)
-
getLinkLabel
protected java.lang.String getLinkLabel(java.lang.String labelKey)
-
onOpenLink
protected void onOpenLink(Link link)
-
sendRedirect
protected void sendRedirect(java.lang.String url, java.lang.String target)
-
loadLinks
protected Links loadLinks()
-
getGlobalLinksContainer
public org.zkoss.zul.Div getGlobalLinksContainer()
-
getToolbarbutton
public org.zkoss.zul.Toolbarbutton getToolbarbutton()
-
getGlobalLinksPopup
public org.zkoss.zul.Popup getGlobalLinksPopup()
-
-