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, remove
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, 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
getWidgetCount, getWidgetIndex
getElement
public CmsContainerPageContainer(I_CmsContainer containerData)
containerData
- the container datapublic void add(com.google.gwt.user.client.ui.Widget w)
I_CmsDropContainer
add
在接口中 com.google.gwt.user.client.ui.HasWidgets
add
在接口中 I_CmsDropContainer
add
在类中 com.google.gwt.user.client.ui.Panel
w
- the widgetPanel.add(com.google.gwt.user.client.ui.Widget)
public 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 java.util.List<CmsContainerPageElementPanel> getAllDragElements()
public int getConfiguredWidth()
public java.lang.String getContainerId()
getContainerId
在接口中 I_CmsDropContainer
public java.lang.String getContainerType()
public int getPlaceholderIndex()
I_CmsDropTarget
getPlaceholderIndex
在接口中 I_CmsDropTarget
I_CmsDropTarget.getPlaceholderIndex()
public void hideEditableListButtons()
I_CmsDropContainer
public void highlightContainer()
highlightContainer
在接口中 I_CmsDropContainer
public void insert(com.google.gwt.user.client.ui.Widget w, int beforeIndex)
I_CmsDropContainer
insert
在接口中 I_CmsDropContainer
w
- 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_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 isAttached()
isAttached
在接口中 com.google.gwt.event.logical.shared.HasAttachHandlers
isAttached
在类中 com.google.gwt.user.client.ui.Widget
Widget.isAttached()
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()
isDetailView
在接口中 I_CmsDropContainer
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent
在接口中 com.google.gwt.user.client.EventListener
onBrowserEvent
在类中 com.google.gwt.user.client.ui.Widget
Widget.onBrowserEvent(com.google.gwt.user.client.Event)
public 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()
refreshHighlighting
在接口中 I_CmsDropContainer
public void removeHighlighting()
removeHighlighting
在接口中 I_CmsDropContainer
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 showEditableListButtons()
I_CmsDropContainer
public 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