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 变量和类型 方法 描述 AttributeSetTextComponent.AccessibleAWTTextComponent. getCharacterAttribute(int i)返回给定字符的AttributeSet(在给定索引处)。 -
Uses of AttributeSet in javax.accessibility
Fields in javax.accessibility declared as AttributeSet 变量和类型 字段 描述 AttributeSetAccessibleAttributeSequence. attributes文本属性。Methods in javax.accessibility that return AttributeSet 变量和类型 方法 描述 AttributeSetAccessibleText. getCharacterAttribute(int i)返回给定索引处给定字符的AttributeSet。Methods in javax.accessibility with parameters of type AttributeSet 变量和类型 方法 描述 voidAccessibleEditableText. setAttributes(int startIndex, int endIndex, AttributeSet as)设置两个索引之间的文本属性。Constructors in javax.accessibility with parameters of type AttributeSet 构造器 描述 AccessibleAttributeSequence(int start, int end, AttributeSet attr)使用给定参数构造AccessibleAttributeSequence。 -
Uses of AttributeSet in javax.swing
Methods in javax.swing that return AttributeSet 变量和类型 方法 描述 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 变量和类型 方法 描述 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 变量和类型 接口 描述 interfaceMutableAttributeSet用于可变集合的唯一属性的通用接口。interfaceStyle要与文档中的元素关联的属性集合。Classes in javax.swing.text that implement AttributeSet 变量和类型 类 描述 classAbstractDocument.AbstractElement实现元素的抽象部分。classAbstractDocument.BranchElement实现包含其他元素的复合元素。classAbstractDocument.LeafElement实现直接表示某种内容的元素。protected classDefaultStyledDocument.SectionElement文档的默认根元素...映射包含的段落/行。classSimpleAttributeSet使用哈希表直接实现MutableAttributeSet。classStyleContext.NamedStyle一组属性,通常用于表示字符和段落样式。classStyleContext.SmallAttributeSet此类在数组中包含少量属性。Fields in javax.swing.text declared as AttributeSet 变量和类型 字段 描述 protected AttributeSetDefaultStyledDocument.AttributeUndoableEdit. copyElement包含的AttributeSet的副本。static AttributeSetSimpleAttributeSet. EMPTY空属性集。protected AttributeSetDefaultStyledDocument.AttributeUndoableEdit. newAttributes包含其他条目的AttributeSet必须是不可变的!Methods in javax.swing.text that return AttributeSet 变量和类型 方法 描述 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 变量和类型 方法 描述 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)如果此set定义具有相等值的给定集合中的所有属性,则返回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)在将文本插入指定的Document之前调用。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)在替换指定Document中的文本区域之前调用。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 构造器 描述 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 变量和类型 类 描述 classHTMLDocument.BlockElement表示HTML结构 块的元素。classHTMLDocument.RunElement表示一组文本的元素,该文本具有分配给它的一组HTML字符级属性。Methods in javax.swing.text.html that return AttributeSet 变量和类型 方法 描述 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 变量和类型 方法 描述 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 构造器 描述 BlockElement(Element parent, AttributeSet a)构造一个最初不包含子元素的复合元素。Option(AttributeSet attr)创建一个新的Option对象。RunElement(Element parent, AttributeSet a, int offs0, int offs1)构造一个表示文档内容的元素(没有子元素)。
-