be.ugent.caagt.swirl
Class SwirlUtilities

java.lang.Object
  extended by be.ugent.caagt.swirl.SwirlUtilities

public final class SwirlUtilities
extends java.lang.Object

General Swing or SWIRL related methods.


Constructor Summary
SwirlUtilities()
           
 
Method Summary
static java.awt.Component getChildWithName(java.awt.Container container, java.lang.String name)
          Returns the first child component with the given name, or null if no such child can be found.
static java.awt.Component getDescendantWithName(java.awt.Container container, java.lang.String name)
          Returns the first descendant with the given name, or null if no such descendant can be found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwirlUtilities

public SwirlUtilities()
Method Detail

getChildWithName

public static java.awt.Component getChildWithName(java.awt.Container container,
                                                  java.lang.String name)
Returns the first child component with the given name, or null if no such child can be found. Does not consider all descendants but only direct children.

If the container is a menu, then the children of the associated popup menu are searched.


getDescendantWithName

public static java.awt.Component getDescendantWithName(java.awt.Container container,
                                                       java.lang.String name)
Returns the first descendant with the given name, or null if no such descendant can be found. The search is performed depth first and parents are processed before their children.

If during the search a menu is encounterd, then the descendants of the associated popup menu are searched.