org.xnap.commons.gui.util
Class EnableListener

java.lang.Object
  extended by org.xnap.commons.gui.util.EnableListener
All Implemented Interfaces:
ItemListener, EventListener

public class EnableListener
extends Object
implements ItemListener

Enables or disables a set of components.

Author:
Steffen Pingel

Constructor Summary
EnableListener(Component... components)
          Disables components.
 
Method Summary
 void itemStateChanged(ItemEvent event)
           
 void setComponentsEnabled(boolean state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnableListener

public EnableListener(Component... components)
Disables components.

Parameters:
components -
Method Detail

setComponentsEnabled

public void setComponentsEnabled(boolean state)

itemStateChanged

public void itemStateChanged(ItemEvent event)
Specified by:
itemStateChanged in interface ItemListener


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.