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
FieldsModifier and TypeFieldDescriptionprotected CmsPushButtonThe 'add' button.protected CmsPushButtonThe 'delete' button.protected CmsPushButtonThe 'down' button.protected CmsPushButtonOpenCms 'bullseye' dummy button, does nothing.protected CmsPushButtonThe 'edit' button.protected CmsPushButtonThe 'up' button.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEditVisible(boolean editEnabled) Shows / hides the edit button.voidsetFirst(boolean first) Sets the 'first' status of the button bar.voidsetHideAdd(boolean hideAdd) Hides the add button.voidsetLast(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, 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
-
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
-