Class CmsContainerPageElementPanel
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.AbsolutePanel
org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel
- All Implemented Interfaces:
 com.google.gwt.event.dom.client.HasClickHandlers,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_CmsInlineFormParent,I_CmsDraggable
- Direct Known Subclasses:
 CmsGroupContainerElementPanel
public class CmsContainerPageElementPanel
extends com.google.gwt.user.client.ui.AbsolutePanel
implements I_CmsDraggable, com.google.gwt.event.dom.client.HasClickHandlers, I_CmsInlineFormParent
Content element within a container-page.
- Since:
 - 8.0.0
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParses CSS classess of the form 'oc-point-TY_LX', where X and Y are strings of decimal digits possibly preceded by a minus sign.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
FieldsModifier and TypeFieldDescriptionprotected CmsHighlightingBorderHighlighting border for this element.static final StringProperty used to mark an element as belonging to this widget.static final StringThe is model group property key.static final StringThe former copy model property.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX - 
Constructor Summary
ConstructorsConstructorDescriptionCmsContainerPageElementPanel(com.google.gwt.dom.client.Element element, I_CmsDropContainer parent, String clientId, String sitePath, String noEditReason, org.opencms.ade.containerpage.shared.CmsElementLockInfo lockInfo, String title, String subTitle, String resourceType, boolean hasSettings, boolean hasViewPermission, boolean hasWritePermission, boolean releasedAndNotExpired, boolean disableNewEditor, boolean hasEditHandler, org.opencms.util.CmsUUID modelGroupId, boolean wasModelGroup, org.opencms.util.CmsUUID elementView, String iconClasses, boolean isReused) Constructor. - 
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.event.shared.HandlerRegistrationaddClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) voidadoptWidget(com.google.gwt.user.client.ui.IsWidget widget) Adopts the given widget as a child widget.protected voidChecks for changes in the list collector direct edit content.com.google.common.base.Optional<int[]> Gets an optional pair of integers which are to be used as an "offset delta" for the drag and drop process.com.google.gwt.dom.client.ElementgetDragHelper(I_CmsDropTarget target) Creates the drag helper element and attaches it into the DOM.protected List<com.google.gwt.dom.client.Element> Gets the editable list elements.Returns the option bar of this element.org.opencms.util.CmsUUIDReturns the elements element view.getId()Returns the draggable id.org.opencms.ade.containerpage.shared.CmsInheritanceInfoReturns the inheritance info for this element.org.opencms.ade.containerpage.shared.CmsElementLockInfoGets the lock information.org.opencms.util.CmsUUIDReturns the model group id.Returns the new element type.Returns the no edit reason.Gets the random id identifying this widget.Returns the parent drop target ornullif there is none.com.google.gwt.dom.client.ElementgetPlaceholder(I_CmsDropTarget target) Creates the drag placeholder element.booleanReturns if the element resource is currently released and not expired.Returns the element resource type name.Returns the site-path.org.opencms.util.CmsUUIDReturns the structure id of the element.protected booleanReturns if the list collector direct edit content has changed.booleanIndicates an edit handler is configured for the element resource type.booleanReturns whether this element has a model group parent.booleanIn case the inner HTML contains the reload marker.booleanReturns true if the element has settings to edit.booleanReturns if the current user has view permissions for the element resource.booleanReturns if the user has write permission.voidHides list collector direct edit buttons, if present.voidPuts a highlighting border around the element.voidinitInlineEditor(CmsContainerpageController controller) Initializes the editor click handler.booleanChecks if this element has 'createNew' status, i.e.booleanReturns whether the element is used as a model group.booleanisNew()Returns if this is e newly created element.booleanReturns true if the new content editor is disabled for this element.static booleanisOverlay(com.google.gwt.dom.client.Element element) Checks if the element is an overlay for a container page element.booleanisReused()Checks if this element is marked as reused.protected voidonDetach()voidExecuted on drag cancel.voidonDrop(I_CmsDropTarget target) Executed on drop.protected voidonLoad()voidonStartDrag(I_CmsDropTarget target) Executed on drag start.protected voidRemoves the inline editor handler.voidvoidRemoves the highlighting border.voidRemoves the inline editor.voidreplaceHtml(String html) Replaces the inner HTML of widget to reflect content data changes.voidsetCreateNew(boolean createNew) Sets the 'create new' status of the element.voidsetElementOptionBar(CmsElementOptionBar elementOptionBar) Sets the element option bar.voidSets the element id.voidsetInheritanceInfo(org.opencms.ade.containerpage.shared.CmsInheritanceInfo inheritanceInfo) Sets the inheritance info for this element.voidsetNewType(String newType) Sets the new-type of the element.voidsetNoEditReason(String noEditReason) Sets the no edit reason.voidsetReleasedAndNotExpired(boolean releasedAndNotExpired) Sets if the element resource is currently released and not expired.voidsetSitePath(String sitePath) Sets the site path.voidsetViewPermission(boolean viewPermission) Sets if the current user has view permissions for the element resource.voidsetWritePermission(boolean writePermission) Sets the user write permission.voidShows list collector direct edit buttons (old direct edit style), if present.voidUpdates the option bar position.Methods inherited from class com.google.gwt.user.client.ui.AbsolutePanel
add, add, add, getWidgetLeft, getWidgetTop, insert, insert, insert, remove, setWidgetPosition, setWidgetPositionImplMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, 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, 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 org.opencms.gwt.client.dnd.I_CmsDraggable
getElementMethods inherited from interface org.opencms.acacia.client.I_CmsInlineFormParent
getElementMethods 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 
- 
Field Details
- 
PROP_ELEMENT_OBJECT_ID
Property used to mark an element as belonging to this widget.- See Also:
 
 - 
PROP_IS_MODEL_GROUP
The is model group property key.- See Also:
 
 - 
PROP_WAS_MODEL_GROUP
The former copy model property.- See Also:
 
 - 
m_highlighting
Highlighting border for this element. 
 - 
 - 
Constructor Details
 - 
Method Details
- 
isOverlay
Checks if the element is an overlay for a container page element.- Parameters:
 element- the element to check- Returns:
 - true if the element is an overlay
 
 - 
addClickHandler
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) - Specified by:
 addClickHandlerin interfacecom.google.gwt.event.dom.client.HasClickHandlers- See Also:
 
 - 
adoptWidget
Description copied from interface:I_CmsInlineFormParentAdopts the given widget as a child widget.This assumes the widget element is already attached to the DOM and is a child or descendant of this widget element.
- Specified by:
 adoptWidgetin interfaceI_CmsInlineFormParent- Parameters:
 widget- the widget to adopt- See Also:
 
 - 
getCursorOffsetDelta
Description copied from interface:I_CmsDraggableGets an optional pair of integers which are to be used as an "offset delta" for the drag and drop process.- Specified by:
 getCursorOffsetDeltain interfaceI_CmsDraggable- Returns:
 - an optional array containing exactly 2 entries [x,y]
 - See Also:
 
 - 
getDragHelper
Description copied from interface:I_CmsDraggableCreates the drag helper element and attaches it into the DOM.- Specified by:
 getDragHelperin interfaceI_CmsDraggable- Parameters:
 target- the drop target- Returns:
 - the drag helper element
 - See Also:
 
 - 
getElementOptionBar
Returns the option bar of this element.- Returns:
 - the option bar widget
 
 - 
getElementView
Returns the elements element view.- Returns:
 - the element view
 
 - 
getId
Description copied from interface:I_CmsDraggableReturns the draggable id.- Specified by:
 getIdin interfaceI_CmsDraggable- Returns:
 - the id
 - See Also:
 
 - 
getInheritanceInfo
Returns the inheritance info for this element.- Returns:
 - the inheritance info for this element
 
 - 
getLockInfo
Gets the lock information.- Returns:
 - the lock information
 
 - 
getModelGroupId
Returns the model group id.- Returns:
 - the model group id
 
 - 
getNewType
Returns the new element type.- Returns:
 - the new element type
 
 - 
getNoEditReason
Returns the no edit reason.- Returns:
 - the no edit reason
 
 - 
getObjectId
Gets the random id identifying this widget.The id is also stored in the element_object_id property of the DOM element for this widget.
- Returns:
 - the random id identifying this widget
 
 - 
getParentTarget
Description copied from interface:I_CmsDraggableReturns the parent drop target ornullif there is none.- Specified by:
 getParentTargetin interfaceI_CmsDraggable- Returns:
 - the parent drop target
 - See Also:
 
 - 
getPlaceholder
Description copied from interface:I_CmsDraggableCreates the drag placeholder element.- Specified by:
 getPlaceholderin interfaceI_CmsDraggable- Parameters:
 target- the drop target- Returns:
 - the drag placeholder element
 - See Also:
 
 - 
getReleasedAndNotExpired
Returns if the element resource is currently released and not expired.- Returns:
 trueif the element resource is currently released and not expired
 - 
getResourceType
Returns the element resource type name.- Returns:
 - the resource type name
 
 - 
getSitePath
Returns the site-path.- Returns:
 - the site-path
 
 - 
