Class CmsContainerPageContainer

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
org.opencms.ade.containerpage.client.ui.CmsContainerPageContainer
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsDropContainer, I_CmsDropTarget, I_CmsNestedDropTarget

public class CmsContainerPageContainer extends com.google.gwt.user.client.ui.ComplexPanel implements I_CmsDropContainer
Container page container.

Since:
8.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Helper class for resizing containers in the drag/drop process when an element is dropped into them that is of lower height than the empty container HTML.
    protected class 
    Element position info class.

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled

    Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

    com.google.gwt.user.client.ui.HasWidgets.ForIsWidget

    Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

    com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of a special property for the container id.

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsContainerPageContainer(org.opencms.ade.containerpage.shared.CmsContainer containerData, com.google.gwt.dom.client.Element element)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(com.google.gwt.user.client.ui.Widget w)
    Adds a new child widget.
    void
    Registers a child drop target.
    void
    Adopts a container-page element registering it as a child of this container.
    void
    Check if the empty container content should be displayed or removed.
    void
    Checks the maximum number of allowed elements and hides overflowing elements.
    void
    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
    Clears the list of child drop targets.
    static void
    Clears the static layout change object, resetting it if it's not null.
    Returns all contained drag elements.
    int
    Returns the configured width for this container.
    Returns the container id.
    int
    Returns the container level.
    Returns the container type.
    In case of a former copy model, and a max elements setting of one, the id of the overflowing element is returned.
    Returns the list of child drop targets.
    com.google.gwt.dom.client.Element
    Returns whether this container has a model group parent.
    Gets the highlighting widget for the container.
    Returns the parent container id.
    int
    Returns the index of the placeholder or -1 if no placeholder is attached.
    Returns the current position info.
    Returns the settings presets.
    boolean
    Checks whether this drop target has any children.
    boolean
    Returns whether this container has a model group parent.
    void
    Hides list collector direct edit buttons, if present.
    void
    highlightContainer(boolean addSeparators)
    Puts a highlighting border around the container content.
    void
    highlightContainer(CmsPositionBean positionInfo, boolean addSeparators)
    Puts a highlighting border around the container content using the given dimensions.
    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
    Returns true if this container is a detail view only container.
    boolean
    Returns true if this is a detail view container, being actually used for detail content.
    boolean
    Checks if this is a detail view container.
    boolean
    Returns if the container is editable by the current user.
    boolean
    Checks if the container is showing the empty container element.
    static int
    measureHeight(com.google.gwt.dom.client.Element elem)
    Measures the height of the container's element.
    Creates a new layout helper for resizing containers.
    void
    This is called when the elements of this container/group have been processed into CmsContainerPageElementPanels.
    void
    Executed on drop.
    void
    Refreshes position and dimension of the highlighting border.
    void
    Refreshes position and dimension of the highlighting border.
    void
    Removes the highlighting border.
    void
    Removes the placeholder.
    void
    repositionPlaceholder(int x, int y, CmsDNDHandler.Orientation orientation)
    Repositions the placeholder.
    void
    setContainerLevel(int level)
    Sets the container level.
    void
    setEmptyContainerElement(com.google.gwt.dom.client.Element emptyContainerElement)
    Sets the empty container element.
    Measures the height of the container and sets its min-height to that value.
    void
     
    void
    setPlaceholderVisibility(boolean visible)
    Sets the placeholder visibility.
    void
    Shows list collector direct edit buttons (old direct edit style), if present.
    void
    Updates the option bar positions of the child elements.
    void
    Updates the cached position info.

    Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel

    add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove

    Methods inherited from class com.google.gwt.user.client.ui.Panel

    add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.opencms.ade.containerpage.client.ui.I_CmsDropContainer

    getWidgetCount, getWidgetIndex

    Methods inherited from interface org.opencms.gwt.client.dnd.I_CmsDropTarget

    getElement

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator