Class CmsClientEditableGroupButtons
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.ui.client.editablegroup.CmsClientEditableGroupButtons
- 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
Client side button bar widget for multivalue widget groups.
-
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 CmsPushButton
The 'add' button.protected CmsPushButton
The 'delete' button.protected CmsPushButton
The 'down' button.protected CmsPushButton
OpenCms 'bullseye' dummy button, does nothing.protected CmsPushButton
The 'edit' button.protected CmsPushButton
The 'up' button.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEditVisible
(boolean editEnabled) Shows / hides the edit button.void
setFirst
(boolean first) Sets the 'first' status of the button bar.void
setHideAdd
(boolean hideAdd) Hides the add button.void
setLast
(boolean last) Sets the 'last' status of the button bar.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
-
m_addButton
The 'add' button. -
m_deleteButton
The 'delete' button. -
m_downButton
The 'down' button. -
m_dummyButton
OpenCms 'bullseye' dummy button, does nothing. -
m_editButton
The 'edit' button. -
m_upButton
The 'up' button.
-
-
Constructor Details
-
CmsClientEditableGroupButtons
Creates a new instance.- Parameters:
connector
- the connector for which the widget should be created
-
-
Method Details
-
setEditVisible
Shows / hides the edit button.- Parameters:
editEnabled
- true if edit button should be shown
-
setFirst
Sets the 'first' status of the button bar.- Parameters:
first
- true if this is the button bar of the first row of a multivalue field
-
setHideAdd
Hides the add button.- Parameters:
hideAdd
- true-> hide the add button
-
setLast
Sets the 'last' status of the button bar.- Parameters:
last
- true if this is the button bar of the last row of a multivalue field
-