Package org.opencms.ade.publish.client
Class CmsPublishGroupPanel
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.CmsPublishGroupPanel
- 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
A panel representing a single publish group.
- Since:
- 8.0.0
-
Nested Class Summary
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
Modifier and TypeFieldDescriptionprotected static final I_CmsPublishCss
The CSS bundle used for this widget.static int[]
Button slot mapping for publish list items.protected int
The group index for this panel's corresponding group.protected CmsPublishDataModel
The data model for the publish dialog.protected I_CmsPublishSelectionChangeHandler
The handler which is called when the publish item selection changes.static final int
The slot for the preview button.static final int
The slot for the context menu button.static final int
The slot for the 'remove' checkbox.static final int
The slot for the warning symbol.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorDescriptionCmsPublishGroupPanel
(org.opencms.ade.publish.shared.CmsPublishGroup publishGroup, String title, int groupIndex, I_CmsPublishSelectionChangeHandler selectionChangeHandler, CmsPublishDataModel model, Map<org.opencms.util.CmsUUID, org.opencms.ade.publish.client.CmsPublishItemSelectionController> controllersById, CmsContextMenuHandler menuHandler, I_CmsContentEditorHandler editorHandler, boolean showProblemsOnly) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds the list item for the next publish resource and returns true on success, while also incrementing the internal item index.static CmsListItemWidget
createListItemWidget
(org.opencms.ade.publish.shared.CmsPublishResource resourceBean, int[] slotMapping) Creates a basic list item widget for a given publish resource bean.static void
fillButtonSlot
(CmsListItemWidget listItemWidget, int index, com.google.gwt.user.client.ui.Widget widget, int[] slotMapping) Fills a slot for a button in a publish list item widget.boolean
Returns true if there are more potential items to add.protected boolean
Returns true if the corresponding group has no resources with problems.protected boolean
Returns true if the corresponding group has only resources with problems.void
Hides the tri-state select box for the group.void
Updates the check box state for this group.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 Details
-
DEFAULT_SLOT_MAPPING
Button slot mapping for publish list items. -
SLOT_EDIT
The slot for the preview button.- See Also:
-
SLOT_MENU
The slot for the context menu button.- See Also:
-
SLOT_REMOVE
The slot for the 'remove' checkbox.- See Also:
-
SLOT_WARNING
The slot for the warning symbol.- See Also:
-
CSS
The CSS bundle used for this widget. -
m_groupIndex
The group index for this panel's corresponding group. -
m_model
The data model for the publish dialog. -
m_selectionChangeHandler
The handler which is called when the publish item selection changes.
-
-
Constructor Details
-
Method Details
-
fillButtonSlot
public static void fillButtonSlot(CmsListItemWidget listItemWidget, int index, com.google.gwt.user.client.ui.Widget widget, int[] slotMapping) Fills a slot for a button in a publish list item widget.- Parameters:
listItemWidget
- the list item widgetindex
- the slot indexwidget
- the widget which should be displayed in the slotslotMapping
- array mapping logical slot ids to button indexes
-
addNextItem
Adds the list item for the next publish resource and returns true on success, while also incrementing the internal item index.- Returns:
- true if an item was added
-
hasMoreItems
Returns true if there are more potential items to add.- Returns:
- true if there are possibly more items
-
hideGroupSelectCheckBox
Hides the tri-state select box for the group. -
updateCheckboxState
Updates the check box state for this group.- Parameters:
value
- the state to use for updating the check box
-
hasNoProblemResources
Returns true if the corresponding group has no resources with problems.- Returns:
- true if the group for this panel has no resources with problems
-
hasOnlyProblemResources
Returns true if the corresponding group has only resources with problems.- Returns:
- true if the group for this panel has only resources with problems.