org.odftoolkit.odfdom.incubator.search
org.odftoolkit.simple.common.navigation.TextStyleNavigation
in Simple API.public class TextStyleNavigation extends Navigation
Constructor and Description |
---|
TextStyleNavigation(Map<OdfStyleProperty,String> props,
OdfTextDocument doc)
Deprecated.
Construct TextStyleNavigation with style properties condition and navigation scope
|
Modifier and Type | Method and Description |
---|---|
Selection |
getCurrentItem()
Deprecated.
get the current Selection result
|
boolean |
hasNext()
Deprecated.
Return true if document still has more matched Selection
when traversing the document(In other words return true
if getNextMatchElement() would return an element instance
rather than return null)
|
boolean |
match(Node element)
Deprecated.
check if the element has the specified style properties
|
getNextMatchElement, getNextMatchElementInTree
public TextStyleNavigation(Map<OdfStyleProperty,String> props, OdfTextDocument doc)
props
- the matched style properties conditionsdoc
- the navigation search scopepublic Selection getCurrentItem()
Navigation
getCurrentItem
in class Navigation
public boolean hasNext()
Navigation
hasNext
in class Navigation
public boolean match(Node element)
match
in class Navigation
element
- navigate this elementCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.