All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.ajug.jsl.jester.util.GeneralLibrary

java.lang.Object
   |
   +----org.ajug.jsl.jester.util.GeneralLibrary

public class GeneralLibrary
extends Object
This class contains all static methods for general reuse.


Constructor Index

 o GeneralLibrary()

Method Index

 o findComponent(Component, String)
Finds and returns the first component with the supplied name in the supplied component, which is probably a container.

Constructors

 o GeneralLibrary
 public GeneralLibrary()

Methods

 o findComponent
 public static Component findComponent(Component component,
                                       String name)
Finds and returns the first component with the supplied name in the supplied component, which is probably a container. Returns null if none found. Recursive.

This is useful for creating a group of components (such as a window) and naming each component as your go. After that clients can extract the named components they need with little fuss. Obviously it's important not to use duplicate names.


All Packages  Class Hierarchy  This Package  Previous  Next  Index