| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 AttributeSet 的软件包 | |
|---|---|
| java.awt | 包含用于创建用户界面和绘制图形图像的所有类。 | 
| javax.accessibility | 定义了用户界面组件与提供对这些组件进行访问的辅助技术之间的协定。 | 
| javax.swing | 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 | 
| javax.swing.text | 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。  | 
| javax.swing.text.html | 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。  | 
| java.awt 中 AttributeSet 的使用 | 
|---|
| 返回 AttributeSet 的 java.awt 中的方法 | |
|---|---|
 AttributeSet | 
TextComponent.AccessibleAWTTextComponent.getCharacterAttribute(int i)
返回给定字符(位于给定索引处)的 AttributeSet。  | 
| javax.accessibility 中 AttributeSet 的使用 | 
|---|
| 声明为 AttributeSet 的 javax.accessibility 中的字段 | |
|---|---|
 AttributeSet | 
AccessibleAttributeSequence.attributes
文本属性  | 
| 返回 AttributeSet 的 javax.accessibility 中的方法 | |
|---|---|
 AttributeSet | 
AccessibleText.getCharacterAttribute(int i)
返回给定索引处给定字符的 AttributeSet  | 
| 参数类型为 AttributeSet 的 javax.accessibility 中的方法 | |
|---|---|
 void | 
AccessibleEditableText.setAttributes(int startIndex,
              int endIndex,
              AttributeSet as)
设置两个索引之间文本的属性。  | 
| 参数类型为 AttributeSet 的 javax.accessibility 中的构造方法 | |
|---|---|
AccessibleAttributeSequence(int start,
                            int end,
                            AttributeSet attr)
构造带有给定参数的 AccessibleAttributeSequence。 | 
|
| javax.swing 中 AttributeSet 的使用 | 
|---|
| 返回 AttributeSet 的 javax.swing 中的方法 | |
|---|---|
 AttributeSet | 
JSpinner.AccessibleJSpinner.getCharacterAttribute(int i)
返回给定索引处给定字符的 AttributeSet  | 
 AttributeSet | 
ProgressMonitor.AccessibleProgressMonitor.getCharacterAttribute(int i)
返回位于给定索引处的给定字符的 AttributeSet  | 
 AttributeSet | 
AbstractButton.AccessibleAbstractButton.getCharacterAttribute(int i)
返回位于给定索引处的给定字符的 AttributeSet。  | 
 AttributeSet | 
JLabel.AccessibleJLabel.getCharacterAttribute(int i)
返回给定索引处给定字符的 AttributeSet  | 
 AttributeSet | 
JTextPane.getCharacterAttributes()
获取在当前插入符号位置的有效字符属性,或者 null。 | 
 AttributeSet | 
JTextPane.getParagraphAttributes()
获取插入符号位置的当前有效段落属性,如果没有,则返回 null。 | 
| 参数类型为 AttributeSet 的 javax.swing 中的方法 | |
|---|---|
 void | 
JSpinner.AccessibleJSpinner.setAttributes(int startIndex,
              int endIndex,
              AttributeSet as)
设置两个索引之间文本的属性。  | 
 void | 
JTextPane.setCharacterAttributes(AttributeSet attr,
                       boolean replace)
将给定属性应用于字符内容。  | 
 void | 
JTextPane.setParagraphAttributes(AttributeSet attr,
                       boolean replace)
将给定属性应用于段落。  | 
| javax.swing.text 中 AttributeSet 的使用 | 
|---|
| javax.swing.text 中 AttributeSet 的子接口 | |
|---|---|
 interface | 
MutableAttributeSet
独特属性的可变集合的通用接口。  | 
 interface | 
Style
与文档中某个元素相关的属性集合。  | 
| 实现 AttributeSet 的 javax.swing.text 中的类 | |
|---|---|
 class | 
AbstractDocument.AbstractElement
实现元素的抽象部分。  | 
 class | 
AbstractDocument.BranchElement
实现一个包含其他元素的复合元素。  | 
 class | 
AbstractDocument.LeafElement
实现可直接表示某类内容的元素。  | 
protected  class | 
DefaultStyledDocument.SectionElement
文档的默认根元素... 与所包含的段落/行对应。  | 
 class | 
