public class Abbrev extends Object implements PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected EditorUI |
editorUI
Deprecated.
Extended UI to which this abbreviation is associated to
|
| Constructor and Description |
|---|
Abbrev(EditorUI editorUI,
boolean checkDocText,
boolean checkTextDelimiter)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChar(char ch)
Deprecated.
Add typed character to abbreviation accounting string.
|
void |
checkAndExpand(ActionEvent evt)
Deprecated.
|
boolean |
checkAndExpand(char typedChar,
ActionEvent evt)
Deprecated.
|
boolean |
checkReset(char typedChar)
Deprecated.
|
protected boolean |
doExpansion(int dotPos,
String expandStr,
ActionEvent evt)
Deprecated.
|
boolean |
expandString(char typedChar,
String expandStr,
ActionEvent evt)
Deprecated.
|
boolean |
expandString(String expandStr,
ActionEvent evt)
Deprecated.
Expand abbreviation on current caret position.
|
Map |
getAbbrevMap()
Deprecated.
Get mapping table [abbrev, expanded-abbrev]
|
String |
getAbbrevString()
Deprecated.
Get current abbreviation string
|
String |
getExpandString()
Deprecated.
|
String |
getExpandString(char typedChar)
Deprecated.
Checks whether there's valid string to expand and if so it returns it.
|
static boolean |
isAbbrevDisabled(JTextComponent component)
Deprecated.
Test whether the abbreviation expansion is disabled
at the caret position in the given component's document.
|
void |
propertyChange(PropertyChangeEvent evt)
Deprecated.
|
void |
reset()
Deprecated.
Reset abbreviation accounting.
|
Object |
translateAbbrev(String abbrev)
Deprecated.
Translate string using abbreviation table
|
protected EditorUI editorUI
public Abbrev(EditorUI editorUI, boolean checkDocText, boolean checkTextDelimiter)
public static boolean isAbbrevDisabled(JTextComponent component)
component - non-null text component.public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic void reset()
public void addChar(char ch)
public String getAbbrevString()
public Map getAbbrevMap()
public Object translateAbbrev(String abbrev)
abbrev - string to translate. Pass null to translate current abbreviation
stringpublic String getExpandString(char typedChar)
public String getExpandString()
protected boolean doExpansion(int dotPos,
String expandStr,
ActionEvent evt)
throws BadLocationException
BadLocationExceptionpublic boolean expandString(char typedChar,
String expandStr,
ActionEvent evt)
throws BadLocationException
BadLocationExceptionpublic boolean expandString(String expandStr, ActionEvent evt) throws BadLocationException
BadLocationExceptionpublic boolean checkReset(char typedChar)
public boolean checkAndExpand(char typedChar,
ActionEvent evt)
throws BadLocationException
BadLocationExceptionpublic void checkAndExpand(ActionEvent evt) throws BadLocationException
BadLocationExceptionBuilt on May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.