public class DefaultEditorAreaController extends DefaultWidgetController implements WidgetVisibilityStateAware
| Constructor and Description |
|---|
DefaultEditorAreaController() |
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, setWidgetTitlescanEventListenersalert, didActivate, getPage, willClone, willPassivatepublic static final String ON_EDITORS_DETACHED
public static final String MODEL_LAST_PINNED_TAB
public static final String MODEL_CURRENT_OBJECT
public static final String MODEL_CURRENT_OBJECT_TYPE
@Deprecated public static final String MODEL_ALL_REFERENCED_OBJECTS
public static final String MODEL_VALUE_CHANGED
@Deprecated public static final String VALIDATION_PATH_PREFIX
public static final String SOCKET_INPUT_RESIZE
public static final String SOCKET_INPUT_OBJECT
public static final String SOCKET_INPUT_RESET
public static final String SOCKET_INPUT_FOCUS
public static final String SOCKET_OUTPUT_WIDGET_TITLE
public static final String SOCKET_OUTPUT_OBJECT_SAVED
public static final String EDITOR_AREA_CONFIGURATION
public static final String EDITOR_AREA_WIDTH_REQUEST
public static final String RESPONSIVE_IMAGE_URL
public static final String STATIC_IMAGE_URL
public static final String RESPONSIVE_IMAGE_URL_HOVER
public static final String STATIC_IMAGE_URL_HOVER
public static final String MODEL_INPUT_OBJECT_IS_NEW
public static final String MODEL_INPUT_OBJECT_IS_MODIFIED
@Deprecated public static final String MODEL_SUCCESS_NOTIFICATION_ID
@Deprecated public static final String MODEL_FAILURE_NOTIFICATION_ID
public static final String MODEL_EDITOR_AREA_CONFIG_CTX
public static final String SETTING_DISABLE_RESET_FOR_MODIFIED_INPUT_OBJECT
public static final String SETTING_MOLD_ACCORDION
@Deprecated public static final String COCKPIT_EVENT_CALLBACK_MANAGER
@Deprecated public static final String USER_NOTIFICATION_CURRENT_ENTITY_AUTOSAVED
public static final String SELECTOR_STATIC_SECTION_SLOT
public static final String YW_STATIC_SECTION_ACTIVE
public static final String YW_STATIC_SECTION_INACTIVE
public static final int FLUID_MIN_WIDTH
public static final int FLUID_MAX_WIDTH
public static final String GLOBAL_EVENT_ITEM_LOCKED_STATE_CHANGED
@Deprecated protected static final String ITEM_VALIDATION_ERROR_MSG
@Deprecated protected static final String ITEM_VALIDATION_WARNING_MSG
protected static final String COMP_ID_SAVE_BTN
protected static final String COMP_ID_CANCEL_BTN
protected static final String COMP_ID_VIEW_BTN
protected static final String COMP_ID_ATTRIBUTES_DIV
protected static final String COMP_ID_ACTION_SLOT
protected static final String MODEL_FLUID_VIEW_MODE
protected static final String ACTION_SLOT_COMPONENT_ID
protected static final String SETTING_CONFIGURATION_CONTEXT
protected static final String SETTING_FLUID_VIEW_CODE
protected static final String SETTING_ESSENTIALS_IN_OVERVIEW_TAB
protected static final String SETTING_TITLE_BY_CTX
public void initialize(org.zkoss.zk.ui.Component comp)
DefaultWidgetControllerDefaultWidgetController.doAfterCompose(Component) everytime your widget
view is created. See GenericForwardComposer.doAfterCompose(Component) for more details.initialize in class DefaultWidgetControllerpublic void handleVisibilityState(WidgetVisibilityState state)
WidgetVisibilityStateAwarehandleVisibilityState in interface WidgetVisibilityStateAwarestate - name of widget state. f.e.: #VISIBLEpublic void onParentWidthRequest(org.zkoss.zk.ui.event.Event event)
public void onActionPerformed(org.zkoss.zk.ui.event.Event event)
public void handleViewModeButtonClick(org.zkoss.zk.ui.event.Event event)
throws TypeNotFoundException
TypeNotFoundExceptionpublic void saveObject()
throws ObjectSavingException
ObjectSavingExceptionpublic void cancelObjectModification()
public void handleResizeParent()
public void focusAttribute(FocusRequest focusRequest)
@Deprecated protected void focusAttribute(String qualifier)
DefaultEditorAreaControllerValidationPopupDelegate.focusAttribute(String) instead.public void reset()
public void setObject(Object inputData)
protected Object reloadIfNecessary(Object objectInput, boolean inputObjectIsModified, boolean inputObjectIsNew) throws ObjectNotFoundException
ObjectNotFoundExceptionprotected void adjustValueState(boolean inputObjectIsModified,
boolean inputObjectIsNew)
public void handleResizeBrowser(CockpitEvent event)
public void itemLockingChanged(CockpitEvent event)
public void handleObjectDeletedEvent(CockpitEvent event)
null is set as new current. If it's referenced, the corresponding editors are
reloaded.event - delete eventpublic void handleObjectUpdatedEvent(CockpitEvent event)
event - update event@Deprecated protected void updateWidgetTitle()
DefaultEditorAreaControllerWidgetTitleDelegate.updateWidgetTitle() instead.@Deprecated protected void applySclassAccordingToWidth(org.zkoss.zk.ui.HtmlBasedComponent targetComponent, int width)
DefaultEditorAreaControllerComponentsSizeDelegate.applySclassAccordingToWidth(int)
insted.@Deprecated protected boolean showLinksInNotifications()
@Deprecated protected void initConfigCtx()
DefaultEditorAreaControllerModelOperationsDelegate.initContext() instead.@Deprecated protected void prepareViewModeButton()
DefaultEditorAreaControllerModelOperationsDelegate.isFluidViewMode().@Deprecated protected ValidationContext createValidationContext(boolean applyConfirmed)
DefaultEditorAreaControllerValidationPopupDelegateprotected ValidationResult doValidate(Object objectToValidate, boolean preventBroadcast)
protected ValidationResult doValidate(Object objectToValidate, boolean preventBroadcast, boolean applyConfirmed)
protected void saveObjectInternal()
protected Object performRefresh(Object currentObject, EditorArea editorArea) throws ObjectNotFoundException
ObjectNotFoundExceptionprotected Object performSave(Object currentObject, EditorArea editorArea) throws ObjectSavingException
ObjectSavingExceptionprotected void executeSaveWithConfirmation(Executable save)
@Deprecated protected EditorArea getStoredEditorAreaConfiguration()
DefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration()protected EditorAreaLogicHandler lookupEditorAreaLogicHandler(EditorArea editorArea)
protected String resolveEditorAreaLogicHandler(EditorArea editorArea)
@Deprecated protected void prepareValidationResultModel()
DefaultEditorAreaControllerModelOperationsDelegate.prepareValidationResultModel()@Deprecated protected void prepareValidationResultsPopup(org.zkoss.zk.ui.Component parent)
DefaultEditorAreaControllerValidationPopupDelegate.prepareValidationResultsPopup(Component, Executable)protected boolean isModelValueChanged()
protected String getCRUDNotificationSource()
protected void populateEventContext(Context source, DefaultCockpitEvent destination)
protected void handleObjectSavingSuccess(Object savedObject)
NotificationService.notifyUser(String, String, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level, Object...).savedObject - the item that has been successfully saved.protected void handleObjectSavingException(ObjectSavingException savingException)
NotificationService.notifyUser(String, String, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level, Object...).savingException - the exception to handle.@Deprecated protected String getNotificationSource()
NotificationService.getWidgetNotificationSource(com.hybris.cockpitng.engine.WidgetInstanceManager)
instead.@Deprecated protected String getSuccessNotificationId()
@Deprecated protected void notifyAfterSaveListeners() throws ObjectSavingException
DefaultEditorAreaControllerPersistenceListenersDelegate.notifyAfterSaveListeners()ObjectSavingExceptionprotected Object getCurrentObject()
@Deprecated protected ValidationResult getCurrentValidationResult()
DefaultEditorAreaControllerModelOperationsDelegate.getCurrentValidationResult()@Deprecated protected void onTypeChanged()
DefaultEditorAreaControllerModelOperationsDelegate.onTypeChange(DataType)protected void sendEditorsDetachedEvent()
protected Widgetslot findStaticSectionSlot()
@Deprecated protected EditorArea getEditorAreaConfiguration()
DefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration()@Deprecated protected EditorArea getEditorAreaConfiguration(String componentContext)
DefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration(String, String)@Deprecated protected EditorArea lookupEditorAreaConfiguration(DataType dataType, String componentContext)
DefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration(String, String)@Deprecated protected void setWidgetTitleByCtxName()
DefaultEditorAreaControllerWidgetTitleDelegate.setWidgetTitleByCtxName().@Deprecated protected EditorArea loadEditorAreaConfiguration(String typeCode, String component)
DefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration(String, String)typeCode - type codecomponent - component code@Deprecated protected EditorArea decorateConfigWithOverviewTab(EditorArea config)
DefaultEditorAreaControllerConfigurationLoader.getEditorAreaConfiguration(String, String)protected void showAllAttributes(DataType dataType)
@Deprecated protected String getCurrentContext()
DefaultEditorAreaControllerModelOperationsDelegate.getCurrentContext() instead.@Deprecated protected void setCurrentContext(String configCtx)
DefaultEditorAreaControllerModelOperationsDelegate.setCurrentContext(String)
instead.@Deprecated protected String getDefaultContext()
DefaultEditorAreaControllerModelOperationsDelegate.getDefaultContext() instead.protected ObjectFacade getObjectFacade()
protected TypeFacade getTypeFacade()
protected LabelService getLabelService()
protected CockpitLocaleService getCockpitLocaleService()
protected NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,EditorArea,Object> getRenderer()
@Deprecated protected WidgetComponentRenderer<org.zkoss.zk.ui.Component,EditorArea,Object> getEditorAreaRenderer()
getRenderer()@Deprecated protected String getFluidViewModeCode()
DefaultEditorAreaControllerModelOperationsDelegate.getFluidViewModeCode().@Deprecated protected boolean isFluidViewMode()
DefaultEditorAreaControllerModelOperationsDelegate.isFluidViewMode().public org.zkoss.zul.Button getSaveButton()
public org.zkoss.zul.Button getCancelButton()
public org.zkoss.zul.Toolbarbutton getViewModeButton()
public org.zkoss.zul.Div getAttributesDiv()
public org.zkoss.zk.ui.Component getToolbarContainer()
public Actions getActionSlot()
public org.zkoss.zul.Label getEditorAreaTitle()
public org.zkoss.zul.Window getValidationResults()
public ValidationRenderer getValidationRenderer()
public ReferenceModelProperties getReferenceModelProperties()
public void setReferenceModelProperties(ReferenceModelProperties referenceModelProperties)
protected NotificationService getNotificationService()
protected EditorAreaLogicHandler getLogicHandler()
protected DefaultEditorAreaControllerSettingsLoader getSettingsLoader()
protected void setSettingsLoader(DefaultEditorAreaControllerSettingsLoader settingsLoader)
protected DefaultEditorAreaControllerConfigurationLoader getConfigurationLoader()
protected void setConfigurationLoader(DefaultEditorAreaControllerConfigurationLoader configurationLoader)
protected DefaultEditorAreaControllerFluidModeSwitcherDelegate getFluidModeSwitcherDelegate()
protected void setFluidModeSwitcherDelegate(DefaultEditorAreaControllerFluidModeSwitcherDelegate fluidModeSwitcherDelegate)
protected DefaultEditorAreaControllerModelOperationsDelegate getModelOperationsDelegate()
protected void setModelOperationsDelegate(DefaultEditorAreaControllerModelOperationsDelegate modelOperationsDelegate)
protected DefaultEditorAreaControllerPersistenceListenersDelegate getPersistenceListeners()
protected void setPersistenceListeners(DefaultEditorAreaControllerPersistenceListenersDelegate persistenceListeners)
protected DefaultEditorAreaControllerComponentsSizeDelegate getComponentsSizeDelegate()
protected void setComponentsSizeDelegate(DefaultEditorAreaControllerComponentsSizeDelegate componentsSizeDelegate)
protected DefaultEditorAreaControllerValidationPopupDelegate getValidationPopupDelegate()
protected void setValidationPopupDelegate(DefaultEditorAreaControllerValidationPopupDelegate validationPopupDelegate)
protected DefaultEditorAreaControllerWidgetTitleDelegate getWidgetTitleDelegate()
protected void setWidgetTitleDelegate(DefaultEditorAreaControllerWidgetTitleDelegate widgetTitleDelegate)
public DefaultEditorAreaControllerConcurrentModificationDelegate getConcurrentModificationDelegate()
public void setConcurrentModificationDelegate(DefaultEditorAreaControllerConcurrentModificationDelegate concurrentModificationDelegate)
Copyright © 2018. All rights reserved.