| java.lang.Object org.netbeans.editor.Abbrev
Abbrev | public class Abbrev implements SettingsChangeListener,PropertyChangeListener(Code) | | Abbreviation support allowing to expand defined character sequences into the
expanded strings or call the arbitrary action.
author: Miloslav Metelka version: 1.00 |
Constructor Summary | |
public | Abbrev(EditorUI editorUI, boolean checkDocText, boolean checkTextDelimiter) |
editorUI | protected EditorUI editorUI(Code) | | Extended UI to which this abbreviation is associated to
|
Abbrev | public Abbrev(EditorUI editorUI, boolean checkDocText, boolean checkTextDelimiter)(Code) | | |
addChar | public void addChar(char ch)(Code) | | Add typed character to abbreviation accounting string.
|
checkReset | public boolean checkReset(char typedChar)(Code) | | |
expandString | public boolean expandString(String expandStr, ActionEvent evt) throws BadLocationException(Code) | | Expand abbreviation on current caret position. Remove characters back to
the word start and insert expanded abbreviation.
whether the typed character should be added to the abbreviationor not |
getAbbrevMap | public Map getAbbrevMap()(Code) | | Get mapping table [abbrev, expanded-abbrev]
|
getAbbrevString | public String getAbbrevString()(Code) | | Get current abbreviation string
|
getExpandString | public String getExpandString(char typedChar)(Code) | | Checks whether there's valid string to expand and if so it returns it.
|
reset | public void reset()(Code) | | Reset abbreviation accounting.
|
settingsChange | public void settingsChange(SettingsChangeEvent evt)(Code) | | Called when settings were changed. The method is called by editorUI when
settings were changed and from constructor.
|
translateAbbrev | public Object translateAbbrev(String abbrev)(Code) | | Translate string using abbreviation table
Parameters: abbrev - string to translate. Pass null to translate currentabbreviation string expanded abbreviation |
|
|