public class CmsGroupContainerElementPanel extends CmsContainerPageElementPanel implements I_CmsDropContainer
The group-container acts as a draggable element and if edited as a container.
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
m_highlighting
构造器和说明 |
---|
CmsGroupContainerElementPanel(com.google.gwt.dom.client.Element element,
I_CmsDropContainer parent,
java.lang.String clientId,
java.lang.String sitePath,
java.lang.String resourceType,
java.lang.String noEditReason,
boolean hasSettings,
boolean hasViewPermission,
boolean hasWritePermission,
boolean releasedAndNotExpired)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
adoptElement(CmsContainerPageElementPanel containerElement)
Adopts a container-page element registering it as a child of this container.
|
void |
checkMaxElementsOnEnter()
Checks the maximum number of allowed elements and hides overflowing elements.
|
void |
checkMaxElementsOnLeave()
Checks the maximum number of allowed elements and displays formerly hidden elements.
|
boolean |
checkPosition(int x,
int y,
CmsDNDHandler.Orientation orientation)
Returns true if the given cursor position is over the drop target.
|
void |
clearEditingPlaceholder()
Clears the editing placeholder reference.
|
java.lang.String |
getContainerId()
Returns the container id.
|
int |
getPlaceholderIndex()
Returns the index of the placeholder or -1 if no placeholder is attached.
|
void |
hideEditableListButtons()
Hides list collector direct edit buttons, if present.
|
void |
highlightContainer()
Puts a highlighting border around the container content.
|
void |
initInlineEditor(CmsContainerpageController controller)
Initializes the editor click handler.
|
void |
insertPlaceholder(com.google.gwt.dom.client.Element placeholder,
int x,
int y,
CmsDNDHandler.Orientation orientation)
Inserts a new placeholder.
|
boolean |
isDetailOnly()
Returns
true if this container is a detail view only container. |
boolean |
isDetailView()
Returns
true if this container is being currently used to display a detail view. |
boolean |
isGroupContainer()
Returns if this element represents a group container.
|
boolean |
isInheritContainer()
Returns if this element represents an inherit container.
|
void |
onDrop(I_CmsDraggable draggable)
Executed on drop.
|
void |
refreshHighlighting()
Refreshes position and dimension of the highlighting border.
|
void |
removeHighlighting()
Removes the highlighting border.
|
void |
removePlaceholder()
Removes the placeholder.
|
void |
repositionPlaceholder(int x,
int y,
CmsDNDHandler.Orientation orientation)
Repositions the placeholder.
|
void |
setContainerId(java.lang.String containerId)
Sets the container id.
|
void |
setEditingMarker(com.google.gwt.dom.client.Element editingMarker)
Sets the editing marker.
|
void |
setEditingPlaceholder(com.google.gwt.dom.client.Element editingPlaceholder)
Sets the editing placeholder.
|
void |
showEditableListButtons()
Shows list collector direct edit buttons (old direct edit style), if present.
|
void |
updateOptionBarPosition()
Updates the option bar position.
|
addClickHandler, adoptWidget, checkForEditableChanges, getDragHelper, getElementOptionBar, getId, getInheritanceInfo, getNewType, getNoEditReason, getParentTarget, getPlaceholder, getReleasedAndNotExpired, getSitePath, getStructureId, hasChangedEditables, hasSettings, hasViewPermission, hasWritePermission, highlightElement, isNew, isNewEditorDisabled, onDetach, onDragCancel, onDrop, onLoad, onStartDrag, removeEditorHandler, removeFromParent, removeInlineEditor, replaceHtml, setElementOptionBar, setId, setInheritanceInfo, setNewType, setNoEditReason, setReleasedAndNotExpired, setSitePath, setViewPermission, setWritePermission
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
add, getWidgetCount, getWidgetIndex, insert
getElement
getElement
public CmsGroupContainerElementPanel(com.google.gwt.dom.client.Element element, I_CmsDropContainer parent, java.lang.String clientId, java.lang.String sitePath, java.lang.String resourceType, java.lang.String noEditReason, boolean hasSettings, boolean hasViewPermission, boolean hasWritePermission, boolean releasedAndNotExpired)
element
- the DOM elementparent
- the drag parentclientId
- the client idsitePath
- the element site-pathresourceType
- the resource type namenoEditReason
- 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 expiredpublic void adoptElement(CmsContainerPageElementPanel containerElement)
I_CmsDropContainer
adoptElement
在接口中 I_CmsDropContainer
containerElement
- the element to adoptI_CmsDropContainer.adoptElement(org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel)
public void checkMaxElementsOnEnter()
I_CmsDropContainer
public void checkMaxElementsOnLeave()
I_CmsDropContainer
public boolean checkPosition(int x, int y, CmsDNDHandler.Orientation orientation)
I_CmsDropTarget
checkPosition
在接口中 I_CmsDropTarget
x
- the cursor client x positiony
- the cursor client y positionorientation
- the drag and drop orientationtrue
if the given cursor position is over the drop targetorg.opencms.gwt.client.dnd.I_CmsDropTarget#checkPosition(int, int, Orientation)
public void clearEditingPlaceholder()
public java.lang.String getContainerId()
getContainerId
在接口中 I_CmsDropContainer
public int getPlaceholderIndex()
I_CmsDropTarget
getPlaceholderIndex
在接口中 I_CmsDropTarget
I_CmsDropTarget.getPlaceholderIndex()
public void hideEditableListButtons()
CmsContainerPageElementPanel
public void highlightContainer()
highlightContainer
在接口中 I_CmsDropContainer
public void initInlineEditor(CmsContainerpageController controller)
CmsContainerPageElementPanel
initInlineEditor
在类中 CmsContainerPageElementPanel
controller
- the container page controller instanceCmsContainerPageElementPanel.initInlineEditor(org.opencms.ade.containerpage.client.CmsContainerpageController)
public void insertPlaceholder(com.google.gwt.dom.client.Element placeholder, int x, int y, CmsDNDHandler.Orientation orientation)
I_CmsDropTarget
insertPlaceholder
在接口中 I_CmsDropTarget
placeholder
- the placeholder elementx
- the cursor client x positiony
- the cursor client y positionorientation
- the drag and drop orientationorg.opencms.gwt.client.dnd.I_CmsDropTarget#insertPlaceholder(com.google.gwt.dom.client.Element, int, int, Orientation)
public boolean isDetailOnly()
I_CmsDropContainer
true
if this container is a detail view only container.isDetailOnly
在接口中 I_CmsDropContainer
true
if this container is a detail view only containerI_CmsDropContainer.isDetailOnly()
public boolean isDetailView()
I_CmsDropContainer
true
if this container is being currently used to display a detail view.isDetailView
在接口中 I_CmsDropContainer
true
if this container is used to display a detail viewI_CmsDropContainer.isDetailView()
public boolean isGroupContainer()
true
if this element represents a group containerpublic boolean isInheritContainer()
true
if this element represents an inherit containerpublic void onDrop(I_CmsDraggable draggable)
I_CmsDropTarget
onDrop
在接口中 I_CmsDropTarget
draggable
- the draggable being droppedI_CmsDropTarget.onDrop(org.opencms.gwt.client.dnd.I_CmsDraggable)
public void refreshHighlighting()
I_CmsDropContainer
public void removeHighlighting()
CmsContainerPageElementPanel
public void removePlaceholder()
I_CmsDropTarget
removePlaceholder
在接口中 I_CmsDropTarget
I_CmsDropTarget.removePlaceholder()
public void repositionPlaceholder(int x, int y, CmsDNDHandler.Orientation orientation)
I_CmsDropTarget
repositionPlaceholder
在接口中 I_CmsDropTarget
x
- the cursor client x positiony
- the cursor client y positionorientation
- the drag and drop orientationorg.opencms.gwt.client.dnd.I_CmsDropTarget#repositionPlaceholder(int, int, Orientation)
public void setContainerId(java.lang.String containerId)
containerId
- the container id to setpublic void setEditingMarker(com.google.gwt.dom.client.Element editingMarker)
editingMarker
- the editing marker elementpublic void setEditingPlaceholder(com.google.gwt.dom.client.Element editingPlaceholder)
editingPlaceholder
- the editing placeholder elementpublic void showEditableListButtons()
CmsContainerPageElementPanel
public void updateOptionBarPosition()
CmsContainerPageElementPanel