SimpleAttributeSet
使用哈希表的 MutableAttributeSet 的直接实现。  | 
 class | 
StyleContext.NamedStyle
通常用于表示字符和段落样式的属性集合。  | 
 class | 
StyleContext.SmallAttributeSet
此类可在数组中存储少量的属性。  | 
| 声明为 AttributeSet 的 javax.swing.text 中的字段 | |
|---|---|
protected  AttributeSet | 
DefaultStyledDocument.AttributeUndoableEdit.copy
 | 
static AttributeSet | 
SimpleAttributeSet.EMPTY
空的属性集。  | 
protected  AttributeSet | 
DefaultStyledDocument.AttributeUndoableEdit.newAttributes
 | 
| 返回 AttributeSet 的 javax.swing.text 中的方法 | |
|---|---|
 AttributeSet | 
StyleContext.addAttribute(AttributeSet old,
             Object name,
             Object value)
向给定的集合中添加属性,并返回新的有代表性的集合。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.addAttribute(AttributeSet old,
             Object name,
             Object value)
向给定属性集中添加一个属性,并返回新的有代表性的属性集。  | 
 AttributeSet | 
StyleContext.addAttributes(AttributeSet old,
              AttributeSet attr)
向元素添加属性集。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.addAttributes(AttributeSet old,
              AttributeSet attr)
向元素添加一组属性。  | 
 AttributeSet | 
SimpleAttributeSet.copyAttributes()
创建属性的副本。  | 
 AttributeSet | 
AttributeSet.copyAttributes()
返回保证固定不变的属性集。  | 
 AttributeSet | 
StyleContext.SmallAttributeSet.copyAttributes()
复制属性集。  | 
 AttributeSet | 
StyleContext.NamedStyle.copyAttributes()
复制属性集。  | 
 AttributeSet | 
AbstractDocument.AbstractElement.copyAttributes()
复制属性集合。  | 
 AttributeSet | 
DefaultStyledDocument.ElementSpec.getAttributes()
获得元素属性。  | 
 AttributeSet | 
View.getAttributes()
获取呈现时要使用的属性。  | 
 AttributeSet | 
AbstractDocument.AbstractElement.getAttributes()
获取该元素的属性。  | 
 AttributeSet | 
Element.getAttributes()
获取此元素包含的属性集合。  | 
 AttributeSet | 
JTextComponent.AccessibleJTextComponent.getCharacterAttribute(int i)
返回给定字符(位于给定索引处)的 AttributeSet。  | 
 AttributeSet | 
StyleContext.getEmptySet()
获取空 AttributeSet。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.getEmptySet()
获取一个空的 AttributeSet。  | 
 AttributeSet | 
SimpleAttributeSet.getResolveParent()
获取正解析的父级。  | 
 AttributeSet | 
AttributeSet.getResolveParent()
获取解析父集合。  | 
 AttributeSet | 
StyleContext.SmallAttributeSet.getResolveParent()
如果未重写,解析父级默认为是解析父元素。  | 
 AttributeSet | 
StyleContext.NamedStyle.getResolveParent()
从父级获取属性。  | 
 AttributeSet | 
AbstractDocument.AbstractElement.getResolveParent()
获取要解析的父级。  | 
 AttributeSet | 
StyleContext.removeAttribute(AttributeSet old,
                Object name)
从集合中移除一个属性。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.removeAttribute(AttributeSet old,
                Object name)
从属性集中移除某个属性。  | 
 AttributeSet | 
StyleContext.removeAttributes(AttributeSet old,
                 AttributeSet attrs)
移除元素的属性集。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.removeAttributes(AttributeSet old,
                 AttributeSet attrs)
移除元素的一组属性。  | 
 AttributeSet | 
StyleContext.removeAttributes(AttributeSet old,
                 Enumeration<?> names)
移除元素的一个属性集。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.removeAttributes(AttributeSet old,
                 Enumeration<?> names)
移除元素的一组属性。  | 
| 参数类型为 AttributeSet 的 javax.swing.text 中的方法 | |
|---|---|
 AttributeSet | 
StyleContext.addAttribute(AttributeSet old,
             Object name,
             Object value)
向给定的集合中添加属性,并返回新的有代表性的集合。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.addAttribute(AttributeSet old,
             Object name,
             Object value)
