ach
Class ButtonGroup

java.lang.Object
  extended byach.ButtonGroup

public class ButtonGroup
extends java.lang.Object

Title: ButtonGroup

Description: Multiple-exclusion scope for a set of buttons

Copyright: Copyright (c) 2005

Organisation: Art&Computer Hackbarth


Constructor Summary
ButtonGroup()
          Constructor
 
Method Summary
 void add(IconButton ib)
          Add an IconButton to ButtonGroup
 IconButton getSelected()
          Get the currently selected IconButton
 void remove(IconButton ib)
          Remove an IconButton from ButtonGroup
 void setSelected(IconButton ib, boolean b)
          Set one of the buttons selected, all other buttons will be deselcted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonGroup

public ButtonGroup()
Constructor

Method Detail

add

public void add(IconButton ib)
Add an IconButton to ButtonGroup

Parameters:
ib - is an IconButton

remove

public void remove(IconButton ib)
Remove an IconButton from ButtonGroup

Parameters:
ib - is an IconButton

setSelected

public void setSelected(IconButton ib,
                        boolean b)
Set one of the buttons selected, all other buttons will be deselcted

Parameters:
ib - is an IconButton
b - boolean flag specifying the selection state

getSelected

public IconButton getSelected()
Get the currently selected IconButton

Returns:
IconButton that is selected