Class CmsListCollectorEditor

  • All Implemented Interfaces:,,,,,,,,,,,,, java.lang.Iterable<>, I_CmsElementToolbarContext, I_CmsUniqueActiveItem

    public class CmsListCollectorEditor
    extends A_CmsDirectEditButtons
    Class to provide direct edit buttons within list collector elements.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class,
      • Nested classes/interfaces inherited from interface
      • Nested classes/interfaces inherited from interface
      • Nested classes/interfaces inherited from interface
    • Constructor Summary

      Constructor Description
      CmsListCollectorEditor​( editable, java.lang.String parentId)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CmsPushButton createFavButton()
      Creates the button to add an element to the user's favorites.
      protected void defaultNew()
      Handles the 'default case' when using the new function on an editable element.
      protected void deleteElement()
      Delete the editable element from page and VFS.
      protected java.util.Map<java.lang.Integer,​CmsPushButton> getAdditionalButtons()
      Returns a map of additional buttons in a map, with the button position as key (buttons will be ordered by their position).
      protected java.util.Map<java.lang.String,​java.lang.String> getInfoContext()
      Provides context parameters for the resource info dialog.
      protected java.lang.String getUploadButtonTitle​(java.lang.String uploadFolder)
      Gets the upload button title.
      boolean isVisibleInCurrentView()
      Returns true if the element view of the element is compatible with the currently set element view in the container page editor.
      protected void onClickDelete()
      This method should be executed when the "delete" direct edit button is clicked.
      protected void onClickEdit()
      This method should be executed when the "edit" direct edit button is clicked.
      protected void onClickNew​(boolean askCreateMode)
      This method should be executed when the "new" direct edit button is clicked.
      protected void onClickUpload()
      Method to be executed when the "new" direct edit button is clicked, and the corresponding file has a type for which the upload dialog should be triggered.
      protected void openEditDialog​(boolean isNew, java.lang.String mode, org.opencms.ade.contenteditor.shared.CmsEditHandlerData handlerDataForNew)
      Opens the content editor.
      protected void openWarningDialog()
      Shows the delete warning dialog.
      void setParentHasDimensions​(boolean parentHasDimensions)
      Sets the 'parentHasDimensions' flag.
      void setPosition​(CmsPositionBean position, containerElement)
      Sets the position.
      void updateVisibility​(boolean editableContainer)
      Shows or hides the widget depending on the current view and whether the parent element has width or height.
      • Methods inherited from class

        add, clear, insert, insert
      • Methods inherited from class

        add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
      • Methods inherited from class

        add, adopt, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class

        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

      • Methods inherited from interface

        getWidget, getWidgetCount, getWidgetIndex, remove
      • Methods inherited from interface

      • Methods inherited from interface

      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator