站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

FindSupport (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Class FindSupport

java.lang.Object
  extended by org.netbeans.editor.FindSupport

Deprecated. Without any replacement.

public class FindSupport
extends Object

Find management


Nested Class Summary
static class FindSupport.SearchPatternWrapper
          Deprecated.  
 
Field Summary
static String FIND_HISTORY_CHANGED_PROP
          Deprecated.  
static String FIND_HISTORY_PROP
          Deprecated.  
static String REVERT_MAP
          Deprecated.  
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Deprecated. Add weak listener to listen to change of any property.
 void addPropertyChangeListener(String findPropertyName, PropertyChangeListener l)
          Deprecated.  
 void addToHistory(FindSupport.SearchPatternWrapper spw)
          Deprecated.  
 boolean find(Map props, boolean oppositeDir)
          Deprecated. Find the text from the caret position.
 int[] findInBlock(JTextComponent c, int startPos, int blockStartPos, int blockEndPos, Map props, boolean oppositeDir)
          Deprecated. Find the searched expression
 Map getDefaultFindProperties()
          Deprecated.  
 Map getFindProperties()
          Deprecated.  
 Object getFindProperty(String name)
          Deprecated. Get find property with specified name
static FindSupport getFindSupport()
          Deprecated. Get shared instance of find support
 List getHistory()
          Deprecated.  
 FindSupport.SearchPatternWrapper getLastSelected()
          Deprecated.  
 boolean incSearch(Map props, int caretPos)
          Deprecated.  
 void incSearchReset()
          Deprecated.  
 void putFindProperties(Map propsToAdd)
          Deprecated. Add/replace properties from some other map to current find properties.
 void putFindProperty(String name, Object newValue)
          Deprecated. Set find property with specified name and fire change.
 void removePropertyChangeListener(PropertyChangeListener l)
          Deprecated. Remove listener for changes in properties
 boolean replace(Map props, boolean oppositeDir)
          Deprecated.  
 void replaceAll(Map props)
          Deprecated.  
 void setBlockSearchHighlight(int startSelection, int endSelection)
          Deprecated.  
 void setHistory(List spwList)
          Deprecated.  
 void setLastSelected(FindSupport.SearchPatternWrapper spw)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVERT_MAP

public static final String REVERT_MAP
Deprecated. 
See Also:
Constant Field Values

FIND_HISTORY_PROP

public static final String FIND_HISTORY_PROP
Deprecated. 
See Also:
Constant Field Values

FIND_HISTORY_CHANGED_PROP

public static final String FIND_HISTORY_CHANGED_PROP
Deprecated. 
See Also:
Constant Field Values
Method Detail

getFindSupport

public static FindSupport getFindSupport()
Deprecated. 
Get shared instance of find support


getDefaultFindProperties

public Map getDefaultFindProperties()
Deprecated. 

getFindProperties

public Map getFindProperties()
Deprecated. 

getFindProperty

public Object getFindProperty(String name)
Deprecated. 
Get find property with specified name


putFindProperty

public void putFindProperty(String name,
                            Object newValue)
Deprecated. 
Set find property with specified name and fire change.


putFindProperties

public void putFindProperties(Map propsToAdd)
Deprecated. 
Add/replace properties from some other map to current find properties. If the added properties are different than the original ones, the property change is fired.


setBlockSearchHighlight

public void setBlockSearchHighlight(int startSelection,
                                    int endSelection)
Deprecated. 

incSearch

public boolean incSearch(Map props,
                         int caretPos)
Deprecated. 

incSearchReset

public void incSearchReset()
Deprecated. 

find

public boolean find(Map props,
                    boolean oppositeDir)
Deprecated. 
Find the text from the caret position.

Parameters:
props - search properties
oppositeDir - whether search in opposite direction

findInBlock

public int[] findInBlock(JTextComponent c,
                         int startPos,
                         int blockStartPos,
                         int blockEndPos,
                         Map props,
                         boolean oppositeDir)
                  throws BadLocationException
Deprecated. 
Find the searched expression

Parameters:
startPos - position from which to search. It must be inside the block.
blockStartPos - starting position of the block. It must be valid position greater or equal than zero. It must be lower than or equal to blockEndPos (except blockEndPos=-1).
blockEndPos - ending position of the block. It can be -1 for the end of document. It must be greater or equal than blockStartPos (except blockEndPos=-1).
props - search properties
oppositeDir - whether search in opposite direction
displayWrap - whether display messages about the wrapping
Returns:
either null when nothing was found or integer array with three members ret[0] - starting position of the found string ret[1] - ending position of the found string ret[2] - 1 or 0 when wrap was or wasn't performed in order to find the string
Throws:
BadLocationException

replace

public boolean replace(Map props,
                       boolean oppositeDir)
                throws BadLocationException
Deprecated. 
Throws:
BadLocationException

replaceAll

public void replaceAll(Map props)
Deprecated. 

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Deprecated. 
Add weak listener to listen to change of any property. The caller must hold the listener object in some instance variable to prevent it from being garbage collected.


addPropertyChangeListener

public void addPropertyChangeListener(String findPropertyName,
                                      PropertyChangeListener l)
Deprecated. 

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Deprecated. 
Remove listener for changes in properties


setHistory

public void setHistory(List spwList)
Deprecated. 

getHistory

public List getHistory()
Deprecated. 

setLastSelected

public void setLastSelected(FindSupport.SearchPatternWrapper spw)
Deprecated. 

getLastSelected

public FindSupport.SearchPatternWrapper getLastSelected()
Deprecated. 

addToHistory

public void addToHistory(FindSupport.SearchPatternWrapper spw)
Deprecated. 

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.