Package org.opencms.ui.util
Class CmsLogicalCheckboxGroup
java.lang.Object
org.opencms.ui.util.CmsLogicalCheckboxGroup
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
Modifier and TypeClassDescriptionstatic interface
Listener interface. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(com.vaadin.v7.ui.CheckBox checkBox) Adds a check box to the group.com.vaadin.v7.ui.CheckBox
Gets the currently selected check box.void
remove
(com.vaadin.v7.ui.CheckBox checkBox) Removes a check box from the group.protected void
setActiveCheckBox
(com.vaadin.v7.ui.CheckBox box) Sets the active check box.void
Sets the change listener.
-
Constructor Details
-
CmsLogicalCheckboxGroup
public CmsLogicalCheckboxGroup()
-
-
Method Details
-
add
Adds a check box to the group.- Parameters:
checkBox
- the check box to add
-
getSelected
Gets the currently selected check box.- Returns:
- the check box
-
remove
Removes a check box from the group.- Parameters:
checkBox
- the check box
-
setChangeListener
Sets the change listener.- Parameters:
listener
- the change listener
-
setActiveCheckBox
Sets the active check box.- Parameters:
box
- the active check box
-