|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface JideSwingUtilities.GetHandler
A simple handler used by getRecursively.
.
Here is an example to get the first child of the specified type.
if ( condition() ) {
return action();
}
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;
}
});
}
Method Summary | |
---|---|
Component |
action(Component c)
The action you want to perform on this component. |
boolean |
condition(Component c)
If true, it will call action(java.awt.Component) on this component. |
Method Detail |
---|
boolean condition(Component c)
action(java.awt.Component)
on this component.
c
- the component
Component action(Component c)
condition(java.awt.Component)
returns true.
c
- the component
JideSwingUtilities.getRecursively(java.awt.Component,
com.jidesoft.swing.JideSwingUtilities.GetHandler)
.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |