public class GuiFinder
extends BasicFinder
Modifier and Type | Field and Description |
---|---|
private AppLog |
_log |
GuiAppManager |
_owner |
Constructor and Description |
---|
GuiFinder(GuiAppManager owner) |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
find(java.awt.Container root,
Matcher matcher) |
java.awt.Component |
find(GuiItemRef ref,
boolean required) |
java.awt.Component |
find(Matcher m)
Find a component.
|
java.awt.Component |
find(Matcher matcher,
GuiRelative relationship,
java.awt.Component relative)
Find a component with the built-in BasicFinder.
|
java.awt.Component |
find(java.lang.String descriptor,
GuiRelative relationship,
java.awt.Component relative)
Find a component using a
DescriptionMatcher . |
private AppLog _log
public GuiAppManager _owner
public GuiFinder(GuiAppManager owner)
public java.awt.Component find(java.awt.Container root, Matcher matcher)
public java.awt.Component find(GuiItemRef ref, boolean required) throws GuiItemNotFoundException
GuiItemNotFoundException
public java.awt.Component find(Matcher m)
m
- The matcher to use to find the component.public java.awt.Component find(Matcher matcher, GuiRelative relationship, java.awt.Component relative)
relative
- a reference component that has a specific relationship with the desired target component.matcher
- The matcher to use to find the component.public java.awt.Component find(java.lang.String descriptor, GuiRelative relationship, java.awt.Component relative) throws ComponentSearchException
DescriptionMatcher
. Returns null if no match is found instead of throwing a ComponentSearchException.descriptor
- The text to search for. Many different textual fields of components are compared with this. Encapsulate regular expressions inside slashes (e.g. /[a-z]+/ )ComponentSearchException