Class CmsDirectEditEntryPoint
java.lang.Object
org.opencms.gwt.client.A_CmsEntryPoint
org.opencms.ade.editprovider.client.CmsDirectEditEntryPoint
- All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint
The entry point class for the org.opencms.ade.editprovider.EditProvider module.
- Since:
- 8.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, CmsPositionBean> The map of button bar positions.protected Map<String, CmsPositionBean> The map of editable element positions.protected CmsToolbarThe toolbar.protected CmsStyleVariableA style variable to control toolbar visibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the direct edit buttons.protected voidAdds the toolbar to the browser window.protected booleanChecks if the toolbar is visible.voidprotected CmsDirectEditButtonsprocessEditableElement(com.google.gwt.dom.client.Element elem) Adds the direct edit buttons for a single editable element.protected voidRepositions the direct edit buttons.voidsaveToolbarVisibility(boolean visible) Writes the tool-bar visibility into the session cache.protected voidtoggleToolbar(boolean show) Toggles the visibility of the toolbar.Methods inherited from class org.opencms.gwt.client.A_CmsEntryPoint
enableRemoteExceptionHandler
-
Field Details
-
m_buttonPositions
The map of button bar positions. -
m_positions
The map of editable element positions. -
m_toolbar
The toolbar. -
m_toolbarVisibility
A style variable to control toolbar visibility.
-
-
Constructor Details
-
CmsDirectEditEntryPoint
public CmsDirectEditEntryPoint()
-
-
Method Details
-
initializeButtons
Initializes the direct edit buttons. -
onModuleLoad
- Specified by:
onModuleLoadin interfacecom.google.gwt.core.client.EntryPoint- Overrides:
onModuleLoadin classA_CmsEntryPoint- See Also:
-
saveToolbarVisibility
Writes the tool-bar visibility into the session cache.- Parameters:
visible-trueif the tool-bar is visible
-
installToolbar
Adds the toolbar to the browser window. -
isToolbarVisible
Checks if the toolbar is visible.- Returns:
- true if the toolbar is visible
-
processEditableElement
Adds the direct edit buttons for a single editable element.- Parameters:
elem- the data container element- Returns:
- the direct edit buttons widget which was created for the element
-
repositionButtons
Repositions the direct edit buttons. -
toggleToolbar
Toggles the visibility of the toolbar.- Parameters:
show-trueto show the toolbar
-