public class CmsContainerPageElementPanel extends com.google.gwt.user.client.ui.AbsolutePanel implements I_CmsDraggable, com.google.gwt.event.dom.client.HasClickHandlers, com.alkacon.acacia.client.I_InlineFormParent
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
限定符和类型 | 字段和说明 |
---|---|
protected CmsHighlightingBorder |
m_highlighting
Highlighting border for this element.
|
构造器和说明 |
---|
CmsContainerPageElementPanel(com.google.gwt.dom.client.Element element,
I_CmsDropContainer parent,
java.lang.String clientId,
java.lang.String sitePath,
java.lang.String noEditReason,
boolean hasSettings,
boolean hasViewPermission,
boolean hasWritePermission,
boolean releasedAndNotExpired,
boolean disableNewEditor)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
void |
adoptWidget(com.google.gwt.user.client.ui.IsWidget widget) |
protected void |
checkForEditableChanges()
Checks for changes in the list collector direct edit content.
|
com.google.gwt.dom.client.Element |
getDragHelper(I_CmsDropTarget target)
Creates the drag helper element and attaches it into the DOM.
|
CmsElementOptionBar |
getElementOptionBar()
Returns the option bar of this element.
|
java.lang.String |
getId()
Returns the draggable id.
|
CmsInheritanceInfo |
getInheritanceInfo()
Returns the inheritance info for this element.
|
java.lang.String |
getNewType()
Returns the new element type.
|
java.lang.String |
getNoEditReason()
Returns the no edit reason.
|
I_CmsDropContainer |
getParentTarget()
Returns the parent drop target or
null if there is none. |
com.google.gwt.dom.client.Element |
getPlaceholder(I_CmsDropTarget target)
Creates the drag placeholder element.
|
boolean |
getReleasedAndNotExpired()
Returns if the element resource is currently released and not expired.
|
java.lang.String |
getSitePath()
Returns the site-path.
|
CmsUUID |
getStructureId()
Returns the structure id of the element.
|
protected boolean |
hasChangedEditables()
Returns if the list collector direct edit content has changed.
|
boolean |
hasSettings()
Returns true if the element has settings to edit.
|
boolean |
hasViewPermission()
Returns if the current user has view permissions for the element resource.
|
boolean |
hasWritePermission()
Returns if the user has write permission.
|
void |
hideEditableListButtons()
Hides list collector direct edit buttons, if present.
|
void |
highlightElement()
Puts a highlighting border around the element.
|
void |
initInlineEditor(CmsContainerpageController controller)
Initializes the editor click handler.
|
boolean |
isNew()
Returns if this is e newly created element.
|
boolean |
isNewEditorDisabled()
Returns true if the new content editor is disabled for this element.
|
protected void |
onDetach() |
void |
onDragCancel()
Executed on drag cancel.
|
void |
onDrop(I_CmsDropTarget target)
Executed on drop.
|
protected void |
onLoad() |
void |
onStartDrag(I_CmsDropTarget target)
Executed on drag start.
|
protected void |
removeEditorHandler()
Removes the inline editor handler.
|
void |
removeFromParent() |
void |
removeHighlighting()
Removes the highlighting border.
|
void |
removeInlineEditor()
Removes the inline editor.
|
void |
replaceHtml(java.lang.String html) |
void |
setElementOptionBar(CmsElementOptionBar elementOptionBar)
Sets the elementOptionBar.
|
void |
setId(java.lang.String id)
Sets the element id.
|
void |
setInheritanceInfo(CmsInheritanceInfo inheritanceInfo)
Sets the inheritance info for this element.
|
void |
setNewType(java.lang.String newType)
Sets the new-type of the element.
|
void |
setNoEditReason(java.lang.String noEditReason)
Sets the no edit reason.
|
void |
setReleasedAndNotExpired(boolean releasedAndNotExpired)
Sets if the element resource is currently released and not expired.
|
void |
setSitePath(java.lang.String sitePath)
Sets the site path.
|
void |
setViewPermission(boolean viewPermission)
Sets if the current user has view permissions for the element resource.
|
void |
setWritePermission(boolean writePermission)
Sets the user write permission.
|
void |
showEditableListButtons()
Shows list collector direct edit buttons (old direct edit style), if present.
|
void |
updateOptionBarPosition()
Updates the option bar position.
|
add, add, add, getWidgetLeft, getWidgetTop, insert, insert, insert, remove, setWidgetPosition, setWidgetPositionImpl
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onUnload, setLayoutData, sinkEvents
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, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElement
protected CmsHighlightingBorder m_highlighting
public CmsContainerPageElementPanel(com.google.gwt.dom.client.Element element, I_CmsDropContainer parent, java.lang.String clientId, java.lang.String sitePath, java.lang.String noEditReason, boolean hasSettings, boolean hasViewPermission, boolean hasWritePermission, boolean releasedAndNotExpired, boolean disableNewEditor)
element
- the DOM elementparent
- the drag parentclientId
- the client idsitePath
- the element site-pathnoEditReason
- the no edit reason, if empty, editing is allowedhasSettings
- should be true if the element has settings which can be editedhasViewPermission
- indicates if the current user has view permissions on the element resourcehasWritePermission
- indicates if the current user has write permissions on the element resourcereleasedAndNotExpired
- true
if the element resource is currently released and not expireddisableNewEditor
- flag to disable the new editor for this elementpublic com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler
在接口中 com.google.gwt.event.dom.client.HasClickHandlers
HasClickHandlers.addClickHandler(com.google.gwt.event.dom.client.ClickHandler)
public void adoptWidget(com.google.gwt.user.client.ui.IsWidget widget)
adoptWidget
在接口中 com.alkacon.acacia.client.I_InlineFormParent
I_InlineFormParent.adoptWidget(com.google.gwt.user.client.ui.IsWidget)
public com.google.gwt.dom.client.Element getDragHelper(I_CmsDropTarget target)
I_CmsDraggable
getDragHelper
在接口中 I_CmsDraggable
target
- the drop targetI_CmsDraggable.getDragHelper(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public CmsElementOptionBar getElementOptionBar()
public java.lang.String getId()
I_CmsDraggable
getId
在接口中 I_CmsDraggable
I_CmsDraggable.getId()
public CmsInheritanceInfo getInheritanceInfo()
public java.lang.String getNewType()
public java.lang.String getNoEditReason()
public I_CmsDropContainer getParentTarget()
I_CmsDraggable
null
if there is none.getParentTarget
在接口中 I_CmsDraggable
I_CmsDraggable.getParentTarget()
public com.google.gwt.dom.client.Element getPlaceholder(I_CmsDropTarget target)
I_CmsDraggable
getPlaceholder
在接口中 I_CmsDraggable
target
- the drop targetI_CmsDraggable.getPlaceholder(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public boolean getReleasedAndNotExpired()
true
if the element resource is currently released and not expiredpublic java.lang.String getSitePath()
public CmsUUID getStructureId()
public boolean hasSettings()
public boolean hasViewPermission()
true
if the current user has view permissions for the element resourcepublic boolean hasWritePermission()
true
if the user has write permissionpublic void hideEditableListButtons()
public void highlightElement()
public void initInlineEditor(CmsContainerpageController controller)
controller
- the container page controller instancepublic boolean isNew()
true
if the element is newpublic boolean isNewEditorDisabled()
public void onDragCancel()
I_CmsDraggable
onDragCancel
在接口中 I_CmsDraggable
I_CmsDraggable.onDragCancel()
public void onDrop(I_CmsDropTarget target)
I_CmsDraggable
onDrop
在接口中 I_CmsDraggable
target
- the drop targetI_CmsDraggable.onDrop(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public void onStartDrag(I_CmsDropTarget target)
I_CmsDraggable
onStartDrag
在接口中 I_CmsDraggable
target
- the current drop targetI_CmsDraggable.onStartDrag(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public void removeFromParent()
removeFromParent
在类中 com.google.gwt.user.client.ui.Widget
Widget.removeFromParent()
public void removeHighlighting()
public void removeInlineEditor()
public void replaceHtml(java.lang.String html)
replaceHtml
在接口中 com.alkacon.acacia.client.I_InlineFormParent
I_InlineFormParent.replaceHtml(java.lang.String)
public void setElementOptionBar(CmsElementOptionBar elementOptionBar)
elementOptionBar
- the elementOptionBar to setpublic void setId(java.lang.String id)
id
- the idpublic void setInheritanceInfo(CmsInheritanceInfo inheritanceInfo)
inheritanceInfo
- the inheritance info for this element to setpublic void setNewType(java.lang.String newType)
newType
- the new-typepublic void setNoEditReason(java.lang.String noEditReason)
noEditReason
- the no edit reason to setpublic void setReleasedAndNotExpired(boolean releasedAndNotExpired)
releasedAndNotExpired
- true
if the element resource is currently released and not expiredpublic void setSitePath(java.lang.String sitePath)
sitePath
- the site path to setpublic void setViewPermission(boolean viewPermission)
viewPermission
- the view permission to setpublic void setWritePermission(boolean writePermission)
writePermission
- the user write permission to setpublic void showEditableListButtons()
public void updateOptionBarPosition()
protected void checkForEditableChanges()
protected boolean hasChangedEditables()
true
if the list collector direct edit content has changedprotected void onDetach()
onDetach
在类中 com.google.gwt.user.client.ui.Widget
Widget.onDetach()
protected void onLoad()
onLoad
在类中 com.google.gwt.user.client.ui.Widget
Widget.onLoad()
protected void removeEditorHandler()