Package org.apache.pivot.wtk
Class ButtonGroup
- java.lang.Object
-
- org.apache.pivot.wtk.ButtonGroup
-
-
Constructor Summary
Constructors Constructor Description ButtonGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Button button)
Adds an element to the group.void
clearSelection()
Clear the currently selected item in this group, making all items unselected.boolean
contains(Button button)
Tests the existence of an element in the group.ListenerList<ButtonGroupListener>
getButtonGroupListeners()
Button
getSelection()
java.util.Iterator<Button>
iterator()
boolean
remove(Button button)
Removes an element from the group.void
setSelection(Button selection)
-
-
-
Method Detail
-
add
public boolean add(Button button)
Description copied from interface:Group
Adds an element to the group.
-
remove
public boolean remove(Button button)
Description copied from interface:Group
Removes an element from the group.
-
contains
public boolean contains(Button button)
Description copied from interface:Group
Tests the existence of an element in the group.
-
getSelection
public Button getSelection()
-
setSelection
public void setSelection(Button selection)
-
clearSelection
public void clearSelection()
Clear the currently selected item in this group, making all items unselected. This is a shortcut forsetSelection(null)
.
-
iterator
public java.util.Iterator<Button> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Button>
-
getButtonGroupListeners
public ListenerList<ButtonGroupListener> getButtonGroupListeners()
-
-