向给定属性集中添加一个属性,并返回新的有代表性的属性集。  | 
 void | 
SimpleAttributeSet.addAttributes(AttributeSet attributes)
向列表添加属性集。  | 
 void | 
MutableAttributeSet.addAttributes(AttributeSet attributes)
创建一个与此属性集类似的新属性集,不同之处在于它包含具有给定名称和值的属性。  | 
 void | 
StyleContext.NamedStyle.addAttributes(AttributeSet attr)
将属性集添加到元素。  | 
 void | 
AbstractDocument.AbstractElement.addAttributes(AttributeSet attr)
向该元素添加一个属性集合。  | 
 AttributeSet | 
StyleContext.addAttributes(AttributeSet old,
              AttributeSet attr)
向元素添加属性集。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.addAttributes(AttributeSet old,
              AttributeSet attr)
向元素添加一组属性。  | 
 boolean | 
SimpleAttributeSet.containsAttributes(AttributeSet attributes)
确定属性列表中是否包含所有指定的名称/值对。  | 
 boolean | 
AttributeSet.containsAttributes(AttributeSet attributes)
如果此集合用相等值定义给定集合中的所有属性,则返回 true。 | 
 boolean | 
StyleContext.SmallAttributeSet.containsAttributes(AttributeSet attrs)
检查属性集是否包含了所有给定的属性。  | 
 boolean | 
StyleContext.NamedStyle.containsAttributes(AttributeSet attrs)
检查元素是否包含了所有属性。  | 
 boolean | 
AbstractDocument.AbstractElement.containsAttributes(AttributeSet attrs)
检查该元素是否包含所有的属性。  | 
protected  Element | 
AbstractDocument.createBranchElement(Element parent,
                    AttributeSet a)
创建文档分支元素,它可包含其他元素。  | 
protected  MutableAttributeSet | 
StyleContext.createLargeAttributeSet(AttributeSet a)
创建一个以空间来换取时间的大属性集合。  | 
protected  Element | 
AbstractDocument.createLeafElement(Element parent,
                  AttributeSet a,
                  int p0,
                  int p1)
创建文档叶元素。  | 
protected  StyleContext.SmallAttributeSet | 
StyleContext.createSmallAttributeSet(AttributeSet a)
创建一个可能用于共享的压缩属性集。  | 
static int | 
StyleConstants.getAlignment(AttributeSet a)
获取对齐设置。  | 
 Color | 
DefaultStyledDocument.getBackground(AttributeSet attr)
从属性集获得背景颜色。  | 
 Color | 
StyledDocument.getBackground(AttributeSet attr)
使用一个属性集并将其转换为一个背景色规范。  | 
static Color | 
StyleConstants.getBackground(AttributeSet a)
从属性列表中获取背景色设置。  | 
 Color | 
StyleContext.getBackground(AttributeSet attr)
使用一个属性集并将其转换成为一个背景色规范。  | 
static int | 
StyleConstants.getBidiLevel(AttributeSet a)
获取 BidiLevel 设置。  | 
static Component | 
StyleConstants.getComponent(AttributeSet a)
从属性列表中获取组件设置。  | 
static float | 
StyleConstants.getFirstLineIndent(AttributeSet a)
获取首行缩进设置。  | 
 Font | 
DefaultStyledDocument.getFont(AttributeSet attr)
从属性集获得字体。  | 
 Font | 
StyledDocument.getFont(AttributeSet attr)
使用一个属性集并将其转换为字体规范。  | 
 Font | 
StyleContext.getFont(AttributeSet attr)
从属性集中获取字体。  | 
static String | 
StyleConstants.getFontFamily(AttributeSet a)
从属性列表中获取字体系列设置。  | 
static int | 
StyleConstants.getFontSize(AttributeSet a)
从属性列表中获取字体大小设置。  | 
 Color | 
DefaultStyledDocument.getForeground(AttributeSet attr)
从属性集获得前景色。  | 
 Color | 
StyledDocument.getForeground(AttributeSet attr)
使用一个属性集并将其转换成为一个前景色规范。  | 
static Color | 
StyleConstants.getForeground(AttributeSet a)
从属性列表中获取前景色设置。  | 
 Color | 
