|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.common.navigation.Navigation
org.odftoolkit.simple.common.navigation.TextNavigation
public class TextNavigation
A derived Navigation class used to navigate the text content,
which can search the document and find the matched text and return
TextSelection instance.
| Constructor Summary | |
|---|---|
TextNavigation(String pattern,
Document doc)
Construct TextNavigation with matched condition and
navigation scope. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Check if has next TextSelection with satisfied content
pattern. |
boolean |
match(Node element)
Check if the text content of element match the specified matched condition, which is stated when the TextNavigation created. |
Selection |
nextSelection()
Get next TextSelection. |
| Methods inherited from class org.odftoolkit.simple.common.navigation.Navigation |
|---|
getNextMatchElement, getNextMatchElementInTree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextNavigation(String pattern,
Document doc)
TextNavigation with matched condition and
navigation scope.
pattern - the matched pattern Stringdoc - the navigation scope| Method Detail |
|---|
public boolean hasNext()
TextSelection with satisfied content
pattern.
hasNext in class NavigationNavigation.hasNext()public Selection nextSelection()
TextSelection.
nextSelection in class NavigationSelection resultNavigation.nextSelection()public boolean match(Node element)
TextNavigation created.
match in class Navigationelement - navigate this element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||