Class BorderLayoutWidgetController
- 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.BorderLayoutWidgetController
-
- 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 BorderLayoutWidgetController extends DefaultWidgetController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMP_EAST_IDstatic java.lang.StringCOMP_WEST_IDstatic java.lang.StringOPEN_WEST_ON_SCREEN_RESIZEstatic java.lang.StringSETTING_AUTO_CLOSE_WESTstatic java.lang.StringSETTING_BORDERstatic java.lang.StringSETTING_BROADCAST_HORIZONAL_RESIZEstatic java.lang.StringSETTING_CENTER_BORDERstatic java.lang.StringSETTING_EAST_BORDERstatic java.lang.StringSETTING_EAST_COLLAPSIBLEstatic java.lang.StringSETTING_EAST_WIDTHstatic java.lang.StringSETTING_NORTH_BORDERstatic java.lang.StringSETTING_NORTH_COLLAPSIBLEstatic java.lang.StringSETTING_NORTH_DISABLEDstatic java.lang.StringSETTING_NORTH_HEIGHTstatic java.lang.StringSETTING_OPAQUE_BGstatic java.lang.StringSETTING_SOUTH_BORDERstatic java.lang.StringSETTING_SOUTH_COLLAPSIBLEstatic java.lang.StringSETTING_SOUTH_DISABLEDstatic java.lang.StringSETTING_SOUTH_HEIGHTstatic java.lang.StringSETTING_WEST_BORDERstatic java.lang.StringSETTING_WEST_COLLAPSIBLEstatic java.lang.StringSETTING_WEST_WIDTHstatic java.lang.StringSOCKET_IN_CLOSE_EASTstatic java.lang.StringSOCKET_IN_CLOSE_NORTHstatic java.lang.StringSOCKET_IN_CLOSE_SOUTHstatic java.lang.StringSOCKET_IN_CLOSE_WESTstatic java.lang.StringSOCKET_IN_OPEN_EASTstatic java.lang.StringSOCKET_IN_OPEN_NORTHstatic java.lang.StringSOCKET_IN_OPEN_SOUTHstatic java.lang.StringSOCKET_IN_OPEN_WESTstatic java.lang.StringSOCKET_OUT_RESIZED
-
Constructor Summary
Constructors Constructor Description BorderLayoutWidgetController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseEast()voidcloseNorth()voidcloseSouth()voidcloseWest()org.zkoss.zul.BorderlayoutgetBorderlayout()CockpitEventQueuegetCockpitEventQueue()org.zkoss.zul.EastgetEast()org.zkoss.zul.NorthgetNorth()ResponsiveLayoutStrategygetResponsiveLayoutStrategy()org.zkoss.zul.SouthgetSouth()org.zkoss.zul.WestgetWest()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.voidonEastResize(org.zkoss.zk.ui.event.SizeEvent event)voidonViewInfo(DefaultCockpitEvent globalEvent)voidopenEast()voidopenNorth()voidopenSouth()voidopenWest()-
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_WEST_BORDER
public static final java.lang.String SETTING_WEST_BORDER
- See Also:
- Constant Field Values
-
SETTING_CENTER_BORDER
public static final java.lang.String SETTING_CENTER_BORDER
- See Also:
- Constant Field Values
-
SETTING_SOUTH_BORDER
public static final java.lang.String SETTING_SOUTH_BORDER
- See Also:
- Constant Field Values
-
SETTING_NORTH_BORDER
public static final java.lang.String SETTING_NORTH_BORDER
- See Also:
- Constant Field Values
-
SETTING_EAST_BORDER
public static final java.lang.String SETTING_EAST_BORDER
- See Also:
- Constant Field Values
-
SETTING_BORDER
public static final java.lang.String SETTING_BORDER
- See Also:
- Constant Field Values
-
SETTING_NORTH_DISABLED
public static final java.lang.String SETTING_NORTH_DISABLED
- See Also:
- Constant Field Values
-
SETTING_SOUTH_DISABLED
public static final java.lang.String SETTING_SOUTH_DISABLED
- See Also:
- Constant Field Values
-
SETTING_EAST_WIDTH
public static final java.lang.String SETTING_EAST_WIDTH
- See Also:
- Constant Field Values
-
SETTING_WEST_WIDTH
public static final java.lang.String SETTING_WEST_WIDTH
- See Also:
- Constant Field Values
-
SETTING_OPAQUE_BG
public static final java.lang.String SETTING_OPAQUE_BG
- See Also:
- Constant Field Values
-
SETTING_NORTH_HEIGHT
public static final java.lang.String SETTING_NORTH_HEIGHT
- See Also:
- Constant Field Values
-
SETTING_SOUTH_HEIGHT
public static final java.lang.String SETTING_SOUTH_HEIGHT
- See Also:
- Constant Field Values
-
SETTING_SOUTH_COLLAPSIBLE
public static final java.lang.String SETTING_SOUTH_COLLAPSIBLE
- See Also:
- Constant Field Values
-
SETTING_NORTH_COLLAPSIBLE
public static final java.lang.String SETTING_NORTH_COLLAPSIBLE
- See Also:
- Constant Field Values
-
SETTING_WEST_COLLAPSIBLE
public static final java.lang.String SETTING_WEST_COLLAPSIBLE
- See Also:
- Constant Field Values
-
SETTING_EAST_COLLAPSIBLE
public static final java.lang.String SETTING_EAST_COLLAPSIBLE
- See Also:
- Constant Field Values
-
SETTING_AUTO_CLOSE_WEST
public static final java.lang.String SETTING_AUTO_CLOSE_WEST
- See Also:
- Constant Field Values
-
SETTING_BROADCAST_HORIZONAL_RESIZE
public static final java.lang.String SETTING_BROADCAST_HORIZONAL_RESIZE
- See Also:
- Constant Field Values
-
SOCKET_IN_OPEN_NORTH
public static final java.lang.String SOCKET_IN_OPEN_NORTH
- See Also:
- Constant Field Values
-
SOCKET_IN_OPEN_SOUTH
public static final java.lang.String SOCKET_IN_OPEN_SOUTH
- See Also:
- Constant Field Values
-
SOCKET_IN_OPEN_WEST
public static final java.lang.String SOCKET_IN_OPEN_WEST
- See Also:
- Constant Field Values
-
SOCKET_IN_OPEN_EAST
public static final java.lang.String SOCKET_IN_OPEN_EAST
- See Also:
- Constant Field Values
-
SOCKET_IN_CLOSE_NORTH
public static final java.lang.String SOCKET_IN_CLOSE_NORTH
- See Also:
- Constant Field Values
-
SOCKET_IN_CLOSE_SOUTH
public static final java.lang.String SOCKET_IN_CLOSE_SOUTH
- See Also:
- Constant Field Values
-
SOCKET_IN_CLOSE_WEST
public static final java.lang.String SOCKET_IN_CLOSE_WEST
- See Also:
- Constant Field Values
-
SOCKET_IN_CLOSE_EAST
public static final java.lang.String SOCKET_IN_CLOSE_EAST
- See Also:
- Constant Field Values
-
SOCKET_OUT_RESIZED
public static final java.lang.String SOCKET_OUT_RESIZED
- See Also:
- Constant Field Values
-
OPEN_WEST_ON_SCREEN_RESIZE
public static final java.lang.String OPEN_WEST_ON_SCREEN_RESIZE
- See Also:
- Constant Field Values
-
COMP_WEST_ID
public static final java.lang.String COMP_WEST_ID
- See Also:
- Constant Field Values
-
COMP_EAST_ID
public static final java.lang.String COMP_EAST_ID
- 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
-
onEastResize
public void onEastResize(org.zkoss.zk.ui.event.SizeEvent event)
-
onViewInfo
public void onViewInfo(DefaultCockpitEvent globalEvent)
-
closeEast
public void closeEast()
-
closeWest
public void closeWest()
-
closeSouth
public void closeSouth()
-
closeNorth
public void closeNorth()
-
openEast
public void openEast()
-
openWest
public void openWest()
-
openSouth
public void openSouth()
-
openNorth
public void openNorth()
-
getWest
public org.zkoss.zul.West getWest()
-
getEast
public org.zkoss.zul.East getEast()
-
getSouth
public org.zkoss.zul.South getSouth()
-
getNorth
public org.zkoss.zul.North getNorth()
-
getBorderlayout
public org.zkoss.zul.Borderlayout getBorderlayout()
-
getResponsiveLayoutStrategy
public ResponsiveLayoutStrategy getResponsiveLayoutStrategy()
-
getCockpitEventQueue
public CockpitEventQueue getCockpitEventQueue()
-
-