cage.utility
Class ComponentLogicalGroup

java.lang.Object
  extended by cage.utility.ComponentLogicalGroup

public class ComponentLogicalGroup
extends java.lang.Object

Class that groups a set of Components in a logical group. Actions such as setVisible and setEnabled


Constructor Summary
ComponentLogicalGroup()
          Constructs an empty ComponentLogicalGroup object.
 
Method Summary
 boolean addComponent(java.awt.Component c)
          Adds the specified component to this group.
 boolean removeComponent(java.awt.Component c)
          Removes the specified component from this group.
 void setEnabled(boolean enabled)
          Enables or disables the components in this group depending on the value of parameter enabled.
 void setVisible(boolean visible)
          Shows or hides the components in this group depending on the value of parameter visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentLogicalGroup

public ComponentLogicalGroup()
Constructs an empty ComponentLogicalGroup object.

Method Detail

addComponent

public boolean addComponent(java.awt.Component c)
Adds the specified component to this group.

Parameters:
c - the component to be added to this group
Returns:
true if c was not null

removeComponent

public boolean removeComponent(java.awt.Component c)
Removes the specified component from this group.

Parameters:
c - the component to be removed from this group
Returns:
true if this group contained the specified component.

setVisible

public void setVisible(boolean visible)
Shows or hides the components in this group depending on the value of parameter visible.

Parameters:
visible - if true, shows the components in this group; otherwise, hides them

setEnabled

public void setEnabled(boolean enabled)
Enables or disables the components in this group depending on the value of parameter enabled.

Parameters:
enabled - if true, enables the components in this group; otherwise, disables them