public static class JComboBoxOperator.JComboBoxByItemFinder extends java.lang.Object implements ComponentChooser
Constructor and Description |
---|
JComboBoxByItemFinder(java.lang.String lb,
int ii)
Constructs JComboBoxByItemFinder.
|
JComboBoxByItemFinder(java.lang.String lb,
int ii,
Operator.StringComparator comparator)
Constructs JComboBoxByItemFinder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkComponent(java.awt.Component comp)
Check if the component argument meets the search criteria.
|
java.lang.String |
getDescription()
Returns searched component description.
|
public JComboBoxByItemFinder(java.lang.String lb, int ii, Operator.StringComparator comparator)
lb
- a text patternii
- item index to check. If equal to -1, selected item is checked.comparator
- specifies string comparision algorithm.public JComboBoxByItemFinder(java.lang.String lb, int ii)
lb
- a text patternii
- item index to check. If equal to -1, selected item is checked.public boolean checkComponent(java.awt.Component comp)
ComponentChooser
checkComponent
in interface ComponentChooser
comp
- Component to check.true
when the component conforms to
the search criteria; false
otherwise.public java.lang.String getDescription()
ComponentChooser
getDescription
in interface ComponentChooser