| java.lang.Object org.netbeans.jemmy.util.AbstractTextStyleChooser
All known Subclasses: org.netbeans.jemmy.util.TextStyleChooser,
AbstractTextStyleChooser | abstract public class AbstractTextStyleChooser implements TextChooser(Code) | | Makes easier to implement searching criteria for javax.swing.text.StyledDocument
JTextComponentOperator.getPositionByText(String, JTextComponentOperator.TextChooser, int) .
author: Alexandre Iline (alexandre.iline@sun.com) |
Method Summary | |
abstract public boolean | checkElement(StyledDocument doc, Element element, int offset) Should return true if position fulfils criteria.
Parameters: doc - a styled document to be searched. Parameters: element - an element to be checked. Parameters: offset - checked position. | final public boolean | checkPosition(Document document, int offset) | abstract public String | getDescription() |
AbstractTextStyleChooser | public AbstractTextStyleChooser()(Code) | | Constructor.
|
checkElement | abstract public boolean checkElement(StyledDocument doc, Element element, int offset)(Code) | | Should return true if position fulfils criteria.
Parameters: doc - a styled document to be searched. Parameters: element - an element to be checked. Parameters: offset - checked position. true if position fits the criteria. |
checkPosition | final public boolean checkPosition(Document document, int offset)(Code) | | |
|
|