|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.util.AbstractTextStyleChooser
public abstract class AbstractTextStyleChooser
Makes easier to implement searching criteria for javax.swing.text.StyledDocument
JTextComponentOperator.getPositionByText(String, JTextComponentOperator.TextChooser, int)
.
Constructor Summary | |
---|---|
AbstractTextStyleChooser()
Constructor. |
Method Summary | |
---|---|
abstract boolean |
checkElement(StyledDocument doc,
Element element,
int offset)
Should return true if position fulfils criteria. |
boolean |
checkPosition(Document document,
int offset)
Checkes if position fits the criteria. |
abstract String |
getDescription()
Returns a printable description of the criteria. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTextStyleChooser()
Method Detail |
---|
public abstract boolean checkElement(StyledDocument doc, Element element, int offset)
doc
- a styled document to be searched.element
- an element to be checked.offset
- checked position.
public abstract String getDescription()
JTextComponentOperator.TextChooser
getDescription
in interface JTextComponentOperator.TextChooser
public final boolean checkPosition(Document document, int offset)
JTextComponentOperator.TextChooser
checkPosition
in interface JTextComponentOperator.TextChooser
document
- a document to be checked.offset
- a checked position
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |