软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.text.html |
提供类
HTMLEditorKit 和创建HTML文本编辑器支持类。
|
Modifier and Type | Method and Description |
---|---|
MutableAttributeSet |
JTextPane.getInputAttributes()
获取窗格的输入属性。
|
Modifier and Type | Interface and Description |
---|---|
interface |
Style
在文档中与元素关联的属性的集合。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDocument.AbstractElement
实现元素的抽象部分。
|
class |
AbstractDocument.BranchElement
实现包含其他元素的复合元素。
|
class |
AbstractDocument.LeafElement
实现一个直接表示某种类型内容的元素。
|
protected class |
DefaultStyledDocument.SectionElement
用于文档的默认根元素…
|
class |
SimpleAttributeSet
一个简单的实现的MutableAttributeSet使用一个哈希表。
|
class |
StyleContext.NamedStyle
属性的集合,通常用来表示字符和段落样式。
|
Modifier and Type | Method and Description |
---|---|
protected MutableAttributeSet |
StyleContext.createLargeAttributeSet(AttributeSet a)
创建一个大型的属性,应该权衡空间的时间。
|
MutableAttributeSet |
StyledEditorKit.getInputAttributes()
获取窗格的输入属性。
|
Modifier and Type | Method and Description |
---|---|
protected void |
StyledEditorKit.createInputAttributes(Element element, MutableAttributeSet set)
副本
element s attributeset键/值为
set 。
|
void |
StyleContext.readAttributes(ObjectInputStream in, MutableAttributeSet a)
属性中阅读的上下文特定处理
|
static void |
StyleContext.readAttributeSet(ObjectInputStream in, MutableAttributeSet a)
读取的一组给定对象的输入流,此前已写了
writeAttributeSet 属性。
|
static void |
StyleConstants.setAlignment(MutableAttributeSet a, int align)
设置对齐。
|
static void |
StyleConstants.setBackground(MutableAttributeSet a, Color fg)
设置背景颜色。
|
static void |
StyleConstants.setBidiLevel(MutableAttributeSet a, int o)
集bidilevel。
|
static void |
StyleConstants.setBold(MutableAttributeSet a, boolean b)
设置黑体属性。
|
static void |
StyleConstants.setComponent(MutableAttributeSet a, Component c)
设置组件属性。
|
static void |
StyleConstants.setFirstLineIndent(MutableAttributeSet a, float i)
设置首行缩进。
|
static void |
StyleConstants.setFontFamily(MutableAttributeSet a, String fam)
设置字体属性。
|
static void |
StyleConstants.setFontSize(MutableAttributeSet a, int s)
设置字体大小属性。
|
static void |
StyleConstants.setForeground(MutableAttributeSet a, Color fg)
设置前台颜色。
|
static void |
StyleConstants.setIcon(MutableAttributeSet a, Icon c)
设置图标属性。
|
static void |
StyleConstants.setItalic(MutableAttributeSet a, boolean b)
设置字体属性。
|
static void |
StyleConstants.setLeftIndent(MutableAttributeSet a, float i)
设置左缩进。
|
static void |
StyleConstants.setLineSpacing(MutableAttributeSet a, float i)
设置行间距。
|
static void |
StyleConstants.setRightIndent(MutableAttributeSet a, float i)
设置右缩进。
|
static void |
StyleConstants.setSpaceAbove(MutableAttributeSet a, float i)
设置上面的空格。
|
static void |
StyleConstants.setSpaceBelow(MutableAttributeSet a, float i)
设置下面的空格。
|
static void |
StyleConstants.setStrikeThrough(MutableAttributeSet a, boolean b)
设置删除线属性。
|
static void |
StyleConstants.setSubscript(MutableAttributeSet a, boolean b)
设置下标属性。
|
static void |
StyleConstants.setSuperscript(MutableAttributeSet a, boolean b)
设置上标属性。
|
static void |
StyleConstants.setTabSet(MutableAttributeSet a, TabSet tabs)
集tabset。
|
static void |
StyleConstants.setUnderline(MutableAttributeSet a, boolean b)
设置下划线属性。
|
Modifier and Type | Class and Description |
---|---|
class |
HTMLDocument.BlockElement
一个元素代表一个HTML的结构块。
|
class |
HTMLDocument.RunElement
一个元素代表一个块,一组HTML字符级属性分配给它的文本。
|
Modifier and Type | Field and Description |
---|---|
protected MutableAttributeSet |
HTMLDocument.HTMLReader.charAttr |
Modifier and Type | Method and Description |
---|---|
protected MutableAttributeSet |
StyleSheet.createLargeAttributeSet(AttributeSet a)
创建一个大的属性集,该属性应关闭时间空间。
|
MutableAttributeSet |
HTMLEditorKit.getInputAttributes()
获取用于样式编辑操作的输入属性。
|
Modifier and Type | Method and Description |
---|---|
void |
StyleSheet.addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value)
添加一个CSS属性的设置。
|
boolean |
StyleSheet.addCSSAttributeFromHTML(MutableAttributeSet attr, CSS.Attribute key, String value)
添加一个CSS属性的设置。
|
protected void |
HTMLDocument.HTMLReader.addSpecialElement(HTML.Tag t, MutableAttributeSet a)
添加基本上完全在属性集中指定的内容。
|
protected void |
HTMLDocument.HTMLReader.blockOpen(HTML.Tag t, MutableAttributeSet attr)
向解析缓冲区添加一个指令,以创建给定属性的块元素。
|
protected void |
HTMLEditorKit.createInputAttributes(Element element, MutableAttributeSet set)
副本
element s attributeset键/值为
set 。
|
void |
HTMLDocument.HTMLReader.handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
从解析器回调。
|
void |
HTMLEditorKit.ParserCallback.handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos) |
void |
HTMLDocument.HTMLReader.handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
从解析器回调。
|
void |
HTMLEditorKit.ParserCallback.handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos) |
void |
HTMLDocument.HTMLReader.TagAction.start(HTML.Tag t, MutableAttributeSet a)
当一个开始标记被看作是该操作的标签的类型时,被注册到。
|
void |
HTMLDocument.HTMLReader.BlockAction.start(HTML.Tag t, MutableAttributeSet attr) |
void |
HTMLDocument.HTMLReader.ParagraphAction.start(HTML.Tag t, MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.SpecialAction.start(HTML.Tag t, MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.IsindexAction.start(HTML.Tag t, MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.HiddenAction.start(HTML.Tag t, MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.PreAction.start(HTML.Tag t, MutableAttributeSet attr) |
void |
HTMLDocument.HTMLReader.CharacterAction.start(HTML.Tag t, MutableAttributeSet attr) |
void |
HTMLDocument.HTMLReader.FormAction.start(HTML.Tag t, MutableAttributeSet attr) |
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.