| java.lang.Object org.netbeans.modules.editor.html.HTMLAutoCompletion
HTMLAutoCompletion | class HTMLAutoCompletion (Code) | | This static class groups the whole aspect of bracket
completion. It is defined to clearly separate the functionality
and keep actions clean.
The methods of the class are called from different actions as
KeyTyped, DeletePreviousChar.
|
Method Summary | |
static void | charDeleted(BaseDocument doc, int dotPos, Caret caret, char ch) | static void | charInserted(BaseDocument doc, int dotPos, Caret caret, char ch) A hook method called after a character was inserted into the
document. |
charDeleted | static void charDeleted(BaseDocument doc, int dotPos, Caret caret, char ch)(Code) | | |
charInserted | static void charInserted(BaseDocument doc, int dotPos, Caret caret, char ch) throws BadLocationException(Code) | | A hook method called after a character was inserted into the
document. The function checks for special characters for
completion ()[]'"{} and other conditions and optionally performs
changes to the doc and or caret (complets braces, moves caret,
etc.)
Parameters: doc - the document where the change occurred Parameters: dotPos - position of the character insertion Parameters: caret - caret Parameters: ch - the character that was inserted throws: BadLocationException - |
|
|