Class CmsDirectEditButtons
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
org.opencms.gwt.client.ui.A_CmsDirectEditButtons
org.opencms.ade.editprovider.client.CmsDirectEditButtons
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasMouseOutHandlers,com.google.gwt.event.dom.client.HasMouseOverHandlers,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.InsertPanel,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>,I_CmsElementToolbarContext,I_CmsContentEditorHandler,I_CmsUniqueActiveItem
public class CmsDirectEditButtons
extends A_CmsDirectEditButtons
implements I_CmsContentEditorHandler
Direct edit buttons for the Toolbar direct edit provider.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget -
Field Summary
Fields inherited from class org.opencms.gwt.client.ui.A_CmsDirectEditButtons
m_delete, m_edit, m_editableData, m_expiredOverlay, m_highlighting, m_markerTag, m_new, m_parentResourceId, m_positionFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIXFields inherited from interface org.opencms.gwt.client.I_CmsElementToolbarContext
ELEMENT_OPTION_BAR_CSS_CLASS -
Constructor Summary
ConstructorsConstructorDescriptionCmsDirectEditButtons(com.google.gwt.dom.client.Element editable, String parentId) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDelete the editable element from page and VFS.protected Map<Integer, CmsPushButton> Returns a map of additional buttons in a map, with the button position as key (buttons will be ordered by their position).protected StringgetUploadButtonTitle(String uploadFolder) Gets the upload button title.protected voidThis method should be executed when the "delete" direct edit button is clicked.protected voidThis method should be executed when the "edit" direct edit button is clicked.protected voidonClickNew(boolean askCreateMode) This method should be executed when the "new" direct edit button is clicked.voidonClose(String sitePath, org.opencms.util.CmsUUID structureId, boolean isNew, boolean hasChangedSettings, boolean usedPublishDialog) Executed by the XML content editor dialog on close.protected voidopenEditDialog(boolean isNew, String mode) Opens the content editor.voidsetPosition(CmsPositionBean position, CmsPositionBean buttonsPosition, com.google.gwt.dom.client.Element containerElement) Sets the position.Methods inherited from class org.opencms.gwt.client.ui.A_CmsDirectEditButtons
activateToolbarContext, addHighlightingAndBar, addMouseOutHandler, addMouseOverHandler, createInfoButton, deactivateToolbarContext, getInfoContext, getMarkerTag, highlightElement, isValid, onClickUpload, onDeactivate, removeFromParent, removeHighlighting, removeHighlightingAndBar, setPosition, updateExpiredOverlayPositionMethods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insertMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndexMethods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
addMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CmsDirectEditButtons
Creates a new instance.- Parameters:
editable- the editable elementparentId- the parent id
-
-
Method Details
-
onClose
public void onClose(String sitePath, org.opencms.util.CmsUUID structureId, boolean isNew, boolean hasChangedSettings, boolean usedPublishDialog) Description copied from interface:I_CmsContentEditorHandlerExecuted by the XML content editor dialog on close.- Specified by:
onClosein interfaceI_CmsContentEditorHandler- Parameters:
sitePath- the sitepath of the edited resourcestructureId- the structure id of the edited resourceisNew-trueif the resource was newly createdhasChangedSettings-truein case container page element settings where changed during editusedPublishDialog- true if the editor was closed by using the publish button- See Also:
-
setPosition
public void setPosition(CmsPositionBean position, CmsPositionBean buttonsPosition, com.google.gwt.dom.client.Element containerElement) Sets the position. Make sure the widget is attached to the DOM.- Parameters:
position- the absolute positionbuttonsPosition- the corrected position for the buttonscontainerElement- the parent container element
-
deleteElement
Delete the editable element from page and VFS. -
getAdditionalButtons
Description copied from class:A_CmsDirectEditButtonsReturns a map of additional buttons in a map, with the button position as key (buttons will be ordered by their position).- Overrides:
getAdditionalButtonsin classA_CmsDirectEditButtons- Returns:
- the map of additional buttons
- See Also:
-
getUploadButtonTitle
Description copied from class:A_CmsDirectEditButtonsGets the upload button title.- Specified by:
getUploadButtonTitlein classA_CmsDirectEditButtons- Parameters:
uploadFolder- the upload folder- Returns:
- the upload button title
- See Also:
-
onClickDelete
Description copied from class:A_CmsDirectEditButtonsThis method should be executed when the "delete" direct edit button is clicked.- Specified by:
onClickDeletein classA_CmsDirectEditButtons- See Also:
-
onClickEdit
Description copied from class:A_CmsDirectEditButtonsThis method should be executed when the "edit" direct edit button is clicked.- Specified by:
onClickEditin classA_CmsDirectEditButtons- See Also:
-
onClickNew
Description copied from class:A_CmsDirectEditButtonsThis method should be executed when the "new" direct edit button is clicked.- Specified by:
onClickNewin classA_CmsDirectEditButtons- Parameters:
askCreateMode- true if the user should be asked for the 'content create mode'- See Also:
-
openEditDialog
Opens the content editor.- Parameters:
isNew-trueto create and edit a new resourcemode- the content creation mode
-