Class CollectionEditorAreaController
- 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.collectioneditorarea.CollectionEditorAreaController
-
- 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 CollectionEditorAreaController extends DefaultWidgetController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCOMPONENT_NEXTprotected static java.lang.StringCOMPONENT_PREVIOUSprotected org.zkoss.zk.ui.Componenteastprotected WidgetsloteditorAreaprotected Widgetslotlistprotected org.zkoss.zk.ui.HtmlBasedComponentmainCntprotected static java.lang.StringMULTI_REFERENCE_SCLASSprotected org.zkoss.zk.ui.Componentnextprotected org.zkoss.zk.ui.Componentpreviousprotected static java.lang.StringSINGLE_REFERENCE_SCLASSprotected static java.lang.StringSOCKET_INPUT_DATAprotected static java.lang.StringSOCKET_INPUT_MODIFIED_OBJECTprotected static java.lang.StringSOCKET_INPUT_SELECTED_OBJECTprotected static java.lang.StringSOCKET_OUTPUT_EDIT_OBJECTprotected static java.lang.StringSOCKET_OUTPUT_PAGEABLEprotected static java.lang.StringSOCKET_OUTPUT_SINGLE_OBJECT_SAVEDprotected static java.lang.StringWIDGET_SETTING_NAVIGATION_ONprotected static java.lang.StringWIDGET_SETTING_PAGE_SIZEprotected static java.lang.StringWIDGET_STATE_LAST_INPUTprotected static java.lang.StringWIDGET_STATE_SELECTED_OBJECT
-
Constructor Summary
Constructors Constructor Description CollectionEditorAreaController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidapplyAdditionalContextProperties(TypeAwareSelectionContext context)voiddataInput(TypeAwareSelectionContext context)org.zkoss.zk.ui.ComponentgetEast()LabelServicegetLabelService()org.zkoss.zk.ui.HtmlBasedComponentgetMainCnt()org.zkoss.zk.ui.ComponentgetNext()org.zkoss.zk.ui.ComponentgetPrevious()voidhandleModifiedObject(java.lang.Object object)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 booleanisNotFirst(java.lang.Object object)protected booleanisNotLast(java.lang.Object object)voidonDelete(CockpitEvent cockpitEvent)voidselectNext()voidselectObject(java.lang.Object object)voidselectPrevious()protected voidupdateWidgetTitile()Deprecated, for removal: This API element is subject to removal in a future version.since 1808 due to a typoprotected voidupdateWidgetTitle()-
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_INPUT_DATA
protected static final java.lang.String SOCKET_INPUT_DATA
- See Also:
- Constant Field Values
-
SOCKET_INPUT_SELECTED_OBJECT
protected static final java.lang.String SOCKET_INPUT_SELECTED_OBJECT
- See Also:
- Constant Field Values
-
SOCKET_INPUT_MODIFIED_OBJECT
protected static final java.lang.String SOCKET_INPUT_MODIFIED_OBJECT
- See Also:
- Constant Field Values
-
SOCKET_OUTPUT_EDIT_OBJECT
protected static final java.lang.String SOCKET_OUTPUT_EDIT_OBJECT
- See Also:
- Constant Field Values
-
SOCKET_OUTPUT_SINGLE_OBJECT_SAVED
protected static final java.lang.String SOCKET_OUTPUT_SINGLE_OBJECT_SAVED
- See Also:
- Constant Field Values
-
SOCKET_OUTPUT_PAGEABLE
protected static final java.lang.String SOCKET_OUTPUT_PAGEABLE
- See Also:
- Constant Field Values
-
WIDGET_STATE_LAST_INPUT
protected static final java.lang.String WIDGET_STATE_LAST_INPUT
- See Also:
- Constant Field Values
-
WIDGET_STATE_SELECTED_OBJECT
protected static final java.lang.String WIDGET_STATE_SELECTED_OBJECT
- See Also:
- Constant Field Values
-
COMPONENT_NEXT
protected static final java.lang.String COMPONENT_NEXT
- See Also:
- Constant Field Values
-
COMPONENT_PREVIOUS
protected static final java.lang.String COMPONENT_PREVIOUS
- See Also:
- Constant Field Values
-
WIDGET_SETTING_PAGE_SIZE
protected static final java.lang.String WIDGET_SETTING_PAGE_SIZE
- See Also:
- Constant Field Values
-
WIDGET_SETTING_NAVIGATION_ON
protected static final java.lang.String WIDGET_SETTING_NAVIGATION_ON
- See Also:
- Constant Field Values
-
SINGLE_REFERENCE_SCLASS
protected static final java.lang.String SINGLE_REFERENCE_SCLASS
- See Also:
- Constant Field Values
-
MULTI_REFERENCE_SCLASS
protected static final java.lang.String MULTI_REFERENCE_SCLASS
- See Also:
- Constant Field Values
-
next
protected org.zkoss.zk.ui.Component next
-
previous
protected org.zkoss.zk.ui.Component previous
-
east
protected org.zkoss.zk.ui.Component east
-
mainCnt
protected org.zkoss.zk.ui.HtmlBasedComponent mainCnt
-
editorArea
protected Widgetslot editorArea
-
list
protected Widgetslot list
-
-
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
-
applyAdditionalContextProperties
protected void applyAdditionalContextProperties(TypeAwareSelectionContext context)
-
onDelete
public void onDelete(CockpitEvent cockpitEvent)
-
dataInput
public void dataInput(TypeAwareSelectionContext context)
-
selectObject
public void selectObject(java.lang.Object object)
-
handleModifiedObject
public void handleModifiedObject(java.lang.Object object)
-
selectNext
public void selectNext()
-
selectPrevious
public void selectPrevious()
-
updateWidgetTitle
protected void updateWidgetTitle()
-
updateWidgetTitile
@Deprecated(since="1808", forRemoval=true) protected void updateWidgetTitile()Deprecated, for removal: This API element is subject to removal in a future version.since 1808 due to a typo- See Also:
updateWidgetTitle()
-
isNotFirst
protected boolean isNotFirst(java.lang.Object object)
-
isNotLast
protected boolean isNotLast(java.lang.Object object)
-
getNext
public org.zkoss.zk.ui.Component getNext()
-
getPrevious
public org.zkoss.zk.ui.Component getPrevious()
-
getEast
public org.zkoss.zk.ui.Component getEast()
-
getMainCnt
public org.zkoss.zk.ui.HtmlBasedComponent getMainCnt()
-
getLabelService
public LabelService getLabelService()
-
-