Package org.opencms.ade.publish.client
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
CmsBrokenLinksPanel.I_CmsBrokenLinksPanelUiBinder
The UiBinder interface.
-
Field Summary
Fields Modifier and Type Field Description protected CmsPushButton
m_backButton
The button which makes the publish dialog go back to the "resource selection" state.protected CmsPushButton
m_cancelButton
The button which cancels the publish dialog.protected com.google.gwt.user.client.ui.Label
m_label
The text shown above the resource panel.protected CmsList<CmsTreeItem>
m_list
The list containing the resource widgets representing broken links.protected CmsScrollPanel
m_scrollPanel
The scroll panel containing the group panel.static int[]
SLOT_MAPPING
Button slot mapping for showing broken links.
-
Constructor Summary
Constructors Constructor Description CmsBrokenLinksPanel(CmsPublishDialog publishDialog, int scrollPanelHeight)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsListItemWidget
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.java.util.List<CmsPushButton>
getButtons()
Returns the buttons which should be shown in the publish dialog's button panel.void
setEntries(java.util.Collection<org.opencms.ade.publish.shared.CmsPublishResource> resourceBeans, java.util.List<org.opencms.ade.publish.shared.CmsWorkflowAction> actions)
Sets the resources to be displayed.void
updateTitle()
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
-
-
-
-
Field Detail
-
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 Detail
-
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 Detail
-
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
public java.util.List<CmsPushButton> getButtons()
Returns the buttons which should be shown in the publish dialog's button panel.- Returns:
- a list of buttons
-
setEntries
public void setEntries(java.util.Collection<org.opencms.ade.publish.shared.CmsPublishResource> resourceBeans, java.util.List<org.opencms.ade.publish.shared.CmsWorkflowAction> actions)
Sets the resources to be displayed.- Parameters:
resourceBeans
- the resource beans to be displayedactions
- 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
-
-