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
Modifier and TypeFieldDescriptionprotected Map<String,
CmsPositionBean> The map of button bar positions.protected Map<String,
CmsPositionBean> The map of editable element positions.protected CmsToolbar
The toolbar.protected CmsStyleVariable
A style variable to control toolbar visibility. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Initializes the direct edit buttons.protected void
Adds the toolbar to the browser window.protected boolean
Checks if the toolbar is visible.void
protected CmsDirectEditButtons
processEditableElement
(com.google.gwt.dom.client.Element elem) Adds the direct edit buttons for a single editable element.protected void
Repositions the direct edit buttons.void
saveToolbarVisibility
(boolean visible) Writes the tool-bar visibility into the session cache.protected void
toggleToolbar
(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:
onModuleLoad
in interfacecom.google.gwt.core.client.EntryPoint
- Overrides:
onModuleLoad
in classA_CmsEntryPoint
- See Also:
-
EntryPoint.onModuleLoad()
-
saveToolbarVisibility
Writes the tool-bar visibility into the session cache.- Parameters:
visible
-true
if 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
-true
to show the toolbar
-