getStructureId
Returns the structure id of the element.- Returns:
 - the structure id of the element
 
 - 
hasEditHandler
Indicates an edit handler is configured for the element resource type.- Returns:
 - indicates an edit handler is configured for the element resource type
 
 - 
hasModelGroupParent
Returns whether this element has a model group parent.- Returns:
 trueif this element has a model group parent
 - 
hasReloadMarker
In case the inner HTML contains the reload marker.- Returns:
 truein case the inner HTML contains the reload marker
 - 
hasSettings
Returns true if the element has settings to edit.- Returns:
 - true if the element has settings to edit
 
 - 
hasViewPermission
Returns if the current user has view permissions for the element resource.- Returns:
 trueif the current user has view permissions for the element resource
 - 
hasWritePermission
Returns if the user has write permission.- Returns:
 trueif the user has write permission
 - 
hideEditableListButtons
Hides list collector direct edit buttons, if present. - 
highlightElement
Puts a highlighting border around the element. - 
initInlineEditor
Initializes the editor click handler.- Parameters:
 controller- the container page controller instance
 - 
isCreateNew
Checks if this element has 'createNew' status, i.e. will be copied when using this page as a model for a new container page.- Returns:
 - true if this element has createNew status
 
 - 
isModelGroup
Returns whether the element is used as a model group.- Returns:
 trueif the element is used as a model group
 - 
isNew
Returns if this is e newly created element.- Returns:
 trueif the element is new
 - 
isNewEditorDisabled
Returns true if the new content editor is disabled for this element.- Returns:
 - true if the new editor is disabled for this element
 
 - 
isReused
Checks if this element is marked as reused.- Returns:
 - true if the element is marked as reused
 
 - 
onDragCancel
Description copied from interface:I_CmsDraggableExecuted on drag cancel.- Specified by:
 onDragCancelin interfaceI_CmsDraggable- See Also:
 
 - 
onDrop
Description copied from interface:I_CmsDraggableExecuted on drop.- Specified by:
 onDropin interfaceI_CmsDraggable- Parameters:
 target- the drop target- See Also:
 
 - 
onStartDrag
Description copied from interface:I_CmsDraggableExecuted on drag start.- Specified by:
 onStartDragin interfaceI_CmsDraggable- Parameters:
 target- the current drop target- See Also:
 
 - 
removeFromParent
- Overrides:
 removeFromParentin classcom.google.gwt.user.client.ui.Widget- See Also:
 
 - 
removeHighlighting
Removes the highlighting border. - 
removeInlineEditor
Removes the inline editor. - 
replaceHtml
Description copied from interface:I_CmsInlineFormParentReplaces the inner HTML of widget to reflect content data changes.- Specified by:
 replaceHtmlin interfaceI_CmsInlineFormParent- Parameters:
 html- the element HTML- See Also:
 
 - 
setCreateNew
Sets the 'create new' status of the element.- Parameters:
 createNew- the new value for the 'create new' status
 - 
setElementOptionBar
Sets the element option bar.- Parameters:
 elementOptionBar- the element option bar to set
 - 
setId
Sets the element id.- Parameters:
 id- the id
 - 
setNewType
Sets the new-type of the element.- Parameters:
 newType- the new-type
 - 
setNoEditReason
Sets the no edit reason.- Parameters:
 noEditReason- the no edit reason to set
 - 
setReleasedAndNotExpired
Sets if the element resource is currently released and not expired.- Parameters:
 releasedAndNotExpired-trueif the element resource is currently released and not expired
 - 
setSitePath
Sets the site path.- Parameters:
 sitePath- the site path to set
 - 
setViewPermission
Sets if the current user has view permissions for the element resource.- Parameters:
 viewPermission- the view permission to set
 - 
setWritePermission
Sets the user write permission.- Parameters:
 writePermission- the user write permission to set
 - 
showEditableListButtons
Shows list collector direct edit buttons (old direct edit style), if present. - 
updateOptionBarPosition
Updates the option bar position. - 
checkForEditableChanges
Checks for changes in the list collector direct edit content. - 
getEditableElements
Gets the editable list elements.- Returns:
 - the editable list elements
 
 - 
hasChangedEditables
Returns if the list collector direct edit content has changed.- Returns:
 trueif the list collector direct edit content has changed
 - 
onDetach
- Overrides:
 onDetachin classcom.google.gwt.user.client.ui.Widget- See Also:
 
 - 
onLoad
- Overrides:
 onLoadin classcom.google.gwt.user.client.ui.Widget- See Also:
 
 - 
removeEditorHandler
Removes the inline editor handler. 
 -