StyleContext.getForeground(AttributeSet attr)
使用一个属性集并将其转换成为一个前景色规范。  | 
static Icon | 
StyleConstants.getIcon(AttributeSet a)
从属性列表中获取图标设置。  | 
static float | 
StyleConstants.getLeftIndent(AttributeSet a)
获取左边缩进设置。  | 
static float | 
StyleConstants.getLineSpacing(AttributeSet a)
获取行间距设置。  | 
static float | 
StyleConstants.getRightIndent(AttributeSet a)
获取右边缩进设置。  | 
static float | 
StyleConstants.getSpaceAbove(AttributeSet a)
获取上部空间设置。  | 
static float | 
StyleConstants.getSpaceBelow(AttributeSet a)
获取下部空间设置。  | 
static TabSet | 
StyleConstants.getTabSet(AttributeSet a)
获取 TabSet。  | 
 void | 
DocumentFilter.insertString(DocumentFilter.FilterBypass fb,
             int offset,
             String string,
             AttributeSet attr)
将文本插入指定的 Document 之前调用。  | 
abstract  void | 
DocumentFilter.FilterBypass.insertString(int offset,
             String string,
             AttributeSet attr)
插入指定的文本,绕过 DocumentFilter。  | 
 void | 
PlainDocument.insertString(int offs,
             String str,
             AttributeSet a)
向文档中插入某些内容。  | 
 void | 
AbstractDocument.insertString(int offs,
             String str,
             AttributeSet a)
将某些内容插入文档。  | 
 void | 
Document.insertString(int offset,
             String str,
             AttributeSet a)
插入内容字符串。  | 
protected  void | 
DefaultStyledDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
             AttributeSet attr)
在文本插入后更新文档结构。  | 
protected  void | 
PlainDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
             AttributeSet attr)
随文本插入更新文档结构。  | 
protected  void | 
AbstractDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
             AttributeSet attr)
在文本插入后更新文档结构。  | 
static boolean | 
StyleConstants.isBold(AttributeSet a)
确定是否设置了粗体属性。  | 
 boolean | 
SimpleAttributeSet.isEqual(AttributeSet attr)
比较两个属性集。  | 
 boolean | 
AttributeSet.isEqual(AttributeSet attr)
确定两个属性集是否相等。  | 
 boolean | 
StyleContext.SmallAttributeSet.isEqual(AttributeSet attr)
检查两个属性集是否相等。  | 
 boolean | 
StyleContext.NamedStyle.isEqual(AttributeSet attr)
检查两个属性集是否相等。  | 
 boolean | 
AbstractDocument.AbstractElement.isEqual(AttributeSet attr)
检查两个属性集合是否相等。  | 
static boolean | 
StyleConstants.isItalic(AttributeSet a)
确定是否设置了斜体属性。  | 
static boolean | 
StyleConstants.isStrikeThrough(AttributeSet a)
确定是否设置了删除线属性。  | 
static boolean | 
StyleConstants.isSubscript(AttributeSet a)
确定是否设置了下标属性。  | 
static boolean | 
StyleConstants.isSuperscript(AttributeSet a)
确定是否设置了上标属性。  | 
static boolean | 
StyleConstants.isUnderline(AttributeSet a)
确定是否设置了下划线属性。  | 
 void | 
StyleContext.reclaim(AttributeSet a)
返回 MutableAttributeSet 实现不再需要的集合。  | 
 void | 
AbstractDocument.AttributeContext.reclaim(AttributeSet a)
回收某个属性集。  | 
 AttributeSet | 
StyleContext.removeAttribute(AttributeSet old,
                Object name)
从集合中移除一个属性。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.removeAttribute(AttributeSet old,
                Object name)
从属性集中移除某个属性。  | 
 void | 
SimpleAttributeSet.removeAttributes(AttributeSet attributes)
从列表中移除属性集。  | 
 void | 
MutableAttributeSet.removeAttributes(AttributeSet attributes)
移除具有给定 name 的属性集。 | 
 void | 
StyleContext.NamedStyle.removeAttributes(AttributeSet attrs)
移除元素的属性集。  | 
 void | 
AbstractDocument.AbstractElement.removeAttributes(AttributeSet attrs)
移除该元素的属性集合。  | 
 AttributeSet | 
