Uses of Interface
javax.swing.text.AttributeSet
-
Packages that use AttributeSet 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。javax.accessibility 定义用户界面组件与提供对这些组件的访问的辅助技术之间的合同。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。javax.swing.text.html 提供类HTMLEditorKit和辅助类创建HTML文本编辑器。 -
-
Uses of AttributeSet in java.awt
Methods in java.awt that return AttributeSet Modifier and Type 方法 描述 AttributeSetTextComponent.AccessibleAWTTextComponent. getCharacterAttribute(int i)返回给定字符的AttributeSet(在给定索引处)。 -
Uses of AttributeSet in javax.accessibility
Fields in javax.accessibility declared as AttributeSet Modifier and Type Field 描述 AttributeSetAccessibleAttributeSequence. attributes文本属性。Methods in javax.accessibility that return AttributeSet Modifier and Type 方法 描述 AttributeSetAccessibleText. getCharacterAttribute(int i)在给定索引处返回给定字符的AttributeSet。Methods in javax.accessibility with parameters of type AttributeSet Modifier and Type 方法 描述 voidAccessibleEditableText. setAttributes(int startIndex, int endIndex, AttributeSet as)为两个索引之间的文本设置属性。Constructors in javax.accessibility with parameters of type AttributeSet Constructor 描述 AccessibleAttributeSequence(int start, int end, AttributeSet attr)构造具有给定参数的AccessibleAttributeSequence。 -
Uses of AttributeSet in javax.swing
Methods in javax.swing that return AttributeSet Modifier and Type 方法 描述 AttributeSetAbstractButton.AccessibleAbstractButton. getCharacterAttribute(int i)在给定索引处返回给定字符的AttributeSetAttributeSetJLabel.AccessibleJLabel. getCharacterAttribute(int i)在给定索引处返回给定字符的AttributeSetAttributeSetJSpinner.AccessibleJSpinner. getCharacterAttribute(int i)返回给定索引处给定字符的AttributeSetAttributeSetProgressMonitor.AccessibleProgressMonitor. getCharacterAttribute(int i)返回给定索引处给定字符的AttributeSetAttributeSetJTextPane. getCharacterAttributes()获取在插入符号的当前位置有效的字符属性,或null。AttributeSetJTextPane. getParagraphAttributes()获取当前段落属性在插入符号的位置,或null如果没有)。Methods in javax.swing with parameters of type AttributeSet Modifier and Type 方法 描述 voidJSpinner.AccessibleJSpinner. setAttributes(int startIndex, int endIndex, AttributeSet as)为两个索引之间的文本设置属性。voidJTextPane. setCharacterAttributes(AttributeSet attr, boolean replace)将给定的属性应用于字符内容。voidJTextPane. setParagraphAttributes(AttributeSet attr, boolean replace)将给定的属性应用于段落。 -
Uses of AttributeSet in javax.swing.text
Subinterfaces of AttributeSet in javax.swing.text Modifier and Type 接口 描述 interfaceMutableAttributeSet用于可变集合的唯一属性的通用界面。interfaceStyle与文档中元素关联的属性集合。Classes in javax.swing.text that implement AttributeSet Modifier and Type Class 描述 classAbstractDocument.AbstractElement实现元素的抽象部分。classAbstractDocument.BranchElement实现一个包含其他元素的复合元素。classAbstractDocument.LeafElement实现直接表示某种内容的元素。protected classDefaultStyledDocument.SectionElement文档的默认根元素...映射包含的段落/行。classSimpleAttributeSet使用哈希表直接实现MutableAttributeSet。classStyleContext.NamedStyle属性集合,通常用于表示字符和段落样式。classStyleContext.SmallAttributeSet该类在数组中保存少量属性。Fields in javax.swing.text declared as AttributeSet Modifier and Type Field 描述 protected AttributeSetDefaultStyledDocument.AttributeUndoableEdit. copyAttributeSet的副本包含元素。static AttributeSetSimpleAttributeSet. EMPTY一个空属性集。protected AttributeSetDefaultStyledDocument.AttributeUndoableEdit. newAttributes包含其他条目的AttributeSet必须是不可变的!Methods in javax.swing.text that return AttributeSet Modifier and Type 方法 描述 AttributeSetAbstractDocument.AttributeContext. addAttribute(AttributeSet old, Object name, Object value)向给定集添加属性,并返回新的代表集。AttributeSetStyleContext. addAttribute(AttributeSet old, Object name, Object value)向给定集添加属性,并返回新的代表集。AttributeSetAbstractDocument.AttributeContext. addAttributes(AttributeSet old, AttributeSet attr)向元素添加一组属性。AttributeSetStyleContext. addAttributes(AttributeSet old, AttributeSet attr)向元素添加一组属性。AttributeSetAbstractDocument.AbstractElement. copyAttributes()复制一组属性。AttributeSetAttributeSet. copyAttributes()返回一个保证不会随时间变化的属性集。AttributeSetSimpleAttributeSet. copyAttributes()复制属性。AttributeSetStyleContext.NamedStyle. copyAttributes()复制一组属性。AttributeSetStyleContext.SmallAttributeSet. copyAttributes()复制一组属性。AttributeSetAbstractDocument.AbstractElement. getAttributes()获取元素的属性。AttributeSetDefaultStyledDocument.ElementSpec. getAttributes()获取元素属性。AttributeSetElement. getAttributes()获取此元素包含的属性集合。AttributeSetView. getAttributes()获取渲染时要使用的属性。AttributeSetJTextComponent.AccessibleJTextComponent. getCharacterAttribute(int i)返回给定字符的AttributeSet(在给定索引处)。AttributeSetAbstractDocument.AttributeContext. getEmptySet()获取一个空的AttributeSet。AttributeSetStyleContext. getEmptySet()获取一个空的AttributeSet。AttributeSetAbstractDocument.AbstractElement. getResolveParent()得到解决的父母。AttributeSetAttributeSet. getResolveParent()得到解决的父母。AttributeSetSimpleAttributeSet. getResolveParent()得到解决的父母。AttributeSetStyleContext.NamedStyle. getResolveParent()从父级获取属性。AttributeSetStyleContext.SmallAttributeSet. getResolveParent()如果未覆盖,则解析父项默认为父元素。AttributeSetAbstractDocument.AttributeContext. removeAttribute(AttributeSet old, Object name)从集合中删除属性。AttributeSetStyleContext. removeAttribute(AttributeSet old, Object name)从集合中删除属性。AttributeSetAbstractDocument.AttributeContext. removeAttributes(AttributeSet old, Enumeration<?> names)删除元素的一组属性。AttributeSetAbstractDocument.AttributeContext. removeAttributes(AttributeSet old, AttributeSet attrs)删除元素的一组属性。AttributeSetStyleContext. removeAttributes(AttributeSet old, Enumeration<?> names)删除元素的一组属性。AttributeSetStyleContext. removeAttributes(AttributeSet old, AttributeSet attrs)删除元素的一组属性。Methods in javax.swing.text with parameters of type AttributeSet Modifier and Type 方法 描述 AttributeSetAbstractDocument.AttributeContext. addAttribute(AttributeSet old, Object name, Object value)向给定集添加属性,并返回新的代表集。AttributeSetStyleContext. addAttribute(AttributeSet old, Object name, Object value)向给定集添加属性,并返回新的代表集。voidAbstractDocument.AbstractElement. addAttributes(AttributeSet attr)向元素添加一组属性。AttributeSetAbstractDocument.AttributeContext. addAttributes(AttributeSet old, AttributeSet attr)向元素添加一组属性。voidMutableAttributeSet. addAttributes(AttributeSet attributes)创建与此类似的新属性集,除了它包含给定的属性和值。voidSimpleAttributeSet. addAttributes(AttributeSet attributes)向列表中添加一组属性。AttributeSetStyleContext. addAttributes(AttributeSet old, AttributeSet attr)向元素添加一组属性。voidStyleContext.NamedStyle. addAttributes(AttributeSet attr)向元素添加一组属性。booleanAbstractDocument.AbstractElement. containsAttributes(AttributeSet attrs)检查元素是否包含所有属性。booleanAttributeSet. containsAttributes(AttributeSet attributes)返回true如果该集合定义了具有相等值的给定集合中的所有属性。booleanSimpleAttributeSet. containsAttributes(AttributeSet attributes)检查属性列表是否包含所有指定的名称/值对。booleanStyleContext.NamedStyle. containsAttributes(AttributeSet attrs)检查元素是否包含所有属性。booleanStyleContext.SmallAttributeSet. containsAttributes(AttributeSet attrs)检查属性集是否包含所有给定的属性。protected ElementAbstractDocument. createBranchElement(Element parent, AttributeSet a)创建一个可以包含其他元素的文档分支元素。protected MutableAttributeSetStyleContext. createLargeAttributeSet(AttributeSet a)创建一个大的属性集,应该与时间交换空间。protected ElementAbstractDocument. createLeafElement(Element parent, AttributeSet a, int p0, int p1)创建文档叶元素。protected StyleContext.SmallAttributeSetStyleContext. createSmallAttributeSet(AttributeSet a)创建可以共享的一组紧凑的属性。static intStyleConstants. getAlignment(AttributeSet a)获取对齐设置。ColorDefaultStyledDocument. getBackground(AttributeSet attr)从属性集获取背景颜色。static ColorStyleConstants. getBackground(AttributeSet a)从属性列表中获取背景颜色设置。ColorStyleContext. getBackground(AttributeSet attr)获取一组属性并将其转换为背景颜色规范。ColorStyledDocument. getBackground(AttributeSet attr)获取一组属性并将其转换为背景颜色规范。static intStyleConstants. getBidiLevel(AttributeSet a)获取BidiLevel设置。static ComponentStyleConstants. getComponent(AttributeSet a)从属性列表获取组件设置。static floatStyleConstants. getFirstLineIndent(AttributeSet a)获取第一行缩进设置。FontDefaultStyledDocument. getFont(AttributeSet attr)从属性集获取字体。FontStyleContext. getFont(AttributeSet attr)从属性集获取字体。FontStyledDocument. getFont(AttributeSet attr)获取一组属性并将其转换为字体规范。static StringStyleConstants. getFontFamily(AttributeSet a)从属性列表中获取字体系列设置。static intStyleConstants. getFontSize(AttributeSet a)从属性列表获取字体大小设置。ColorDefaultStyledDocument. getForeground(AttributeSet attr)从属性集获取前景色。static ColorStyleConstants. getForeground(AttributeSet a)从属性列表获取前景色设置。ColorStyleContext. getForeground(AttributeSet attr)获取一组属性,并将其转换为前景颜色规范。ColorStyledDocument. getForeground(AttributeSet attr)获取一组属性,并将其转换为前景颜色规范。static IconStyleConstants. getIcon(AttributeSet a)从属性列表中获取图标设置。static floatStyleConstants. getLeftIndent(AttributeSet a)获取左缩进设置。static floatStyleConstants. getLineSpacing(AttributeSet a)获取行距设置。static floatStyleConstants. getRightIndent(AttributeSet a)获取正确的缩进设置。static floatStyleConstants. getSpaceAbove(AttributeSet a)获取上述设置的空间。static floatStyleConstants. getSpaceBelow(AttributeSet a)获取下面的空间设置。static TabSetStyleConstants. getTabSet(AttributeSet a)获取TabSet。voidAbstractDocument. insertString(int offs, String str, AttributeSet a)在文档中插入一些内容。voidDocument. insertString(int offset, String str, AttributeSet a)插入一串内容。abstract voidDocumentFilter.FilterBypass. insertString(int offset, String string, AttributeSet attr)插入指定的文本,绕过DocumentFilter。voidDocumentFilter. insertString(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr)在将文本插入指定的文档之前调用。voidPlainDocument. insertString(int offs, String str, AttributeSet a)在文档中插入一些内容。protected voidAbstractDocument. insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)更新由于文本插入而导致的文档结构。protected voidDefaultStyledDocument. insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)更新由于文本插入而导致的文档结构。protected voidPlainDocument. insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)更新由于文本插入而导致的文档结构。static booleanStyleConstants. isBold(AttributeSet a)检查是否设置了粗体属性。booleanAbstractDocument.AbstractElement. isEqual(AttributeSet attr)检查两个属性集是否相等。booleanAttributeSet. isEqual(AttributeSet attr)确定两个属性集是否相等。booleanSimpleAttributeSet. isEqual(AttributeSet attr)比较两个属性集。booleanStyleContext.NamedStyle. isEqual(AttributeSet attr)检查两个属性集是否相等。booleanStyleContext.SmallAttributeSet. isEqual(AttributeSet attr)检查两个属性集是否相等。static booleanStyleConstants. isItalic(AttributeSet a)检查是否设置了斜体属性。static booleanStyleConstants. isStrikeThrough(AttributeSet a)检查是否设置了删除线属性。static booleanStyleConstants. isSubscript(AttributeSet a)检查下标属性是否设置。static booleanStyleConstants. isSuperscript(AttributeSet a)检查是否设置了上标属性。static booleanStyleConstants. isUnderline(AttributeSet a)检查是否设置了下划线属性。voidAbstractDocument.AttributeContext. reclaim(AttributeSet a)回收一个属性集。voidStyleContext. reclaim(AttributeSet a)返回MutableAttributeSet实现不再需要的集合。AttributeSetAbstractDocument.AttributeContext. removeAttribute(AttributeSet old, Object name)从集合中删除属性。AttributeSetStyleContext. removeAttribute(AttributeSet old, Object name)从集合中删除属性。voidAbstractDocument.AbstractElement. removeAttributes(AttributeSet attrs)删除元素的一组属性。AttributeSetAbstractDocument.AttributeContext. removeAttributes(AttributeSet old, Enumeration<?> names)删除元素的一组属性。AttributeSetAbstractDocument.AttributeContext. removeAttributes(AttributeSet old, AttributeSet attrs)删除元素的一组属性。voidMutableAttributeSet. removeAttributes(AttributeSet attributes)使用给定的name删除一组属性。voidSimpleAttributeSet. removeAttributes(AttributeSet attributes)从列表中删除一组属性。voidStyleContext.NamedStyle. removeAttributes(AttributeSet attrs)删除元素的一组属性。AttributeSetStyleContext. removeAttributes(AttributeSet old, Enumeration<?> names)删除元素的一组属性。AttributeSetStyleContext. removeAttributes(AttributeSet old, AttributeSet attrs)删除元素的一组属性。voidAbstractDocument. replace(int offset, int length, String text, AttributeSet attrs)将文本区域从offset删除为offset + length,并将其替换为text。abstract voidDocumentFilter.FilterBypass. replace(int offset, int length, String string, AttributeSet attrs)将文本区域从offset删除为offset + length,并将其替换为text。voidDocumentFilter. replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)在替换指定文档中的文本区域之前调用。voidJTextComponent.AccessibleJTextComponent. setAttributes(int startIndex, int endIndex, AttributeSet as)为两个索引之间的文本设置属性。voidDefaultStyledDocument. setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)设置文档某些部分的属性。voidStyledDocument. setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)更改用于文档中现有内容的给定范围的内容元素属性。protected voidStyledEditorKit.StyledTextAction. setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace)将给定的属性应用于字符内容。voidDefaultStyledDocument. setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)设置段落的属性。voidStyledDocument. setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)设置段落属性。protected voidStyledEditorKit.StyledTextAction. setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace)将给定的属性应用于段落。protected voidCompositeView. setParagraphInsets(AttributeSet attr)从给定属性中指定的段落属性设置插值。voidAbstractDocument.AbstractElement. setResolveParent(AttributeSet parent)设置解析父项。voidMutableAttributeSet. setResolveParent(AttributeSet parent)设置解析父项。voidSimpleAttributeSet. setResolveParent(AttributeSet parent)设置解析父项。voidStyleContext.NamedStyle. setResolveParent(AttributeSet parent)设置解析父项。protected voidAbstractWriter. writeAttributes(AttributeSet attr)将属性集写入“<name> = <value>”对。voidStyleContext. writeAttributes(ObjectOutputStream out, AttributeSet a)编写属性的上下文特定处理static voidStyleContext. writeAttributeSet(ObjectOutputStream out, AttributeSet a)将一组属性写入给定的对象流以进行序列化。Constructors in javax.swing.text with parameters of type AttributeSet Constructor 描述 AbstractElement(Element parent, AttributeSet a)创建一个新的AbstractElement。AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)构造一个AttributeUndoableEdit。BranchElement(Element parent, AttributeSet a)构造最初不包含子项的复合元素。ElementSpec(AttributeSet a, short type)当标记不会存储在文档中时,对标记有用的构造方法。ElementSpec(AttributeSet a, short type, char[] txt, int offs, int len)构建器,用于外部批量输入内容和标记到文档中。ElementSpec(AttributeSet a, short type, int len)当数据已被添加时,在文档内部进行解析,但需要len信息的构造方法。LeafElement(Element parent, AttributeSet a, int offs0, int offs1)构造一个表示文档内容(没有子项)的元素。SimpleAttributeSet(AttributeSet source)根据提供的一组属性创建一个新的属性集。SmallAttributeSet(AttributeSet attrs)构造一个SmallAttributeSet。 -
Uses of AttributeSet in javax.swing.text.html
Classes in javax.swing.text.html that implement AttributeSet Modifier and Type Class 描述 classHTMLDocument.BlockElement表示HTML的结构 块的元素。classHTMLDocument.RunElement表示一组文本的元素,该文本块分配有一组HTML字符级属性。Methods in javax.swing.text.html that return AttributeSet Modifier and Type 方法 描述 AttributeSetStyleSheet. addAttribute(AttributeSet old, Object key, Object value)向给定集添加属性,并返回新的代表集。AttributeSetStyleSheet. addAttributes(AttributeSet old, AttributeSet attr)向元素添加一组属性。AttributeSetBlockView. getAttributes()获取渲染时要使用的属性。abstract AttributeSetHTMLDocument.Iterator. getAttributes()返回此标签的属性。AttributeSetImageView. getAttributes()获取渲染时要使用的属性。AttributeSetInlineView. getAttributes()获取渲染时要使用的属性。AttributeSetOption. getAttributes()获取与此选项关联的属性。AttributeSetParagraphView. getAttributes()获取渲染时要使用的属性。AttributeSetStyleSheet. getDeclaration(String decl)将CSS声明转换为表示CSS声明的AttributeSet。AttributeSetHTMLDocument.BlockElement. getResolveParent()得到解决的父母。AttributeSetHTMLDocument.RunElement. getResolveParent()得到解决的父母。AttributeSetStyleSheet. getViewAttributes(View v)获取要在视图中显示的一组属性。AttributeSetStyleSheet. removeAttribute(AttributeSet old, Object key)从集合中删除属性。AttributeSetStyleSheet. removeAttributes(AttributeSet old, Enumeration<?> names)删除元素的一组属性。AttributeSetStyleSheet. removeAttributes(AttributeSet old, AttributeSet attrs)删除一组属性。AttributeSetStyleSheet. translateHTMLToCSS(AttributeSet htmlAttrSet)将一组HTML属性转换为等效的CSS属性集。Methods in javax.swing.text.html with parameters of type AttributeSet Modifier and Type 方法 描述 AttributeSetStyleSheet. addAttribute(AttributeSet old, Object key, Object value)向给定集添加属性,并返回新的代表集。AttributeSetStyleSheet. addAttributes(AttributeSet old, AttributeSet attr)向元素添加一组属性。protected voidHTMLWriter. closeOutUnwantedEmbeddedTags(AttributeSet attr)搜索属性集和存储在标签向量中的每个标签。protected ElementHTMLDocument. createBranchElement(Element parent, AttributeSet a)创建一个可以包含其他元素的文档分支元素。protected MutableAttributeSetStyleSheet. createLargeAttributeSet(AttributeSet a)创建一个大的属性集,应该与时间交换空间。protected ElementHTMLDocument. createLeafElement(Element parent, AttributeSet a, int p0, int p1)创建直接表示文本(没有任何子代)的文档叶元素。protected StyleContext.SmallAttributeSetStyleSheet. createSmallAttributeSet(AttributeSet a)创建可以共享的一组紧凑的属性。ColorStyleSheet. getBackground(AttributeSet a)获取一组属性并将其转换为背景颜色规范。StyleSheet.BoxPainterStyleSheet. getBoxPainter(AttributeSet a)获取框格式化程序用于给定的一组CSS属性。FontStyleSheet. getFont(AttributeSet a)获取用于给定属性集的字体。ColorStyleSheet. getForeground(AttributeSet a)获取一组属性,并将其转换为前景颜色规范。static intHTML. getIntegerAttributeValue(AttributeSet attr, HTML.Attribute key, int def)获取整数属性值。StyleSheet.ListPainterStyleSheet. getListPainter(AttributeSet a)获取列表格式化程序以用于给定的一组CSS属性。protected voidHTMLDocument. insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)更新由于文本插入而导致的文档结构。protected booleanHTMLWriter. isBlockTag(AttributeSet attr)确定与元素关联的HTML.Tag是否是块标记。protected booleanHTMLWriter. matchNameAttribute(AttributeSet attr, HTML.Tag tag)如果StyleConstants.NameAttribute等于作为参数传入的标签,则返回true。AttributeSetStyleSheet. removeAttribute(AttributeSet old, Object key)从集合中删除属性。AttributeSetStyleSheet. removeAttributes(AttributeSet old, Enumeration<?> names)删除元素的一组属性。AttributeSetStyleSheet. removeAttributes(AttributeSet old, AttributeSet attrs)删除一组属性。protected voidHTMLWriter. selectContent(AttributeSet attr)写出SELECT表单元素的内容。voidHTMLDocument. setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)设置段落的属性。protected voidHTMLWriter. textAreaContent(AttributeSet attr)写出TEXTAREA表单元素中包含的文本。AttributeSetStyleSheet. translateHTMLToCSS(AttributeSet htmlAttrSet)将一组HTML属性转换为等效的CSS属性集。protected voidHTMLWriter. writeAttributes(AttributeSet attr)写出属性集。protected voidMinimalHTMLWriter. writeAttributes(AttributeSet attr)写出以下类型的所有属性:StyleConstants.ParagraphConstants,StyleConstants.CharacterConstants,StyleConstants.FontConstants,StyleConstants.ColorConstants。protected voidHTMLWriter. writeEmbeddedTags(AttributeSet attr)在AttributeSet中搜索嵌入式标签并将其写入。protected voidMinimalHTMLWriter. writeHTMLTags(AttributeSet attr)根据其属性设置为文本生成粗体<b>,斜体<i>和<u>标签。protected voidMinimalHTMLWriter. writeNonHTMLAttributes(AttributeSet attr)以符合HTML的方式写出剩余的字符级属性(粗体,斜体和下划线之外的属性)。Constructors in javax.swing.text.html with parameters of type AttributeSet Constructor 描述 BlockElement(Element parent, AttributeSet a)构造最初不包含子项的复合元素。Option(AttributeSet attr)创建一个新的Option对象。RunElement(Element parent, AttributeSet a, int offs0, int offs1)构造一个表示文档内容(没有子项)的元素。
-