org.formaria.swing.util
Class ExclusiveGroup

java.lang.Object
  extended by org.formaria.swing.util.ExclusiveGroup

public class ExclusiveGroup
extends java.lang.Object

A utility class for handling mutually exclusive Check components. Normally checkbox items are not mutually exclusive but sometimes they are used in that way as their visual impact and intent may be clearer than radio buttons.

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.2 $


Constructor Summary
ExclusiveGroup()
          Creates a new group.
 
Method Summary
 void add(Checkbox xc)
          Add another check to the group
 void check(Checkbox xc)
          Sets the checked component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExclusiveGroup

public ExclusiveGroup()
Creates a new group.

Method Detail

add

public void add(Checkbox xc)
Add another check to the group

Parameters:
xc -

check

public void check(Checkbox xc)
Sets the checked component. All other components in the group are unchecked.

Parameters:
xc - The checked component. It is assumed that this control is already checked and its state is not modified.