Using the JADE Editor
If you design forms that contain JadeEditor controls, you can create the control and initialize it by calling the initializeJadeEditor method. If the options set in the control are to be used in your application, set the useProfile parameter to false.
Call the initializeJadeEditor method before you call the setCurrentSchema method, to ensure that the form displays entities in the correct color.
To set the text editor keyword lists for classes, global constants, imported packages, and JADE interfaces for a specific schema, call the setCurrentSchema method so that recognized keywords in method source can be displayed in the appropriate color.
The JadeEditor control overrides the keyboard settings of the JadeTextEdit control superclass listed in the following table.
Setting | Description |
---|---|
Ctrl+Shift+I | Indents text at the caret position. |
When the selected text includes at least one end-of-line sequence (for example, CR+LF), the keystroke sequences Ctrl+Shift+I or Tab indent the lines included in the selection. If the selected text does not include an end-of-line sequence, the selected text is replaced by a Tab character. | |
Ctrl+Shift+U | Removes the indent at the caret position. |
Ctrl+K | Deletes the line on which the caret is positioned. |
CTRL+N | Inserts a line above the line on which the caret is positioned. |
You can dynamically create and manipulate JADE editor controls when a form is running.