|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.ButtonGroup
public class ButtonGroup
Class representing a toggle button group.
Constructor Summary | |
---|---|
ButtonGroup()
|
Method Summary | |
---|---|
boolean |
add(Button button)
Adds an element to the group. |
boolean |
contains(Button button)
Tests the existence of an element in the group. |
ListenerList<ButtonGroupListener> |
getButtonGroupListeners()
|
Button |
getSelection()
|
Iterator<Button> |
iterator()
|
boolean |
remove(Button button)
Removes an element from the group. |
void |
setSelection(Button selection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonGroup()
Method Detail |
---|
public boolean add(Button button)
Group
add
in interface Group<Button>
button
- The element to add to the group.
public boolean remove(Button button)
Group
remove
in interface Group<Button>
button
- The element to remove from the set.
public boolean contains(Button button)
Group
contains
in interface Group<Button>
button
- The element whose presence in the group is to be tested.
public Button getSelection()
public void setSelection(Button selection)
public Iterator<Button> iterator()
iterator
in interface Iterable<Button>
public ListenerList<ButtonGroupListener> getButtonGroupListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |