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:
java.io.Serializable
public class CmsEditableGroupButtonsState extends com.vaadin.shared.AbstractComponentState
State class for the CmsEditableGroupButtons component.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_hideAddOption
True if hide option should be disabled.protected boolean
m_isFirst
True if this is the button bar of the first row.protected boolean
m_isLast
True if this is the button bar of the last row.
-
Constructor Summary
Constructors Constructor Description CmsEditableGroupButtonsState()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAddOptionHidden()
Return is add option hidden?boolean
isEditEnabled()
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 Detail
-
m_hideAddOption
protected boolean m_hideAddOption
True if hide option should be disabled.
-
m_isFirst
protected boolean m_isFirst
True if this is the button bar of the first row.
-
m_isLast
protected boolean m_isLast
True if this is the button bar of the last row.
-
-
Constructor Detail
-
CmsEditableGroupButtonsState
public CmsEditableGroupButtonsState()
Default constructor.
-
-
Method Detail
-
isAddOptionHidden
public boolean isAddOptionHidden()
Return is add option hidden?- Returns:
- m_hideAddOtion
-
isEditEnabled
public boolean isEditEnabled()
Returns true if the edit button should be enabled.- Returns:
- true if the edit button should be enabled
-
isFirst
public boolean isFirst()
Returns the isFirst.- Returns:
- the isFirst
-
isLast
public boolean isLast()
Returns the isLast.- Returns:
- the isLast
-
setAddOptionHidden
public void setAddOptionHidden(boolean hidden)
Set m_hideAddOption.- Parameters:
hidden
- true if add should be hidden
-
setEditEnabled
public void setEditEnabled(boolean editEnabled)
Enables/disables edit button.- Parameters:
editEnabled
- true if edit button should be enabled
-
setFirst
public void setFirst(boolean isFirst)
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
public void setLast(boolean isLast)
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
-
-