Class CmsLogicalCheckboxGroup

java.lang.Object
org.opencms.ui.util.CmsLogicalCheckboxGroup

public class CmsLogicalCheckboxGroup extends Object
Ensures that among a set of check boxes, at most one of them is checked, without imposing constraints on the location of the checkboxes in the UI.
  • Constructor Details

  • Method Details

    • add

      public void add(com.vaadin.v7.ui.CheckBox checkBox)
      Adds a check box to the group.

      Parameters:
      checkBox - the check box to add
    • getSelected

      public com.vaadin.v7.ui.CheckBox getSelected()
      Gets the currently selected check box.

      Returns:
      the check box
    • remove

      public void remove(com.vaadin.v7.ui.CheckBox checkBox)
      Removes a check box from the group.

      Parameters:
      checkBox - the check box
    • setChangeListener

      Sets the change listener.

      Parameters:
      listener - the change listener
    • setActiveCheckBox

      protected void setActiveCheckBox(com.vaadin.v7.ui.CheckBox box)
      Sets the active check box.

      Parameters:
      box - the active check box