public class CmsContainerPageContainer extends com.google.gwt.user.client.ui.ComplexPanel implements I_CmsDropContainer
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
CmsContainerPageContainer.ElementPositionInfo
Element position info class.
|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| 构造器和说明 |
|---|
CmsContainerPageContainer(I_CmsContainer containerData)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Adds a new child widget.
|
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.
|
java.util.List<CmsContainerPageElementPanel> |
getAllDragElements()
Returns all contained drag elements.
|
int |
getConfiguredWidth()
Returns the configured width for this container.
|
java.lang.String |
getContainerId()
Returns the container id.
|
java.lang.String |
getContainerType()
Returns the container type.
|
int |
getPlaceholderIndex()
Returns the index of the placeholder or -1 if no placeholder is attached.
|
protected com.google.gwt.user.client.ui.Widget |
getWidget()
Provides subclasses access to the topmost widget that defines this
composite.
|
void |
hideEditableListButtons()
Hides list collector direct edit buttons, if present.
|
void |
highlightContainer()
Puts a highlighting border around the container content.
|
protected void |
initWidget(com.google.gwt.user.client.ui.Widget widget)
Sets the widget to be wrapped by the composite.
|
void |
insert(com.google.gwt.user.client.ui.Widget w,
int beforeIndex)
Inserts a child widget before the specified index.
|
void |
insertPlaceholder(com.google.gwt.dom.client.Element placeholder,
int x,
int y,
CmsDNDHandler.Orientation orientation)
Inserts a new placeholder.
|
boolean |
isAttached() |
boolean |
isDetailOnly()
Returns
true if this container is a detail view only container. |
boolean |
isDetailView()
Returns true if this is a detail view container.
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
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 |
showEditableListButtons()
Shows list collector direct edit buttons (old direct edit style), if present.
|
void |
updateOptionBars()
Updates the option bar positions of the child elements.
|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, 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, waitgetWidgetCount, getWidgetIndexgetElementpublic CmsContainerPageContainer(I_CmsContainer containerData)
containerData - the container datapublic void add(com.google.gwt.user.client.ui.Widget w)
I_CmsDropContaineradd 在接口中 com.google.gwt.user.client.ui.HasWidgetsadd 在接口中 I_CmsDropContaineradd 在类中 com.google.gwt.user.client.ui.Panelw - the widgetPanel.add(com.google.gwt.user.client.ui.Widget)public 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 java.util.List<CmsContainerPageElementPanel> getAllDragElements()
public int getConfiguredWidth()
public java.lang.String getContainerId()
getContainerId 在接口中 I_CmsDropContainerpublic java.lang.String getContainerType()
public int getPlaceholderIndex()
I_CmsDropTargetgetPlaceholderIndex 在接口中 I_CmsDropTargetI_CmsDropTarget.getPlaceholderIndex()public void hideEditableListButtons()
I_CmsDropContainerpublic void highlightContainer()
highlightContainer 在接口中 I_CmsDropContainerpublic void insert(com.google.gwt.user.client.ui.Widget w,
int beforeIndex)
I_CmsDropContainerinsert 在接口中 I_CmsDropContainerw - the new childbeforeIndex - the before indexI_CmsDropContainer.insert(com.google.gwt.user.client.ui.Widget, int)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 isAttached()
isAttached 在接口中 com.google.gwt.event.logical.shared.HasAttachHandlersisAttached 在类中 com.google.gwt.user.client.ui.WidgetWidget.isAttached()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()
isDetailView 在接口中 I_CmsDropContainerpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent 在接口中 com.google.gwt.user.client.EventListeneronBrowserEvent 在类中 com.google.gwt.user.client.ui.WidgetWidget.onBrowserEvent(com.google.gwt.user.client.Event)public 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()
refreshHighlighting 在接口中 I_CmsDropContainerpublic void removeHighlighting()
removeHighlighting 在接口中 I_CmsDropContainerpublic 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 showEditableListButtons()
I_CmsDropContainerpublic void updateOptionBars()
protected com.google.gwt.user.client.ui.Widget getWidget()
protected void initWidget(com.google.gwt.user.client.ui.Widget widget)
Widget methods on this object, or adding it
to a panel. This method may only be called once for a given composite.widget - the widget to be wrapped