org.odftoolkit.odfdom.incubator.search
Class TextStyleNavigation

java.lang.Object
  extended by org.odftoolkit.odfdom.incubator.search.Navigation
      extended by org.odftoolkit.odfdom.incubator.search.TextStyleNavigation

Deprecated. As of release 0.8.8, replaced by org.odftoolkit.simple.common.navigation.TextStyleNavigation in Simple API.

public class TextStyleNavigation
extends Navigation

A derived Navigation class used for navigate the mText content it is used to search the document and find the matched style properties and would return TextSelection instance


Constructor Summary
TextStyleNavigation(Map<OdfStyleProperty,String> props, OdfTextDocument doc)
          Deprecated. Construct TextStyleNavigation with style properties condition and navigation scope
 
Method Summary
 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
 
Methods inherited from class org.odftoolkit.odfdom.incubator.search.Navigation
getNextMatchElement, getNextMatchElementInTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextStyleNavigation

public TextStyleNavigation(Map<OdfStyleProperty,String> props,
                           OdfTextDocument doc)
Deprecated. 
Construct TextStyleNavigation with style properties condition and navigation scope

Parameters:
props - the matched style properties conditions
doc - the navigation search scope
Method Detail

getCurrentItem

public Selection getCurrentItem()
Deprecated. 
Description copied from class: Navigation
get the current Selection result

Specified by:
getCurrentItem in class Navigation
Returns:
the current Selection result

hasNext

public boolean hasNext()
Deprecated. 
Description copied from class: Navigation
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)

Specified by:
hasNext in class Navigation
Returns:
true if document still has more matched Selection, and vice versa

match

public boolean match(Node element)
Deprecated. 
check if the element has the specified style properties

Specified by:
match in class Navigation
Parameters:
element - navigate this element
Returns:
true if this element has the specified style properties false if not match


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.