Interface I_CmsDropContainer
- All Superinterfaces:
I_CmsDropTarget,I_CmsNestedDropTarget
- All Known Implementing Classes:
CmsContainerPageContainer,CmsGroupContainerElementPanel
Interface for container page drop targets like containers and group-containers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.google.gwt.user.client.ui.Widget w) Adds a new child widget.voidaddDndChild(I_CmsDropTarget child) Registers a child drop target.voidadoptElement(CmsContainerPageElementPanel containerElement) Adopts a container-page element registering it as a child of this container.voidChecks the maximum number of allowed elements and hides overflowing elements.voidChecks the maximum number of allowed elements and displays formerly hidden elements.voidClears the list of child drop targets.Returns the container id.Returns the current position info.intGets the number of child widgets in this panel.intgetWidgetIndex(com.google.gwt.user.client.ui.Widget w) Gets the index of the specified child widget.voidHides list collector direct edit buttons, if present.voidhighlightContainer(boolean addSeparators) Puts a highlighting border around the container content.voidhighlightContainer(CmsPositionBean positionInfo, boolean addSeparators) Puts a highlighting border around the container content using the given dimensions.voidinsert(com.google.gwt.user.client.ui.Widget w, int beforeIndex) Inserts a child widget before the specified index.booleanReturnstrueif this container is a detail view only container.booleanReturnstrueif this container is being currently used to display a detail view.booleanReturns if the container is editable by the current user.voidonConsumeChildren(List<CmsContainerPageElementPanel> children) This is called when the elements of this container/group have been processed into CmsContainerPageElementPanels.voidRefreshes position and dimension of the highlighting border.voidrefreshHighlighting(CmsPositionBean positionInfo) Refreshes position and dimension of the highlighting border.voidRemoves the highlighting border.voidsetPlaceholderVisibility(boolean visible) Sets the placeholder visibility.voidShows list collector direct edit buttons (old direct edit style), if present.voidUpdates the cached position info.Methods inherited from interface org.opencms.gwt.client.dnd.I_CmsDropTarget
checkPosition, getElement, getPlaceholderIndex, insertPlaceholder, onDrop, removePlaceholder, repositionPlaceholderMethods inherited from interface org.opencms.gwt.client.dnd.I_CmsNestedDropTarget
getDnDChildren, hasDnDChildren
-
Method Details
-
add
Adds a new child widget.- Parameters:
w- the widget- See Also:
-
addDndChild
Registers a child drop target.- Parameters:
child- the child
-
adoptElement
Adopts a container-page element registering it as a child of this container. Used for elements that are already child nodes of the container-element node in DOM.- Parameters:
containerElement- the element to adopt
-
checkMaxElementsOnEnter
void checkMaxElementsOnEnter()Checks the maximum number of allowed elements and hides overflowing elements. -
checkMaxElementsOnLeave
void checkMaxElementsOnLeave()Checks the maximum number of allowed elements and displays formerly hidden elements. -
clearDnDChildren
void clearDnDChildren()Clears the list of child drop targets. -
getContainerId
Returns the container id.- Returns:
- the container id
-
getPositionInfo
Returns the current position info.- Returns:
- the position info
-
getWidgetCount
int getWidgetCount()Gets the number of child widgets in this panel.- Returns:
- the number of child widgets
-
getWidgetIndex
Gets the index of the specified child widget.- Parameters:
w- the widget- Returns:
- the index
-
hideEditableListButtons
void hideEditableListButtons()Hides list collector direct edit buttons, if present. -
highlightContainer
Puts a highlighting border around the container content. -
highlightContainer
Puts a highlighting border around the container content using the given dimensions.- Parameters:
positionInfo- the highlighting position to use
-
insert
Inserts a child widget before the specified index. If the widget is already a child of this panel, it will be moved to the specified index.- Parameters:
w- the new childbeforeIndex- the before index
-
isDetailOnly
boolean isDetailOnly()Returnstrueif this container is a detail view only container.- Returns:
trueif this container is a detail view only container
-
isDetailView
boolean isDetailView()Returnstrueif this container is being currently used to display a detail view.- Returns:
trueif this container is used to display a detail view
-
isEditable
boolean isEditable()Returns if the container is editable by the current user.- Returns:
trueif the container is editable by the current user
-
onConsumeChildren
This is called when the elements of this container/group have been processed into CmsContainerPageElementPanels.- Parameters:
children- the processed children
-
refreshHighlighting
void refreshHighlighting()Refreshes position and dimension of the highlighting border. Call when anything changed during the drag process. -
refreshHighlighting
Refreshes position and dimension of the highlighting border. Call when anything changed during the drag process.- Parameters:
positionInfo- the position info to use
-
removeHighlighting
void removeHighlighting()Removes the highlighting border. -
setPlaceholderVisibility
Sets the placeholder visibility.- Parameters:
visible-trueto set the place holder visible
-
showEditableListButtons
void showEditableListButtons()Shows list collector direct edit buttons (old direct edit style), if present. -
updatePositionInfo
void updatePositionInfo()Updates the cached position info.
-