|
|||||||||
| 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 java.lang.String |
getDescription()
Returns a printable description of the criteria. |
abstract boolean |
checkElement(javax.swing.text.StyledDocument doc,
javax.swing.text.Element element,
int offset)
Should return true if position fulfils criteria. |
boolean |
checkPosition(javax.swing.text.Document document,
int offset)
Checkes if position fits 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(javax.swing.text.StyledDocument doc,
javax.swing.text.Element element,
int offset)
doc - a styled document to be searched.element - an element to be checked.offset - checked position.
public abstract java.lang.String getDescription()
JTextComponentOperator.TextChooser
getDescription in interface JTextComponentOperator.TextChooser
public final boolean checkPosition(javax.swing.text.Document document,
int offset)
JTextComponentOperator.TextChooser
checkPosition in interface JTextComponentOperator.TextChooserdocument - 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 | ||||||||