StyleContext.removeAttributes(AttributeSet old,
                 AttributeSet attrs)
移除元素的属性集。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.removeAttributes(AttributeSet old,
                 AttributeSet attrs)
移除元素的一组属性。  | 
 AttributeSet | 
StyleContext.removeAttributes(AttributeSet old,
                 Enumeration<?> names)
移除元素的一个属性集。  | 
 AttributeSet | 
AbstractDocument.AttributeContext.removeAttributes(AttributeSet old,
                 Enumeration<?> names)
移除元素的一组属性。  | 
 void | 
DocumentFilter.replace(DocumentFilter.FilterBypass fb,
        int offset,
        int length,
        String text,
        AttributeSet attrs)
在替换指定的 Document 中的文本区域之前调用。  | 
abstract  void | 
DocumentFilter.FilterBypass.replace(int offset,
        int length,
        String string,
        AttributeSet attrs)
删除从 offset 到 offset + length 的文本区域,并用 text 替换。 | 
 void | 
AbstractDocument.replace(int offset,
        int length,
        String text,
        AttributeSet attrs)
删除从 offset 到 offset + length 的文本区域,并用 text 替换它。 | 
 void | 
JTextComponent.AccessibleJTextComponent.setAttributes(int startIndex,
              int endIndex,
              AttributeSet as)
设置两个索引之间的文本的属性。  | 
 void | 
DefaultStyledDocument.setCharacterAttributes(int offset,
                       int length,
                       AttributeSet s,
                       boolean replace)
为文档某些部分设置属性。  | 
 void | 
StyledDocument.setCharacterAttributes(int offset,
                       int length,
                       AttributeSet s,
                       boolean replace)
更改内容元素属性,该属性是用来给定文档中现有内容范围的。  | 
protected  void | 
StyledEditorKit.StyledTextAction.setCharacterAttributes(JEditorPane editor,
                       AttributeSet attr,
                       boolean replace)
对字符内容应用给定的属性。  | 
 void | 
DefaultStyledDocument.setParagraphAttributes(int offset,
                       int length,
                       AttributeSet s,
                       boolean replace)
设置段落属性。  | 
 void | 
StyledDocument.setParagraphAttributes(int offset,
                       int length,
                       AttributeSet s,
                       boolean replace)
设置段落属性。  | 
protected  void | 
StyledEditorKit.StyledTextAction.setParagraphAttributes(JEditorPane editor,
                       AttributeSet attr,
                       boolean replace)
对段落应用给定的属性。  | 
protected  void | 
CompositeView.setParagraphInsets(AttributeSet attr)
按照给定属性中指定的段落属性设置 insets。  | 
 void | 
SimpleAttributeSet.setResolveParent(AttributeSet parent)
设置解析的父级。  | 
 void | 
MutableAttributeSet.setResolveParent(AttributeSet parent)
设置正解析的父级。  | 
 void | 
StyleContext.NamedStyle.setResolveParent(AttributeSet parent)
设置解析的父级。  | 
 void | 
AbstractDocument.AbstractElement.setResolveParent(AttributeSet parent)
设置要解析的父级。  | 
protected  void | 
AbstractWriter.writeAttributes(AttributeSet attr)
以 "  | 
 void | 
StyleContext.writeAttributes(ObjectOutputStream out,
                AttributeSet a)
写出属性的特定于上下文的处理。  | 
static void | 
StyleContext.writeAttributeSet(ObjectOutputStream out,
                  AttributeSet a)
将属性集写入到给定的对象流以便序列化。  | 
| 参数类型为 AttributeSet 的 javax.swing.text 中的构造方法 | |
|---|---|
AbstractDocument.AbstractElement(Element parent,
                                 AttributeSet a)
创建新的 AbstractElement。  | 
|
AbstractDocument.BranchElement(Element parent,
                               AttributeSet a)
构造最初不包含任何子元素的复合元素。  | 
|
AbstractDocument.LeafElement(Element parent,
                             AttributeSet a,
                             int offs0,
                             int offs1)
构造一个表示文档中内容的元素(没有子元素)。  | 
|
DefaultStyledDocument.AttributeUndoableEdit(Element element,
                                            AttributeSet newAttributes,
                                            boolean isReplacing)
 | 
|
DefaultStyledDocument.ElementSpec(AttributeSet a,
                                  short type)
当标记不在文档中存储时供标记使用的构造方法。  | 
|
DefaultStyledDocument.ElementSpec(AttributeSet a,
                                  short type,
                                  char[] txt,
                                  int offs,
                                  int len)
用于外部创建规范的构造方法,供批量输入内容和标记到文档中。  | 
|
DefaultStyledDocument.ElementSpec(AttributeSet a,
                                  short type,
                                  int len)
供文档内部解析使用的构造方法,在数据已添加但还需要 len 信息时使用。  | 
|
SimpleAttributeSet(AttributeSet source)
根据提供的属性集创建新属性集。  | 
|
StyleContext.SmallAttributeSet(AttributeSet attrs)
 | 
|
| javax.swing.text.html 中 AttributeSet 的使用 | 
|---|
| 实现 AttributeSet 的 javax.swing.text.html 中的类 | |
|---|---|
 class | 
HTMLDocument.BlockElement
表示结构性 HTML 块 的元素。  | 
 class | 
HTMLDocument.RunElement
表示文本块的元素,该文本块具有一个分配给它的 HTML 字符级的属性集。  | 
| 返回 AttributeSet 的 javax.swing.text.html 中的方法 | |
|---|---|
 AttributeSet | 
StyleSheet.addAttribute(AttributeSet old,
             Object key,
             Object value)
向给定集合添加属性,并返回新的表示方式的集合。  | 
 AttributeSet | 
StyleSheet.addAttributes(AttributeSet old,
              AttributeSet attr)
向元素添加属性集。  | 
 AttributeSet | 
BlockView.getAttributes()
获取呈现时要使用的属性。  | 
abstract  AttributeSet | 
HTMLDocument.Iterator.getAttributes()
返回此标记的属性。  | 
 AttributeSet | 
ImageView.getAttributes()
获取呈现时要使用的属性。  | 
 AttributeSet | 
InlineView.getAttributes()
获取呈现时要使用的属性。  | 
 AttributeSet | 
Option.getAttributes()
获取与此选项相关的属性。  | 
 AttributeSet | 
ParagraphView.getAttributes()
获取呈现时所使用的属性。  | 
 AttributeSet | 
StyleSheet.getDeclaration(String decl)
将 CSS 声明转换为表示 CSS 声明的 AttributeSet。  | 
 AttributeSet | 
HTMLDocument.RunElement.getResolveParent()
获得解析父级。  | 
 AttributeSet | 
HTMLDocument.BlockElement.getResolveParent()
获得解析父级。  | 
 AttributeSet | 
StyleSheet.getViewAttributes(View v)
获取用来显示视图的属性集。  | 
 AttributeSet | 
StyleSheet.removeAttribute(AttributeSet old,
                Object key)
从集合中移除属性。  | 
 AttributeSet | 
StyleSheet.removeAttributes(AttributeSet old,
                 AttributeSet attrs)
移除属性集。  | 
 AttributeSet | 
StyleSheet.removeAttributes(AttributeSet old,
                 Enumeration<?> names)
移除元素的属性集。  | 
 AttributeSet | 
StyleSheet.translateHTMLToCSS(AttributeSet htmlAttrSet)
将 HTML 属性集合转换为对等的 CSS 属性集合。  | 
| 参数类型为 AttributeSet 的 javax.swing.text.html 中的方法 | |
|---|---|
 AttributeSet | 
StyleSheet.addAttribute(AttributeSet old,
             Object key,
             Object value)
向给定集合添加属性,并返回新的表示方式的集合。  | 
 AttributeSet | 
StyleSheet.addAttributes(AttributeSet old,
              AttributeSet attr)
向元素添加属性集。  | 
protected  void | 
HTMLWriter.closeOutUnwantedEmbeddedTags(AttributeSet attr)
搜索属性集和存储在标记向量中的每个标记。  | 
protected  Element | 
HTMLDocument.createBranchElement(Element parent,
                    AttributeSet a)
创建文档分支元素,它可以包含其他元素。  | 
protected  MutableAttributeSet | 
StyleSheet.createLargeAttributeSet(AttributeSet a)
创建一个以空间来换取时间的大属性集合。  | 
protected  Element | 
HTMLDocument.createLeafElement(Element parent,
                  AttributeSet a,
                  int p0,
                  int p1)
创建直接表示文本的文档叶元素(没有任何子级)。  | 
protected  StyleContext.SmallAttributeSet | 
StyleSheet.createSmallAttributeSet(AttributeSet a)
创建可以共享的属性压缩集。  | 
 Color | 
StyleSheet.getBackground(AttributeSet a)
获取一个属性集并将其转换为背景色规范。  | 
 StyleSheet.BoxPainter | 
StyleSheet.getBoxPainter(AttributeSet a)
获取给定 CSS 属性集合使用的框 formatter。  | 
 Font | 
StyleSheet.getFont(AttributeSet a)
获取给定属性集使用的字体。  | 
 Color | 
StyleSheet.getForeground(AttributeSet a)
获取一个属性集并将其转换为前景色规范。  | 
static int | 
HTML.getIntegerAttributeValue(AttributeSet attr,
                         HTML.Attribute key,
                         int def)
获取整数属性值。  | 
 StyleSheet.ListPainter | 
StyleSheet.getListPainter(AttributeSet a)
获取给定 CSS 属性集合使用的列表 formatter。  | 
protected  void | 
HTMLDocument.insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
             AttributeSet attr)
由于插入文本而导致更新文档的结构。  | 
protected  boolean | 
HTMLWriter.isBlockTag(AttributeSet attr)
确定与该元素关联的 HTML.Tag 是否为块标记。  | 
protected  boolean | 
HTMLWriter.matchNameAttribute(AttributeSet attr,
                   HTML.Tag tag)
如果 StyleConstants.NameAttribute 与作为参数传入的标记相同,则返回 true。  | 
 AttributeSet | 
StyleSheet.removeAttribute(AttributeSet old,
                Object key)
从集合中移除属性。  | 
 AttributeSet | 
StyleSheet.removeAttributes(AttributeSet old,
                 AttributeSet attrs)
移除属性集。  | 
 AttributeSet | 
StyleSheet.removeAttributes(AttributeSet old,
                 Enumeration<?> names)
移除元素的属性集。  | 
protected  void | 
HTMLWriter.selectContent(AttributeSet attr)
写出 SELECT 表单元素的内容。  | 
 void | 
HTMLDocument.setParagraphAttributes(int offset,
                       int length,
                       AttributeSet s,
                       boolean replace)
设置段落属性。  | 
protected  void | 
HTMLWriter.textAreaContent(AttributeSet attr)
写出 TEXTAREA 表单元素中所包含的文本。  | 
 AttributeSet | 
StyleSheet.translateHTMLToCSS(AttributeSet htmlAttrSet)
将 HTML 属性集合转换为对等的 CSS 属性集合。  | 
protected  void | 
HTMLWriter.writeAttributes(AttributeSet attr)
写出属性集。  | 
protected  void | 
MinimalHTMLWriter.writeAttributes(AttributeSet attr)
写出以下类型的所有属性:StyleConstants.ParagraphConstants、StyleConstants.CharacterConstants、StyleConstants.FontConstants、StyleConstants.ColorConstants。  | 
protected  void | 
HTMLWriter.writeEmbeddedTags(AttributeSet attr)
搜索 AttributeSet 中的嵌入式标记并写出它们。  | 
protected  void | 
MinimalHTMLWriter.writeHTMLTags(AttributeSet attr)
基于文本的属性设置生成文本的 bold <b>、italic <i> 和 <u> 标记。  | 
protected  void | 
MinimalHTMLWriter.writeNonHTMLAttributes(AttributeSet attr)
以与 HTML 兼容的方式写出其余的字符级属性(bold、italic 和 underline 之外的属性)。  | 
| 参数类型为 AttributeSet 的 javax.swing.text.html 中的构造方法 | |
|---|---|
HTMLDocument.BlockElement(Element parent,
                          AttributeSet a)
构造初始不包含子元素的复合元素。  | 
|
HTMLDocument.RunElement(Element parent,
                        AttributeSet a,
                        int offs0,
                        int offs1)
构造表示文档内部(没有子级)内容的元素。  | 
|
Option(AttributeSet attr)
创建新的 Option 对象。  | 
|
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。