Class CmsEditableGroupButtonsState

java.lang.Object
com.vaadin.shared.communication.SharedState
com.vaadin.shared.AbstractComponentState
org.opencms.ui.shared.CmsEditableGroupButtonsState
All Implemented Interfaces:
Serializable

public class CmsEditableGroupButtonsState extends com.vaadin.shared.AbstractComponentState
State class for the CmsEditableGroupButtons component.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return is add option hidden?
    boolean
    Returns true if the edit button should be enabled.
    boolean
    Returns the isFirst.
    boolean
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

  • Method Details

    • 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