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 booleanadd(Button button)Adds an element to the group.voidclearSelection()Clear the currently selected item in this group, making all items unselected.booleancontains(Button button)Tests the existence of an element in the group.ListenerList<ButtonGroupListener>getButtonGroupListeners()ButtongetSelection()java.util.Iterator<Button>iterator()booleanremove(Button button)Removes an element from the group.voidsetSelection(Button selection)
-
-
-
Method Detail
-
add
public boolean add(Button button)
Description copied from interface:GroupAdds an element to the group.
-
remove
public boolean remove(Button button)
Description copied from interface:GroupRemoves an element from the group.
-
contains
public boolean contains(Button button)
Description copied from interface:GroupTests 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:
iteratorin interfacejava.lang.Iterable<Button>
-
getButtonGroupListeners
public ListenerList<ButtonGroupListener> getButtonGroupListeners()
-
-