public class StyledEditorKit extends DefaultEditorKit
Modifier and Type | Class and Description |
---|---|
static class |
StyledEditorKit.AlignmentAction
设置段落对齐的动作。
|
static class |
StyledEditorKit.BoldAction
用于切换粗体属性的操作。
|
static class |
StyledEditorKit.FontFamilyAction
在关联的JEditorPane中设置字体系列的操作。
|
static class |
StyledEditorKit.FontSizeAction
在关联的JEditorPane中设置字体大小的操作。
|
static class |
StyledEditorKit.ForegroundAction
设置前景色的动作。
|
static class |
StyledEditorKit.ItalicAction
切换斜体属性的动作。
|
static class |
StyledEditorKit.StyledTextAction
一个假定它被安装在一个带有StyledEditorKit(或子类)的JEditorPane上被触发的动作。
|
static class |
StyledEditorKit.UnderlineAction
切换下划线属性的动作。
|
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction
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 |
---|
StyledEditorKit()
创建用于样式文档的新EditorKit。
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
创建一个编辑工具包的副本。
|
Document |
createDefaultDocument()
创建适用于此类型编辑器的未初始化文本存储模型。
|
protected void |
createInputAttributes(Element element, MutableAttributeSet set)
将
element 的AttributeSet中的键/值复制到
set 。
|
void |
deinstall(JEditorPane c)
当该套件从JEditorPane中删除时调用。
|
Action[] |
getActions()
获取编辑器命令列表。
|
Element |
getCharacterAttributeRun()
获取表示当前插入符号的字符属性的元素的元素。
|
MutableAttributeSet |
getInputAttributes()
获取窗格的输入属性。
|
ViewFactory |
getViewFactory()
获取适合产生由该套件生产的任何型号的视图的工厂。
|
void |
install(JEditorPane c)
将套件安装到JEditorPane中时调用。
|
createCaret, getContentType, read, read, write, write
public MutableAttributeSet getInputAttributes()
public Element getCharacterAttributeRun()
public Action[] getActions()
getActions
在
DefaultEditorKit
public Document createDefaultDocument()
createDefaultDocument
在
DefaultEditorKit
public void install(JEditorPane c)
public void deinstall(JEditorPane c)
public ViewFactory getViewFactory()
getViewFactory
在
DefaultEditorKit
protected void createInputAttributes(Element element, MutableAttributeSet set)
element
的AttributeSet中的键/值复制到set
。
这不会复制组件,图标或元素名称属性。
子类可能希望改进什么是什么和什么不复制在这里。
但请务必先删除set中的所有set
。
随时插入符号在不同位置移动即可。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.