Package org.opencms.ui.shared
Class CmsEditableGroupButtonsState
java.lang.Object
com.vaadin.shared.communication.SharedState
com.vaadin.shared.AbstractComponentState
org.opencms.ui.shared.CmsEditableGroupButtonsState
- All Implemented Interfaces:
Serializable
State class for the CmsEditableGroupButtons component.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
True if hide option should be disabled.protected boolean
True if this is the button bar of the first row.protected boolean
True if this is the button bar of the last row.Fields inherited from class com.vaadin.shared.AbstractComponentState
caption, captionAsHtml, description, descriptionContentMode, errorLevel, errorMessage, height, id, primaryStyleName, styles, width
Fields inherited from class com.vaadin.shared.communication.SharedState
enabled, registeredEventListeners, resources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return is add option hidden?boolean
Returns true if the edit button should be enabled.boolean
isFirst()
Returns the isFirst.boolean
isLast()
Returns the isLast.void
setAddOptionHidden
(boolean hidden) Set m_hideAddOption.void
setEditEnabled
(boolean editEnabled) Enables/disables edit button.void
setFirst
(boolean isFirst) Sets the 'first' status (i.e.void
setLast
(boolean isLast) Sets the 'last' status (i.e.
-
Field Details
-
m_hideAddOption
True if hide option should be disabled. -
m_isFirst
True if this is the button bar of the first row. -
m_isLast
True if this is the button bar of the last row.
-
-
Constructor Details
-
CmsEditableGroupButtonsState
public CmsEditableGroupButtonsState()Default constructor.
-
-
Method Details
-
isAddOptionHidden
Return is add option hidden?- Returns:
- m_hideAddOtion
-
isEditEnabled
Returns true if the edit button should be enabled.- Returns:
- true if the edit button should be enabled
-
isFirst
Returns the isFirst.- Returns:
- the isFirst
-
isLast
Returns the isLast.- Returns:
- the isLast
-
setAddOptionHidden
Set m_hideAddOption.- Parameters:
hidden
- true if add should be hidden
-
setEditEnabled
Enables/disables edit button.- Parameters:
editEnabled
- true if edit button should be enabled
-
setFirst
Sets the 'first' status (i.e. if this belongs to the first row.- Parameters:
isFirst
- true if the button bar belongs to the first row
-
setLast
Sets the 'last' status (i.e. if this belongs to the last row.- Parameters:
isLast
- true if the button bar belongs to the last row
-