public class JSyntaxKit extends StyledEditorKit implements ViewFactory
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineActionDefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction| Modifier and Type | Field and Description |
|---|---|
static String |
UI_KEY_COMMENTS |
static String |
UI_KEY_DEFAULT |
static String |
UI_KEY_DIRECTIVE |
static String |
UI_KEY_FORE1 |
static String |
UI_KEY_FORE10 |
static String |
UI_KEY_FORE2 |
static String |
UI_KEY_FORE3 |
static String |
UI_KEY_FORE4 |
static String |
UI_KEY_FORE5 |
static String |
UI_KEY_FORE6 |
static String |
UI_KEY_FORE7 |
static String |
UI_KEY_FORE8 |
static String |
UI_KEY_FORE9 |
static String |
UI_KEY_LITERAL_BOOLEAN |
static String |
UI_KEY_LITERAL_DATE |
static String |
UI_KEY_LITERAL_NUMBER |
static String |
UI_KEY_LITERAL_REGEXP |
static String |
UI_KEY_LITERAL_STRING |
static String |
UI_KEY_OPERATOR |
static String |
UI_KEY_RESERVED_WORD |
static String |
UI_KEY_SEPARATOR |
static String |
UI_KEY_TYPE_PRIMITIVE |
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction| Constructor and Description |
|---|
JSyntaxKit() |
JSyntaxKit(net.thevpc.jeep.JContext jcontext,
JSyntaxStyleManager styles)
Create a new Kit for the given language
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSyntaxActions(Keymap map,
String prefix)
Add keyboard actions to this control using the Configuration we have
|
View |
create(Element element) |
Document |
createDefaultDocument()
This is called by Swing to create a Document for the JEditorPane document
This may be called before you actually get a reference to the control.
|
void |
deinstall(JEditorPane editorPane) |
static String[] |
getContentTypes()
Return all the content types supported by this library.
|
JSyntaxStyleManager |
getStyles() |
ViewFactory |
getViewFactory() |
void |
install(JEditorPane editorPane)
Install the View on the given EditorPane.
|
static void |
registerContentType(String type,
String classname)
Register the given content type to use the given class name as its kit
When this is called, an entry is added into the private HashMap of the
registered editors kits.
|
JSyntaxKit |
setJcontext(net.thevpc.jeep.JContext jcontext) |
static void |
setMenuSelectedIndex(JPopupMenu popupMenu,
int index) |
JSyntaxKit |
setStyles(JSyntaxStyleManager styles) |
clone, createInputAttributes, getActions, getCharacterAttributeRun, getInputAttributescreateCaret, getContentType, read, read, write, writepublic static final String UI_KEY_DEFAULT
public static final String UI_KEY_RESERVED_WORD
public static final String UI_KEY_COMMENTS
public static final String UI_KEY_LITERAL_STRING
public static final String UI_KEY_DIRECTIVE
public static final String UI_KEY_LITERAL_NUMBER
public static final String UI_KEY_LITERAL_DATE
public static final String UI_KEY_LITERAL_REGEXP
public static final String UI_KEY_LITERAL_BOOLEAN
public static final String UI_KEY_TYPE_PRIMITIVE
public static final String UI_KEY_SEPARATOR
public static final String UI_KEY_OPERATOR
public static final String UI_KEY_FORE1
public static final String UI_KEY_FORE2
public static final String UI_KEY_FORE3
public static final String UI_KEY_FORE4
public static final String UI_KEY_FORE5
public static final String UI_KEY_FORE6
public static final String UI_KEY_FORE7
public static final String UI_KEY_FORE8
public static final String UI_KEY_FORE9
public static final String UI_KEY_FORE10
public JSyntaxKit(net.thevpc.jeep.JContext jcontext,
JSyntaxStyleManager styles)
jcontext - public JSyntaxKit()
public JSyntaxStyleManager getStyles()
public JSyntaxKit setJcontext(net.thevpc.jeep.JContext jcontext)
public JSyntaxKit setStyles(JSyntaxStyleManager styles)
public ViewFactory getViewFactory()
getViewFactory in class StyledEditorKitpublic View create(Element element)
create in interface ViewFactorypublic void install(JEditorPane editorPane)
install in class StyledEditorKiteditorPane - public void deinstall(JEditorPane editorPane)
deinstall in class StyledEditorKitpublic static void setMenuSelectedIndex(JPopupMenu popupMenu, int index)
public void addSyntaxActions(Keymap map, String prefix)
map - prefix - public Document createDefaultDocument()
createDefaultDocument in class StyledEditorKitpublic static void registerContentType(String type, String classname)
type - classname - public static String[] getContentTypes()
Copyright © 2021 vpc open source initiative. All rights reserved.