public class TextStyleNavigation extends Navigation
Navigation class used to navigate the text content, which can search the
document and find matched style properties and return TextSelection instance(s).mDocument| Constructor and Description |
|---|
TextStyleNavigation(Map<OdfStyleProperty,String> props,
Document doc)
Construct
TextStyleNavigation with style properties condition and navigation
scope. |
| Modifier and Type | Method and Description |
|---|---|
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. |
getNextMatchElement, getNextMatchElementInTreepublic TextStyleNavigation(Map<OdfStyleProperty,String> props, Document doc)
TextStyleNavigation with style properties condition and navigation
scope.props - the matched style properties conditionsdoc - the navigation search scopepublic boolean hasNext()
TextSelection with satisfied style.hasNext in class NavigationNavigation.hasNext()public Selection nextSelection()
TextSelection.nextSelection in class NavigationSelection resultNavigation.nextSelection()public boolean match(Node element)
TextStyleNavigation created.match in class Navigationelement - navigate this elementCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.