Class CmsBrokenLinksPanel

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.ade.publish.client.CmsBrokenLinksPanel
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.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsBrokenLinksPanel extends com.google.gwt.user.client.ui.Composite
The panel for showing links which would be broken by publishing.

Since:
8.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
    The UiBinder interface.

    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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected CmsPushButton
    The button which makes the publish dialog go back to the "resource selection" state.
    protected CmsPushButton
    The button which cancels the publish dialog.
    protected com.google.gwt.user.client.ui.Label
    The text shown above the resource panel.
    protected CmsList<CmsTreeItem>
    The list containing the resource widgets representing broken links.
    protected CmsScrollPanel
    The scroll panel containing the group panel.
    static int[]
    Button slot mapping for showing broken links.

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

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsBrokenLinksPanel(CmsPublishDialog publishDialog, int scrollPanelHeight)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    addEntry(org.opencms.ade.publish.shared.CmsPublishResource res)
    Adds a resource bean to be displayed.
    protected void
    doClickBack(com.google.gwt.event.dom.client.ClickEvent e)
    The event handler for the back button.
    protected void
    doClickCancel(com.google.gwt.event.dom.client.ClickEvent e)
    The event handler for the cancel button.
    protected void
    executeAction(org.opencms.ade.publish.shared.CmsWorkflowAction action)
    Executes the given action.
    Returns the buttons which should be shown in the publish dialog's button panel.
    void
    setEntries(Collection<org.opencms.ade.publish.shared.CmsPublishResource> resourceBeans, List<org.opencms.ade.publish.shared.CmsWorkflowAction> actions)
    Sets the resources to be displayed.
    void
    Updates the dialog title.

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

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

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

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, 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
  • Field Details

    • SLOT_MAPPING

      public static int[] SLOT_MAPPING
      Button slot mapping for showing broken links.
    • m_backButton

      @UiField protected CmsPushButton m_backButton
      The button which makes the publish dialog go back to the "resource selection" state.
    • m_cancelButton

      @UiField protected CmsPushButton m_cancelButton
      The button which cancels the publish dialog.
    • m_label

      @UiField protected com.google.gwt.user.client.ui.Label m_label
      The text shown above the resource panel.
    • m_list

      @UiField protected CmsList<CmsTreeItem> m_list
      The list containing the resource widgets representing broken links.
    • m_scrollPanel

      @UiField protected CmsScrollPanel m_scrollPanel
      The scroll panel containing the group panel.
  • Constructor Details

    • CmsBrokenLinksPanel

      public CmsBrokenLinksPanel(CmsPublishDialog publishDialog, int scrollPanelHeight)
      Creates a new instance.

      Parameters:
      publishDialog - the publish dialog to which this broken links panel belongs.
      scrollPanelHeight - the available scroll panel height
  • Method Details

    • addEntry

      public CmsListItemWidget addEntry(org.opencms.ade.publish.shared.CmsPublishResource res)
      Adds a resource bean to be displayed.

      Parameters:
      res - a resource bean
      Returns:
      the list item widget of the created entry
    • getButtons

      Returns the buttons which should be shown in the publish dialog's button panel.

      Returns:
      a list of buttons
    • setEntries

      public void setEntries(Collection<org.opencms.ade.publish.shared.CmsPublishResource> resourceBeans, List<org.opencms.ade.publish.shared.CmsWorkflowAction> actions)
      Sets the resources to be displayed.

      Parameters:
      resourceBeans - the resource beans to be displayed
      actions - the available actions
    • updateTitle

      public void updateTitle()
      Updates the dialog title.

    • doClickBack

      @UiHandler("m_backButton") protected void doClickBack(com.google.gwt.event.dom.client.ClickEvent e)
      The event handler for the back button.

      Parameters:
      e - the click event
    • doClickCancel

      @UiHandler("m_cancelButton") protected void doClickCancel(com.google.gwt.event.dom.client.ClickEvent e)
      The event handler for the cancel button.

      Parameters:
      e - the click event
    • executeAction

      protected void executeAction(org.opencms.ade.publish.shared.CmsWorkflowAction action)
      Executes the given action.

      Parameters:
      action - the action to execute on the selected resources