|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.FindSupport
public class FindSupport
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 |
---|
public static final String REVERT_MAP
public static final String FIND_HISTORY_PROP
public static final String FIND_HISTORY_CHANGED_PROP
Method Detail |
---|
public static FindSupport getFindSupport()
public Map getDefaultFindProperties()
public Map getFindProperties()
public Object getFindProperty(String name)
public void putFindProperty(String name, Object newValue)
public void putFindProperties(Map propsToAdd)
public void setBlockSearchHighlight(int startSelection, int endSelection)
public boolean incSearch(Map props, int caretPos)
public void incSearchReset()
public boolean find(Map props, boolean oppositeDir)
props
- search propertiesoppositeDir
- whether search in opposite directionpublic int[] findInBlock(JTextComponent c, int startPos, int blockStartPos, int blockEndPos, Map props, boolean oppositeDir) throws BadLocationException
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 propertiesoppositeDir
- whether search in opposite directiondisplayWrap
- whether display messages about the wrapping
BadLocationException
public boolean replace(Map props, boolean oppositeDir) throws BadLocationException
BadLocationException
public void replaceAll(Map props)
public void addPropertyChangeListener(PropertyChangeListener l)
public void addPropertyChangeListener(String findPropertyName, PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
public void setHistory(List spwList)
public List getHistory()
public void setLastSelected(FindSupport.SearchPatternWrapper spw)
public FindSupport.SearchPatternWrapper getLastSelected()
public void addToHistory(FindSupport.SearchPatternWrapper spw)
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |