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
The panel for showing links which would be broken by publishing.
- Since:
- 8.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceThe 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
FieldsModifier and TypeFieldDescriptionprotected CmsPushButtonThe button which makes the publish dialog go back to the "resource selection" state.protected CmsPushButtonThe button which cancels the publish dialog.protected com.google.gwt.user.client.ui.LabelThe text shown above the resource panel.protected CmsList<CmsTreeItem> The list containing the resource widgets representing broken links.protected CmsScrollPanelThe 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
ConstructorsConstructorDescriptionCmsBrokenLinksPanel(CmsPublishDialog publishDialog, int scrollPanelHeight) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionaddEntry(org.opencms.ade.publish.shared.CmsPublishResource res) Adds a resource bean to be displayed.protected voiddoClickBack(com.google.gwt.event.dom.client.ClickEvent e) The event handler for the back button.protected voiddoClickCancel(com.google.gwt.event.dom.client.ClickEvent e) The event handler for the cancel button.protected voidexecuteAction(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.voidsetEntries(Collection<org.opencms.ade.publish.shared.CmsPublishResource> resourceBeans, List<org.opencms.ade.publish.shared.CmsWorkflowAction> actions) Sets the resources to be displayed.voidUpdates 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, setWidgetMethods 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, unsinkEventsMethods 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 Details
-
SLOT_MAPPING
Button slot mapping for showing broken links. -
m_backButton
The button which makes the publish dialog go back to the "resource selection" state. -
m_cancelButton
The button which cancels the publish dialog. -
m_label
The text shown above the resource panel. -
m_list
The list containing the resource widgets representing broken links. -
m_scrollPanel
The scroll panel containing the group panel.
-
-
Constructor Details
-
CmsBrokenLinksPanel
Creates a new instance.- Parameters:
publishDialog- the publish dialog to which this broken links panel belongs.scrollPanelHeight- the available scroll panel height
-
-
Method Details
-
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 displayedactions- the available actions
-
updateTitle
Updates the dialog title. -
doClickBack
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