Interface I_CmsDropContainer

All Superinterfaces:
I_CmsDropTarget, I_CmsNestedDropTarget
All Known Implementing Classes:
CmsContainerPageContainer, CmsGroupContainerElementPanel

public interface I_CmsDropContainer extends I_CmsNestedDropTarget
Interface for container page drop targets like containers and group-containers.

  • Method Details

    • add

      void add(com.google.gwt.user.client.ui.Widget w)
      Adds a new child widget.

      Parameters:
      w - the widget
      See Also:
      • HasWidgets.add(com.google.gwt.user.client.ui.Widget)
    • 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

      Checks the maximum number of allowed elements and hides overflowing elements.

    • checkMaxElementsOnLeave

      Checks the maximum number of allowed elements and displays formerly hidden elements.

    • 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

      Gets the number of child widgets in this panel.

      Returns:
      the number of child widgets
    • getWidgetIndex

      int getWidgetIndex(com.google.gwt.user.client.ui.Widget w)
      Gets the index of the specified child widget.

      Parameters:
      w - the widget
      Returns:
      the index
    • hideEditableListButtons

      Hides list collector direct edit buttons, if present.

    • highlightContainer

      void highlightContainer(boolean addSeparators)
      Puts a highlighting border around the container content.

    • highlightContainer

      void highlightContainer(CmsPositionBean positionInfo, boolean addSeparators)
      Puts a highlighting border around the container content using the given dimensions.

      Parameters:
      positionInfo - the highlighting position to use
    • insert

      void insert(com.google.gwt.user.client.ui.Widget w, int beforeIndex)
      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 child
      beforeIndex - the before index
    • isDetailOnly

      boolean isDetailOnly()
      Returns true if this container is a detail view only container.

      Returns:
      true if this container is a detail view only container
    • isDetailView

      boolean isDetailView()
      Returns true if this container is being currently used to display a detail view.

      Returns:
      true if this container is used to display a detail view
    • isEditable

      boolean isEditable()
      Returns if the container is editable by the current user.

      Returns:
      true if 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

      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

      Removes the highlighting border.

    • setPlaceholderVisibility

      void setPlaceholderVisibility(boolean visible)
      Sets the placeholder visibility.

      Parameters:
      visible - true to set the place holder visible
    • showEditableListButtons

      Shows list collector direct edit buttons (old direct edit style), if present.

    • updatePositionInfo

      Updates the cached position info.