org.apache.pivot.wtk
Class ButtonGroup

java.lang.Object
  extended by org.apache.pivot.wtk.ButtonGroup
All Implemented Interfaces:
Iterable<Button>, org.apache.pivot.collections.Group<Button>
Direct Known Subclasses:
RadioButtonGroup

public class ButtonGroup
extends Object
implements org.apache.pivot.collections.Group<Button>, Iterable<Button>

Class representing a toggle button group.


Constructor Summary
ButtonGroup()
           
 
Method Summary
 boolean add(Button button)
           
 boolean contains(Button button)
           
 org.apache.pivot.util.ListenerList<ButtonGroupListener> getButtonGroupListeners()
           
 Button getSelection()
           
 Iterator<Button> iterator()
           
 boolean remove(Button button)
           
 void setSelection(Button selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonGroup

public ButtonGroup()
Method Detail

add

public boolean add(Button button)
Specified by:
add in interface org.apache.pivot.collections.Group<Button>

remove

public boolean remove(Button button)
Specified by:
remove in interface org.apache.pivot.collections.Group<Button>

contains

public boolean contains(Button button)
Specified by:
contains in interface org.apache.pivot.collections.Group<Button>

getSelection

public Button getSelection()

setSelection

public void setSelection(Button selection)

iterator

public Iterator<Button> iterator()
Specified by:
iterator in interface Iterable<Button>

getButtonGroupListeners

public org.apache.pivot.util.ListenerList<ButtonGroupListener> getButtonGroupListeners()