org.rimudb.editor.swing
Class ASwingUtilities

java.lang.Object
  extended by org.rimudb.editor.swing.ASwingUtilities

public class ASwingUtilities
extends java.lang.Object

This class contains static utility methods which are not provided by javax.swing.SwingUtilities.


Constructor Summary
ASwingUtilities()
           
 
Method Summary
static java.awt.Component[] getContainerChildren(java.awt.Container container)
          Performs a recursive search of the container's component tree to find all the child components.
static void setComponentsEnabled(java.awt.Container container, boolean enable)
          Recursively searches a container's child components and either enables or disables them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASwingUtilities

public ASwingUtilities()
Method Detail

getContainerChildren

public static java.awt.Component[] getContainerChildren(java.awt.Container container)
Performs a recursive search of the container's component tree to find all the child components.


setComponentsEnabled

public static void setComponentsEnabled(java.awt.Container container,
                                        boolean enable)
Recursively searches a container's child components and either enables or disables them. The boolean parameter enable determines whether the components are enabled or disabled. If any of the components found are JTextComponents then the setEditable() method will be called for those instances.



Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.