Interface JideSwingUtilities.GetHandler

Enclosing class:
JideSwingUtilities

public static interface JideSwingUtilities.GetHandler
A simple handler used by getRecursively.
  if ( condition() ) {
      return action();
  }
 
. Here is an example to get the first child of the specified type.
 public static Component getFirstChildOf(final Class clazz, Component c) {
     return getRecursively(c, new GetHandler() {
         public boolean condition(Component c) {
             return clazz.isAssignableFrom(c.getClass());
         }
         public Component action(Component c) {
             return c;
         }
     });
 }