com.darwinsys.swingui
Class ExclusiveEnableGroup

java.lang.Object
  extended by com.darwinsys.swingui.ExclusiveEnableGroup
All Implemented Interfaces:
java.io.Serializable

public class ExclusiveEnableGroup
extends java.lang.Object
implements java.io.Serializable

Manage the "enabled" property on a group of Components, such that only one will be enabled. May malfunction if you directly invoke setEnabled() on any component. NOT THREADSAFE; use single-threadedly.

See Also:
Serialized Form

Constructor Summary
ExclusiveEnableGroup()
           
 
Method Summary
 void add(java.awt.Component c)
          Add the Component to the list of managed Components
 void enable(java.awt.Component targetComp)
          Enable the given Component; this is the only way you should control enabled properties on the components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExclusiveEnableGroup

public ExclusiveEnableGroup()
Method Detail

add

public void add(java.awt.Component c)
Add the Component to the list of managed Components


enable

public void enable(java.awt.Component targetComp)
Enable the given Component; this is the only way you should control enabled properties on the components.



Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.