01: package org.uispec4j.finder;
02:
03: import java.awt.*;
04:
05: /**
06: * Interface used for implementing component searching policies.
07: *
08: * @see org.uispec4j.Panel
09: */
10: public interface ComponentMatcher {
11: boolean matches(Component component);
12:
13: public static final ComponentMatcher ALL = new ComponentMatcher() {
14: public boolean matches(Component component) {
15: return true;
16: }
17: };
18: }
|