Package org.opencms.ui.util
Class CmsLogicalCheckboxGroup
- java.lang.Object
-
- org.opencms.ui.util.CmsLogicalCheckboxGroup
-
public class CmsLogicalCheckboxGroup extends java.lang.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCmsLogicalCheckboxGroup.I_ChangeListenerListener interface.
-
Constructor Summary
Constructors Constructor Description CmsLogicalCheckboxGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(com.vaadin.v7.ui.CheckBox checkBox)Adds a check box to the group.com.vaadin.v7.ui.CheckBoxgetSelected()Gets the currently selected check box.voidremove(com.vaadin.v7.ui.CheckBox checkBox)Removes a check box from the group.protected voidsetActiveCheckBox(com.vaadin.v7.ui.CheckBox box)Sets the active check box.voidsetChangeListener(CmsLogicalCheckboxGroup.I_ChangeListener listener)Sets the change listener.
-
-
-
Constructor Detail
-
CmsLogicalCheckboxGroup
public CmsLogicalCheckboxGroup()
-
-
Method Detail
-
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
public void setChangeListener(CmsLogicalCheckboxGroup.I_ChangeListener listener)
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
-
-