|
||||||||||
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.TextStyleNavigation
public class TextStyleNavigation
A derived Navigation
class used to navigate the text content,
which can search the document and find matched style properties and return
TextSelection
instance(s).
Constructor Summary | |
---|---|
TextStyleNavigation(Map<OdfStyleProperty,String> props,
TextDocument doc)
Construct TextStyleNavigation with style properties condition and
navigation scope. |
Method Summary | |
---|---|
boolean |
hasNext()
Check if has next TextSelection with satisfied style. |
boolean |
match(Node element)
Check if the element has specified style properties, which are stated when the TextStyleNavigation 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 TextStyleNavigation(Map<OdfStyleProperty,String> props, TextDocument doc)
TextStyleNavigation
with style properties condition and
navigation scope.
props
- the matched style properties conditionsdoc
- the navigation search scopeMethod Detail |
---|
public boolean hasNext()
TextSelection
with satisfied style.
hasNext
in class Navigation
Navigation.hasNext()
public Selection nextSelection()
TextSelection
.
nextSelection
in class Navigation
Selection
resultNavigation.nextSelection()
public boolean match(Node element)
TextStyleNavigation
created.
match
in class Navigation
element
- navigate this element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |