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.DebugIdImplEnabledm_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, setWritePermissionadd, add, add, getWidgetLeft, getWidgetTop, insert, insert, insert, remove, setWidgetPosition, setWidgetPositionImpladd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onUnload, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, getWidgetCount, getWidgetIndex, insertgetElementgetElementpublic 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_CmsDropContaineradoptElement 在接口中 I_CmsDropContainercontainerElement - the element to adoptI_CmsDropContainer.adoptElement(org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel)public void checkMaxElementsOnEnter()
I_CmsDropContainerpublic void checkMaxElementsOnLeave()
I_CmsDropContainerpublic boolean checkPosition(int x,
int y,
CmsDNDHandler.Orientation orientation)
I_CmsDropTargetcheckPosition 在接口中 I_CmsDropTargetx - 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_CmsDropContainerpublic int getPlaceholderIndex()
I_CmsDropTargetgetPlaceholderIndex 在接口中 I_CmsDropTargetI_CmsDropTarget.getPlaceholderIndex()public void hideEditableListButtons()
CmsContainerPageElementPanelpublic void highlightContainer()
highlightContainer 在接口中 I_CmsDropContainerpublic void initInlineEditor(CmsContainerpageController controller)
CmsContainerPageElementPanelinitInlineEditor 在类中 CmsContainerPageElementPanelcontroller - 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_CmsDropTargetinsertPlaceholder 在接口中 I_CmsDropTargetplaceholder - 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_CmsDropContainertrue if this container is a detail view only container.isDetailOnly 在接口中 I_CmsDropContainertrue if this container is a detail view only containerI_CmsDropContainer.isDetailOnly()public boolean isDetailView()
I_CmsDropContainertrue if this container is being currently used to display a detail view.isDetailView 在接口中 I_CmsDropContainertrue 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_CmsDropTargetonDrop 在接口中 I_CmsDropTargetdraggable - the draggable being droppedI_CmsDropTarget.onDrop(org.opencms.gwt.client.dnd.I_CmsDraggable)public void refreshHighlighting()
I_CmsDropContainerpublic void removeHighlighting()
CmsContainerPageElementPanelpublic void removePlaceholder()
I_CmsDropTargetremovePlaceholder 在接口中 I_CmsDropTargetI_CmsDropTarget.removePlaceholder()public void repositionPlaceholder(int x,
int y,
CmsDNDHandler.Orientation orientation)
I_CmsDropTargetrepositionPlaceholder 在接口中 I_CmsDropTargetx - 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()
CmsContainerPageElementPanelpublic void updateOptionBarPosition()
CmsContainerPageElementPanel