Class DefaultEditorAreaController
- 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.baseeditorarea.DefaultEditorAreaController
-
- All Implemented Interfaces:
WidgetController,WidgetDragAndDropAware,WidgetInstanceManagerAware,WidgetVisibilityStateAware,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 DefaultEditorAreaController extends DefaultWidgetController implements WidgetVisibilityStateAware
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringACTION_SLOT_COMPONENT_IDstatic java.lang.StringCOCKPIT_EVENT_CALLBACK_MANAGERDeprecated, for removal: This API element is subject to removal in a future version.since 6.6protected static java.lang.StringCOMP_ID_ACTION_SLOTprotected static java.lang.StringCOMP_ID_ATTRIBUTES_DIVprotected static java.lang.StringCOMP_ID_CANCEL_BTNprotected static java.lang.StringCOMP_ID_SAVE_BTNprotected static java.lang.StringCOMP_ID_VIEW_BTNstatic java.lang.StringEDITOR_AREA_CONFIGURATIONstatic java.lang.StringEDITOR_AREA_WIDTH_REQUESTstatic intFLUID_MAX_WIDTHstatic intFLUID_MIN_WIDTHstatic java.lang.StringGLOBAL_EVENT_ITEM_LOCKED_STATE_CHANGEDprotected static java.lang.StringITEM_VALIDATION_ERROR_MSGDeprecated, for removal: This API element is subject to removal in a future version.since 6.6protected static java.lang.StringITEM_VALIDATION_WARNING_MSGDeprecated, for removal: This API element is subject to removal in a future version.since 6.6static java.lang.StringMODEL_ALL_REFERENCED_OBJECTSDeprecated, for removal: This API element is subject to removal in a future version.since 6.6static java.lang.StringMODEL_CURRENT_OBJECTstatic java.lang.StringMODEL_CURRENT_OBJECT_TYPEstatic java.lang.StringMODEL_EDITOR_AREA_CONFIG_CTXstatic java.lang.StringMODEL_EDITOR_INPUT_DATAstatic java.lang.StringMODEL_FAILURE_NOTIFICATION_IDDeprecated, for removal: This API element is subject to removal in a future version.since 6.6protected static java.lang.StringMODEL_FLUID_VIEW_MODEstatic java.lang.StringMODEL_INPUT_OBJECT_IS_MODIFIEDstatic java.lang.StringMODEL_INPUT_OBJECT_IS_NEWstatic java.lang.StringMODEL_LAST_PINNED_TABstatic java.lang.StringMODEL_SUCCESS_NOTIFICATION_IDDeprecated, for removal: This API element is subject to removal in a future version.since 6.6static java.lang.StringMODEL_VALUE_CHANGEDstatic java.lang.StringON_EDITORS_DETACHEDEvent fired after editors components are detached from EditorArea UIstatic java.lang.StringRESPONSIVE_IMAGE_URLstatic java.lang.StringRESPONSIVE_IMAGE_URL_HOVERstatic java.lang.StringSELECTOR_STATIC_SECTION_SLOTprotected static java.lang.StringSETTING_CONFIGURATION_CONTEXTstatic java.lang.StringSETTING_DISABLE_RESET_FOR_MODIFIED_INPUT_OBJECTprotected static java.lang.StringSETTING_ESSENTIALS_IN_OVERVIEW_TABprotected static java.lang.StringSETTING_FLUID_VIEW_CODEstatic java.lang.StringSETTING_MOLD_ACCORDIONprotected static java.lang.StringSETTING_TITLE_BY_CTXstatic java.lang.StringSOCKET_INPUT_FOCUSstatic java.lang.StringSOCKET_INPUT_OBJECTstatic java.lang.StringSOCKET_INPUT_RESETstatic java.lang.StringSOCKET_INPUT_RESIZEstatic java.lang.StringSOCKET_OUTPUT_OBJECT_SAVEDstatic java.lang.StringSOCKET_OUTPUT_WIDGET_TITLEstatic java.lang.StringSTATIC_IMAGE_URLstatic java.lang.StringSTATIC_IMAGE_URL_HOVERstatic java.lang.StringUSER_NOTIFICATION_CURRENT_ENTITY_AUTOSAVEDDeprecated, for removal: This API element is subject to removal in a future version.since 6.6static java.lang.StringVALIDATION_PATH_PREFIXDeprecated, for removal: This API element is subject to removal in a future version.since 6.6static java.lang.StringYW_STATIC_SECTION_ACTIVEstatic java.lang.StringYW_STATIC_SECTION_INACTIVE
-
Constructor Summary
Constructors Constructor Description DefaultEditorAreaController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected DataTypeadjustCurrentType(java.lang.Object currentObject)protected voidadjustValueState(boolean inputObjectIsModified, boolean inputObjectIsNew)protected voidapplySclassAccordingToWidth(org.zkoss.zk.ui.HtmlBasedComponent targetComponent, int width)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7, useDefaultEditorAreaControllerComponentsSizeDelegate.applySclassAccordingToWidth(int)insted.voidcancelObjectModification()protected ValidationContextcreateValidationContext(boolean applyConfirmed)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerValidationPopupDelegateprotected EditorAreadecorateConfigWithOverviewTab(EditorArea config)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 don't need any more seeDefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration(String, String)protected ValidationResultdoValidate(java.lang.Object objectToValidate, boolean preventBroadcast)protected ValidationResultdoValidate(java.lang.Object objectToValidate, boolean preventBroadcast, boolean applyConfirmed)protected voidexecuteSaveWithConfirmation(Executable save)protected WidgetslotfindStaticSectionSlot()voidfocusAttribute(FocusRequest focusRequest)protected voidfocusAttribute(java.lang.String qualifier)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerValidationPopupDelegate.focusAttribute(String)instead.protected java.lang.StringformatSClass(java.lang.String sclass)ActionsgetActionSlot()org.zkoss.zul.DivgetAttributesDiv()org.zkoss.zul.VlayoutgetBody()org.zkoss.zul.ButtongetCancelButton()protected CockpitLocaleServicegetCockpitLocaleService()protected DefaultEditorAreaControllerComponentsSizeDelegategetComponentsSizeDelegate()DefaultEditorAreaControllerConcurrentModificationDelegategetConcurrentModificationDelegate()protected DefaultEditorAreaControllerConfigurationLoadergetConfigurationLoader()protected java.lang.StringgetCRUDNotificationSource()protected java.lang.StringgetCurrentContext()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.getCurrentContext()instead.protected java.lang.ObjectgetCurrentObject()protected ValidationResultgetCurrentValidationResult()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetDefaultContext()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.getDefaultContext()instead.protected EditorAreagetEditorAreaConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.protected EditorAreagetEditorAreaConfiguration(java.lang.String componentContext)Deprecated, for removal: This API element is subject to removal in a future version.protected WidgetComponentRenderer<org.zkoss.zk.ui.Component,EditorArea,java.lang.Object>getEditorAreaRenderer()Deprecated, for removal: This API element is subject to removal in a future version.since 6.5org.zkoss.zul.LabelgetEditorAreaTitle()protected DefaultEditorAreaControllerFluidModeSwitcherDelegategetFluidModeSwitcherDelegate()protected java.lang.StringgetFluidViewModeCode()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerModelOperationsDelegate.getFluidViewModeCode().protected LabelServicegetLabelService()protected EditorAreaLogicHandlergetLogicHandler()protected DefaultEditorAreaControllerModelOperationsDelegategetModelOperationsDelegate()protected NotificationServicegetNotificationService()protected java.lang.StringgetNotificationSource()Deprecated, for removal: This API element is subject to removal in a future version.protected ObjectFacadegetObjectFacade()protected DefaultEditorAreaControllerPersistenceListenersDelegategetPersistenceListeners()ReferenceModelPropertiesgetReferenceModelProperties()protected NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,EditorArea,java.lang.Object>getRenderer()org.zkoss.zul.ButtongetSaveButton()protected DefaultEditorAreaControllerSettingsLoadergetSettingsLoader()protected EditorAreagetStoredEditorAreaConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetSuccessNotificationId()Deprecated, for removal: This API element is subject to removal in a future version.since 6.6org.zkoss.zk.ui.ComponentgetToolbarContainer()protected TypeFacadegetTypeFacade()protected DefaultEditorAreaControllerValidationPopupDelegategetValidationPopupDelegate()ValidationRenderergetValidationRenderer()org.zkoss.zul.WindowgetValidationResults()org.zkoss.zul.ToolbarbuttongetViewModeButton()protected DefaultEditorAreaControllerWidgetTitleDelegategetWidgetTitleDelegate()voidhandleObjectDeletedEvent(CockpitEvent event)Object deleted global event handler.
Checks if deleted object is equal to current object or if it's referenced by any editor within the editor area.protected voidhandleObjectSavingException(ObjectSavingException savingException)The default implementation just notifies the user viaNotificationService.notifyUser(String, String, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level, Object...).protected voidhandleObjectSavingSuccess(java.lang.Object savedObject)The default implementation just notifies user viaNotificationService.notifyUser(String, String, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level, Object...).voidhandleObjectUpdatedEvent(CockpitEvent event)Object updated global event handler.
Default implementation checks if deleted object is referenced by any editor within the editor area, and if it is, the corresponding editors are reloaded.voidhandleResizeBrowser(CockpitEvent event)voidhandleResizeParent()voidhandleViewModeButtonClick(org.zkoss.zk.ui.event.Event event)voidhandleVisibilityState(WidgetVisibilityState state)Handles state visibility widget state.protected voidinitConfigCtx()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.initContext()instead.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 booleaninputDataAlreadySet(java.lang.Object inputData)protected booleanisFluidViewMode()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerModelOperationsDelegate.isFluidViewMode().protected booleanisModelValueChanged()voiditemLockingChanged(CockpitEvent event)protected EditorArealoadEditorAreaConfiguration(java.lang.String typeCode, java.lang.String component)Deprecated, for removal: This API element is subject to removal in a future version.protected EditorArealookupEditorAreaConfiguration(DataType dataType, java.lang.String componentContext)Deprecated, for removal: This API element is subject to removal in a future version.protected EditorAreaLogicHandlerlookupEditorAreaLogicHandler(EditorArea editorArea)protected voidnotifyAfterSaveListeners()Deprecated, for removal: This API element is subject to removal in a future version.voidonActionPerformed(org.zkoss.zk.ui.event.Event event)voidonParentWidthRequest(org.zkoss.zk.ui.event.Event event)protected voidonTypeChanged()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.ObjectperformRefresh(java.lang.Object currentObject, EditorArea editorArea)protected java.lang.ObjectperformSave(java.lang.Object currentObject, EditorArea editorArea)protected voidpopulateEventContext(Context source, DefaultCockpitEvent destination)protected voidprepareValidationResultModel()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 dont store configuration in model, useDefaultEditorAreaControllerModelOperationsDelegate.prepareValidationResultModel()protected voidprepareValidationResultsPopup(org.zkoss.zk.ui.Component parent)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 dont store configuration in model, useDefaultEditorAreaControllerValidationPopupDelegate.prepareValidationResultsPopup(Component, Executable)protected voidprepareViewModeButton()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerModelOperationsDelegate.isFluidViewMode().protected java.lang.ObjectreloadIfNecessary(java.lang.Object objectInput, boolean inputObjectIsModified, boolean inputObjectIsNew)voidreset()Resets widget to initial state, displaying no data.protected java.lang.StringresolveEditorAreaLogicHandler(EditorArea editorArea)voidsaveObject()protected voidsaveObjectInternal()protected voidsendEditorsDetachedEvent()protected voidsetComponentsSizeDelegate(DefaultEditorAreaControllerComponentsSizeDelegate componentsSizeDelegate)voidsetConcurrentModificationDelegate(DefaultEditorAreaControllerConcurrentModificationDelegate concurrentModificationDelegate)protected voidsetConfigurationLoader(DefaultEditorAreaControllerConfigurationLoader configurationLoader)protected voidsetCurrentContext(java.lang.String configCtx)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.setCurrentContext(String)instead.protected voidsetFluidModeSwitcherDelegate(DefaultEditorAreaControllerFluidModeSwitcherDelegate fluidModeSwitcherDelegate)protected voidsetModelOperationsDelegate(DefaultEditorAreaControllerModelOperationsDelegate modelOperationsDelegate)voidsetObject(java.lang.Object inputData)protected voidsetObjectInternal(java.lang.Object inputData)protected voidsetPersistenceListeners(DefaultEditorAreaControllerPersistenceListenersDelegate persistenceListeners)voidsetReferenceModelProperties(ReferenceModelProperties referenceModelProperties)protected voidsetSettingsLoader(DefaultEditorAreaControllerSettingsLoader settingsLoader)protected voidsetValidationPopupDelegate(DefaultEditorAreaControllerValidationPopupDelegate validationPopupDelegate)protected voidsetWidgetTitleByCtxName()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerWidgetTitleDelegate.setWidgetTitleByCtxName().protected voidsetWidgetTitleDelegate(DefaultEditorAreaControllerWidgetTitleDelegate widgetTitleDelegate)protected voidshowAllAttributes(DataType dataType)protected booleanshowLinksInNotifications()Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 - not usedprotected voidupdateWidgetTitle()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerWidgetTitleDelegate.updateWidgetTitle()instead.-
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
-
ON_EDITORS_DETACHED
public static final java.lang.String ON_EDITORS_DETACHED
Event fired after editors components are detached from EditorArea UI- See Also:
- Constant Field Values
-
MODEL_LAST_PINNED_TAB
public static final java.lang.String MODEL_LAST_PINNED_TAB
- See Also:
- Constant Field Values
-
MODEL_CURRENT_OBJECT
public static final java.lang.String MODEL_CURRENT_OBJECT
- See Also:
- Constant Field Values
-
MODEL_CURRENT_OBJECT_TYPE
public static final java.lang.String MODEL_CURRENT_OBJECT_TYPE
- See Also:
- Constant Field Values
-
MODEL_ALL_REFERENCED_OBJECTS
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String MODEL_ALL_REFERENCED_OBJECTSDeprecated, for removal: This API element is subject to removal in a future version.since 6.6
-
MODEL_VALUE_CHANGED
public static final java.lang.String MODEL_VALUE_CHANGED
- See Also:
- Constant Field Values
-
VALIDATION_PATH_PREFIX
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String VALIDATION_PATH_PREFIXDeprecated, for removal: This API element is subject to removal in a future version.since 6.6
-
SOCKET_INPUT_RESIZE
public static final java.lang.String SOCKET_INPUT_RESIZE
- See Also:
- Constant Field Values
-
SOCKET_INPUT_OBJECT
public static final java.lang.String SOCKET_INPUT_OBJECT
- See Also:
- Constant Field Values
-
SOCKET_INPUT_RESET
public static final java.lang.String SOCKET_INPUT_RESET
- See Also:
- Constant Field Values
-
SOCKET_INPUT_FOCUS
public static final java.lang.String SOCKET_INPUT_FOCUS
- See Also:
- Constant Field Values
-
SOCKET_OUTPUT_WIDGET_TITLE
public static final java.lang.String SOCKET_OUTPUT_WIDGET_TITLE
- See Also:
- Constant Field Values
-
SOCKET_OUTPUT_OBJECT_SAVED
public static final java.lang.String SOCKET_OUTPUT_OBJECT_SAVED
- See Also:
- Constant Field Values
-
EDITOR_AREA_CONFIGURATION
public static final java.lang.String EDITOR_AREA_CONFIGURATION
- See Also:
- Constant Field Values
-
EDITOR_AREA_WIDTH_REQUEST
public static final java.lang.String EDITOR_AREA_WIDTH_REQUEST
- See Also:
- Constant Field Values
-
RESPONSIVE_IMAGE_URL
public static final java.lang.String RESPONSIVE_IMAGE_URL
- See Also:
- Constant Field Values
-
STATIC_IMAGE_URL
public static final java.lang.String STATIC_IMAGE_URL
- See Also:
- Constant Field Values
-
RESPONSIVE_IMAGE_URL_HOVER
public static final java.lang.String RESPONSIVE_IMAGE_URL_HOVER
- See Also:
- Constant Field Values
-
STATIC_IMAGE_URL_HOVER
public static final java.lang.String STATIC_IMAGE_URL_HOVER
- See Also:
- Constant Field Values
-
MODEL_INPUT_OBJECT_IS_NEW
public static final java.lang.String MODEL_INPUT_OBJECT_IS_NEW
- See Also:
- Constant Field Values
-
MODEL_INPUT_OBJECT_IS_MODIFIED
public static final java.lang.String MODEL_INPUT_OBJECT_IS_MODIFIED
- See Also:
- Constant Field Values
-
MODEL_SUCCESS_NOTIFICATION_ID
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String MODEL_SUCCESS_NOTIFICATION_IDDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
MODEL_FAILURE_NOTIFICATION_ID
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String MODEL_FAILURE_NOTIFICATION_IDDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
MODEL_EDITOR_AREA_CONFIG_CTX
public static final java.lang.String MODEL_EDITOR_AREA_CONFIG_CTX
- See Also:
- Constant Field Values
-
MODEL_EDITOR_INPUT_DATA
public static final java.lang.String MODEL_EDITOR_INPUT_DATA
- See Also:
- Constant Field Values
-
SETTING_DISABLE_RESET_FOR_MODIFIED_INPUT_OBJECT
public static final java.lang.String SETTING_DISABLE_RESET_FOR_MODIFIED_INPUT_OBJECT
- See Also:
- Constant Field Values
-
SETTING_MOLD_ACCORDION
public static final java.lang.String SETTING_MOLD_ACCORDION
- See Also:
- Constant Field Values
-
COCKPIT_EVENT_CALLBACK_MANAGER
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String COCKPIT_EVENT_CALLBACK_MANAGERDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
USER_NOTIFICATION_CURRENT_ENTITY_AUTOSAVED
@Deprecated(since="6.6", forRemoval=true) public static final java.lang.String USER_NOTIFICATION_CURRENT_ENTITY_AUTOSAVEDDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
SELECTOR_STATIC_SECTION_SLOT
public static final java.lang.String SELECTOR_STATIC_SECTION_SLOT
- See Also:
- Constant Field Values
-
YW_STATIC_SECTION_ACTIVE
public static final java.lang.String YW_STATIC_SECTION_ACTIVE
- See Also:
- Constant Field Values
-
YW_STATIC_SECTION_INACTIVE
public static final java.lang.String YW_STATIC_SECTION_INACTIVE
- See Also:
- Constant Field Values
-
FLUID_MIN_WIDTH
public static final int FLUID_MIN_WIDTH
- See Also:
- Constant Field Values
-
FLUID_MAX_WIDTH
public static final int FLUID_MAX_WIDTH
- See Also:
- Constant Field Values
-
GLOBAL_EVENT_ITEM_LOCKED_STATE_CHANGED
public static final java.lang.String GLOBAL_EVENT_ITEM_LOCKED_STATE_CHANGED
- See Also:
- Constant Field Values
-
ITEM_VALIDATION_ERROR_MSG
@Deprecated(since="6.6", forRemoval=true) protected static final java.lang.String ITEM_VALIDATION_ERROR_MSGDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
ITEM_VALIDATION_WARNING_MSG
@Deprecated(since="6.6", forRemoval=true) protected static final java.lang.String ITEM_VALIDATION_WARNING_MSGDeprecated, for removal: This API element is subject to removal in a future version.since 6.6- See Also:
- Constant Field Values
-
COMP_ID_SAVE_BTN
protected static final java.lang.String COMP_ID_SAVE_BTN
- See Also:
- Constant Field Values
-
COMP_ID_CANCEL_BTN
protected static final java.lang.String COMP_ID_CANCEL_BTN
- See Also:
- Constant Field Values
-
COMP_ID_VIEW_BTN
protected static final java.lang.String COMP_ID_VIEW_BTN
- See Also:
- Constant Field Values
-
COMP_ID_ATTRIBUTES_DIV
protected static final java.lang.String COMP_ID_ATTRIBUTES_DIV
- See Also:
- Constant Field Values
-
COMP_ID_ACTION_SLOT
protected static final java.lang.String COMP_ID_ACTION_SLOT
- See Also:
- Constant Field Values
-
MODEL_FLUID_VIEW_MODE
protected static final java.lang.String MODEL_FLUID_VIEW_MODE
- See Also:
- Constant Field Values
-
ACTION_SLOT_COMPONENT_ID
protected static final java.lang.String ACTION_SLOT_COMPONENT_ID
- See Also:
- Constant Field Values
-
SETTING_CONFIGURATION_CONTEXT
protected static final java.lang.String SETTING_CONFIGURATION_CONTEXT
- See Also:
- Constant Field Values
-
SETTING_FLUID_VIEW_CODE
protected static final java.lang.String SETTING_FLUID_VIEW_CODE
- See Also:
- Constant Field Values
-
SETTING_ESSENTIALS_IN_OVERVIEW_TAB
protected static final java.lang.String SETTING_ESSENTIALS_IN_OVERVIEW_TAB
- See Also:
- Constant Field Values
-
SETTING_TITLE_BY_CTX
protected static final java.lang.String SETTING_TITLE_BY_CTX
- 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
-
handleVisibilityState
public void handleVisibilityState(WidgetVisibilityState state)
Description copied from interface:WidgetVisibilityStateAwareHandles state visibility widget state.- Specified by:
handleVisibilityStatein interfaceWidgetVisibilityStateAware- Parameters:
state- name of widget state. f.e.:#VISIBLE
-
onParentWidthRequest
public void onParentWidthRequest(org.zkoss.zk.ui.event.Event event)
-
onActionPerformed
public void onActionPerformed(org.zkoss.zk.ui.event.Event event)
-
handleViewModeButtonClick
public void handleViewModeButtonClick(org.zkoss.zk.ui.event.Event event) throws TypeNotFoundException- Throws:
TypeNotFoundException
-
saveObject
public void saveObject()
-
cancelObjectModification
public void cancelObjectModification()
-
handleResizeParent
public void handleResizeParent()
-
focusAttribute
public void focusAttribute(FocusRequest focusRequest)
-
focusAttribute
@Deprecated(since="6.7", forRemoval=true) protected void focusAttribute(java.lang.String qualifier)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerValidationPopupDelegate.focusAttribute(String)instead.
-
reset
public void reset()
Resets widget to initial state, displaying no data.
-
setObject
public void setObject(java.lang.Object inputData)
-
setObjectInternal
protected void setObjectInternal(java.lang.Object inputData)
-
inputDataAlreadySet
protected boolean inputDataAlreadySet(java.lang.Object inputData)
-
adjustCurrentType
protected DataType adjustCurrentType(java.lang.Object currentObject)
-
reloadIfNecessary
protected java.lang.Object reloadIfNecessary(java.lang.Object objectInput, boolean inputObjectIsModified, boolean inputObjectIsNew) throws ObjectNotFoundException- Throws:
ObjectNotFoundException
-
adjustValueState
protected void adjustValueState(boolean inputObjectIsModified, boolean inputObjectIsNew)
-
handleResizeBrowser
public void handleResizeBrowser(CockpitEvent event)
-
itemLockingChanged
public void itemLockingChanged(CockpitEvent event)
-
handleObjectDeletedEvent
public void handleObjectDeletedEvent(CockpitEvent event)
Object deleted global event handler.
Checks if deleted object is equal to current object or if it's referenced by any editor within the editor area. If it's equal to current one,nullis set as new current. If it's referenced, the corresponding editors are reloaded.- Parameters:
event- delete event
-
handleObjectUpdatedEvent
public void handleObjectUpdatedEvent(CockpitEvent event)
Object updated global event handler.
Default implementation checks if deleted object is referenced by any editor within the editor area, and if it is, the corresponding editors are reloaded.- Parameters:
event- update event
-
updateWidgetTitle
@Deprecated(since="6.7", forRemoval=true) protected void updateWidgetTitle()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerWidgetTitleDelegate.updateWidgetTitle()instead.
-
applySclassAccordingToWidth
@Deprecated(since="6.7", forRemoval=true) protected void applySclassAccordingToWidth(org.zkoss.zk.ui.HtmlBasedComponent targetComponent, int width)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7, useDefaultEditorAreaControllerComponentsSizeDelegate.applySclassAccordingToWidth(int)insted.
-
showLinksInNotifications
@Deprecated(since="6.6", forRemoval=true) protected boolean showLinksInNotifications()Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 - not used
-
initConfigCtx
@Deprecated(since="6.7", forRemoval=true) protected void initConfigCtx()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.initContext()instead.
-
prepareViewModeButton
@Deprecated(since="6.7", forRemoval=true) protected void prepareViewModeButton()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerModelOperationsDelegate.isFluidViewMode().
-
createValidationContext
@Deprecated(since="6.7", forRemoval=true) protected ValidationContext createValidationContext(boolean applyConfirmed)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerValidationPopupDelegate
-
doValidate
protected ValidationResult doValidate(java.lang.Object objectToValidate, boolean preventBroadcast)
-
doValidate
protected ValidationResult doValidate(java.lang.Object objectToValidate, boolean preventBroadcast, boolean applyConfirmed)
-
saveObjectInternal
protected void saveObjectInternal()
-
performRefresh
protected java.lang.Object performRefresh(java.lang.Object currentObject, EditorArea editorArea) throws ObjectNotFoundException- Throws:
ObjectNotFoundException
-
performSave
protected java.lang.Object performSave(java.lang.Object currentObject, EditorArea editorArea) throws ObjectSavingException- Throws:
ObjectSavingException
-
executeSaveWithConfirmation
protected void executeSaveWithConfirmation(Executable save)
-
getStoredEditorAreaConfiguration
@Deprecated(since="6.7", forRemoval=true) protected EditorArea getStoredEditorAreaConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.
-
lookupEditorAreaLogicHandler
protected EditorAreaLogicHandler lookupEditorAreaLogicHandler(EditorArea editorArea)
-
resolveEditorAreaLogicHandler
protected java.lang.String resolveEditorAreaLogicHandler(EditorArea editorArea)
-
prepareValidationResultModel
@Deprecated(since="6.7", forRemoval=true) protected void prepareValidationResultModel()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 dont store configuration in model, useDefaultEditorAreaControllerModelOperationsDelegate.prepareValidationResultModel()
-
prepareValidationResultsPopup
@Deprecated(since="6.7", forRemoval=true) protected void prepareValidationResultsPopup(org.zkoss.zk.ui.Component parent)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 dont store configuration in model, useDefaultEditorAreaControllerValidationPopupDelegate.prepareValidationResultsPopup(Component, Executable)
-
isModelValueChanged
protected boolean isModelValueChanged()
-
getCRUDNotificationSource
protected java.lang.String getCRUDNotificationSource()
-
populateEventContext
protected void populateEventContext(Context source, DefaultCockpitEvent destination)
-
handleObjectSavingSuccess
protected void handleObjectSavingSuccess(java.lang.Object savedObject)
The default implementation just notifies user viaNotificationService.notifyUser(String, String, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level, Object...).- Parameters:
savedObject- the item that has been successfully saved.
-
handleObjectSavingException
protected void handleObjectSavingException(ObjectSavingException savingException)
The default implementation just notifies the user viaNotificationService.notifyUser(String, String, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level, Object...).- Parameters:
savingException- the exception to handle.
-
getNotificationSource
@Deprecated(since="6.7", forRemoval=true) protected java.lang.String getNotificationSource()Deprecated, for removal: This API element is subject to removal in a future version.
-
getSuccessNotificationId
@Deprecated(since="6.6", forRemoval=true) protected java.lang.String getSuccessNotificationId()Deprecated, for removal: This API element is subject to removal in a future version.since 6.6
-
notifyAfterSaveListeners
@Deprecated(since="6.7", forRemoval=true) protected void notifyAfterSaveListeners() throws ObjectSavingExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
ObjectSavingException
-
formatSClass
protected java.lang.String formatSClass(java.lang.String sclass)
-
getCurrentObject
protected java.lang.Object getCurrentObject()
-
getCurrentValidationResult
@Deprecated(since="6.7", forRemoval=true) protected ValidationResult getCurrentValidationResult()Deprecated, for removal: This API element is subject to removal in a future version.
-
onTypeChanged
@Deprecated(since="6.7", forRemoval=true) protected void onTypeChanged()Deprecated, for removal: This API element is subject to removal in a future version.
-
sendEditorsDetachedEvent
protected void sendEditorsDetachedEvent()
-
findStaticSectionSlot
protected Widgetslot findStaticSectionSlot()
-
getEditorAreaConfiguration
@Deprecated(since="6.7", forRemoval=true) protected EditorArea getEditorAreaConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.
-
getEditorAreaConfiguration
@Deprecated(since="6.7", forRemoval=true) protected EditorArea getEditorAreaConfiguration(java.lang.String componentContext)Deprecated, for removal: This API element is subject to removal in a future version.
-
lookupEditorAreaConfiguration
@Deprecated(since="6.7", forRemoval=true) protected EditorArea lookupEditorAreaConfiguration(DataType dataType, java.lang.String componentContext)Deprecated, for removal: This API element is subject to removal in a future version.
-
setWidgetTitleByCtxName
@Deprecated(since="6.7", forRemoval=true) protected void setWidgetTitleByCtxName()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerWidgetTitleDelegate.setWidgetTitleByCtxName().
-
loadEditorAreaConfiguration
@Deprecated(since="6.7", forRemoval=true) protected EditorArea loadEditorAreaConfiguration(java.lang.String typeCode, java.lang.String component)Deprecated, for removal: This API element is subject to removal in a future version.Loads the (editor-area) UI configuration for the provided type with code typeCode.- Parameters:
typeCode- type codecomponent- component code- Returns:
- the column UI configuration
-
decorateConfigWithOverviewTab
@Deprecated(since="6.7", forRemoval=true) protected EditorArea decorateConfigWithOverviewTab(EditorArea config)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 don't need any more seeDefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration(String, String)
-
showAllAttributes
protected void showAllAttributes(DataType dataType)
-
getCurrentContext
@Deprecated(since="6.7", forRemoval=true) protected java.lang.String getCurrentContext()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.getCurrentContext()instead.
-
setCurrentContext
@Deprecated(since="6.7", forRemoval=true) protected void setCurrentContext(java.lang.String configCtx)Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.setCurrentContext(String)instead.
-
getDefaultContext
@Deprecated(since="6.7", forRemoval=true) protected java.lang.String getDefaultContext()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaControllerModelOperationsDelegate.getDefaultContext()instead.
-
getObjectFacade
protected ObjectFacade getObjectFacade()
-
getTypeFacade
protected TypeFacade getTypeFacade()
-
getLabelService
protected LabelService getLabelService()
-
getCockpitLocaleService
protected CockpitLocaleService getCockpitLocaleService()
-
getRenderer
protected NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,EditorArea,java.lang.Object> getRenderer()
-
getEditorAreaRenderer
@Deprecated(since="6.5", forRemoval=true) protected WidgetComponentRenderer<org.zkoss.zk.ui.Component,EditorArea,java.lang.Object> getEditorAreaRenderer()Deprecated, for removal: This API element is subject to removal in a future version.since 6.5- Returns:
- the editorAreaRenderer
- See Also:
getRenderer()
-
getFluidViewModeCode
@Deprecated(since="6.7", forRemoval=true) protected java.lang.String getFluidViewModeCode()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerModelOperationsDelegate.getFluidViewModeCode().
-
isFluidViewMode
@Deprecated(since="6.7", forRemoval=true) protected boolean isFluidViewMode()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 not used, seeDefaultEditorAreaControllerModelOperationsDelegate.isFluidViewMode().
-
getBody
public org.zkoss.zul.Vlayout getBody()
-
getSaveButton
public org.zkoss.zul.Button getSaveButton()
-
getCancelButton
public org.zkoss.zul.Button getCancelButton()
-
getViewModeButton
public org.zkoss.zul.Toolbarbutton getViewModeButton()
-
getAttributesDiv
public org.zkoss.zul.Div getAttributesDiv()
-
getToolbarContainer
public org.zkoss.zk.ui.Component getToolbarContainer()
-
getActionSlot
public Actions getActionSlot()
-
getEditorAreaTitle
public org.zkoss.zul.Label getEditorAreaTitle()
-
getValidationResults
public org.zkoss.zul.Window getValidationResults()
-
getValidationRenderer
public ValidationRenderer getValidationRenderer()
-
getReferenceModelProperties
public ReferenceModelProperties getReferenceModelProperties()
-
setReferenceModelProperties
public void setReferenceModelProperties(ReferenceModelProperties referenceModelProperties)
-
getNotificationService
protected NotificationService getNotificationService()
-
getLogicHandler
protected EditorAreaLogicHandler getLogicHandler()
-
getSettingsLoader
protected DefaultEditorAreaControllerSettingsLoader getSettingsLoader()
-
setSettingsLoader
protected void setSettingsLoader(DefaultEditorAreaControllerSettingsLoader settingsLoader)
-
getConfigurationLoader
protected DefaultEditorAreaControllerConfigurationLoader getConfigurationLoader()
-
setConfigurationLoader
protected void setConfigurationLoader(DefaultEditorAreaControllerConfigurationLoader configurationLoader)
-
getFluidModeSwitcherDelegate
protected DefaultEditorAreaControllerFluidModeSwitcherDelegate getFluidModeSwitcherDelegate()
-
setFluidModeSwitcherDelegate
protected void setFluidModeSwitcherDelegate(DefaultEditorAreaControllerFluidModeSwitcherDelegate fluidModeSwitcherDelegate)
-
getModelOperationsDelegate
protected DefaultEditorAreaControllerModelOperationsDelegate getModelOperationsDelegate()
-
setModelOperationsDelegate
protected void setModelOperationsDelegate(DefaultEditorAreaControllerModelOperationsDelegate modelOperationsDelegate)
-
getPersistenceListeners
protected DefaultEditorAreaControllerPersistenceListenersDelegate getPersistenceListeners()
-
setPersistenceListeners
protected void setPersistenceListeners(DefaultEditorAreaControllerPersistenceListenersDelegate persistenceListeners)
-
getComponentsSizeDelegate
protected DefaultEditorAreaControllerComponentsSizeDelegate getComponentsSizeDelegate()
-
setComponentsSizeDelegate
protected void setComponentsSizeDelegate(DefaultEditorAreaControllerComponentsSizeDelegate componentsSizeDelegate)
-
getValidationPopupDelegate
protected DefaultEditorAreaControllerValidationPopupDelegate getValidationPopupDelegate()
-
setValidationPopupDelegate
protected void setValidationPopupDelegate(DefaultEditorAreaControllerValidationPopupDelegate validationPopupDelegate)
-
getWidgetTitleDelegate
protected DefaultEditorAreaControllerWidgetTitleDelegate getWidgetTitleDelegate()
-
setWidgetTitleDelegate
protected void setWidgetTitleDelegate(DefaultEditorAreaControllerWidgetTitleDelegate widgetTitleDelegate)
-
getConcurrentModificationDelegate
public DefaultEditorAreaControllerConcurrentModificationDelegate getConcurrentModificationDelegate()
-
setConcurrentModificationDelegate
public void setConcurrentModificationDelegate(DefaultEditorAreaControllerConcurrentModificationDelegate concurrentModificationDelegate)
-
-