JavaTM 2 Platform
Standard Ed. 6

類別 javax.swing.text.html.CSS.Attribute
的使用

使用 CSS.Attribute 的軟體套件
javax.swing.text.html 提供類別 HTMLEditorKit 和創建 HTML 文本編輯器的支持類別。 
 

javax.swing.text.htmlCSS.Attribute 的使用
 

宣告為 CSS.Attributejavax.swing.text.html 中的欄位
static CSS.Attribute CSS.Attribute.BACKGROUND
           
static CSS.Attribute CSS.Attribute.BACKGROUND_ATTACHMENT
           
static CSS.Attribute CSS.Attribute.BACKGROUND_COLOR
           
static CSS.Attribute CSS.Attribute.BACKGROUND_IMAGE
           
static CSS.Attribute CSS.Attribute.BACKGROUND_POSITION
           
static CSS.Attribute CSS.Attribute.BACKGROUND_REPEAT
           
static CSS.Attribute CSS.Attribute.BORDER
           
static CSS.Attribute CSS.Attribute.BORDER_BOTTOM
           
static CSS.Attribute CSS.Attribute.BORDER_BOTTOM_WIDTH
           
static CSS.Attribute CSS.Attribute.BORDER_COLOR
           
static CSS.Attribute CSS.Attribute.BORDER_LEFT
           
static CSS.Attribute CSS.Attribute.BORDER_LEFT_WIDTH
           
static CSS.Attribute CSS.Attribute.BORDER_RIGHT
           
static CSS.Attribute CSS.Attribute.BORDER_RIGHT_WIDTH
           
static CSS.Attribute CSS.Attribute.BORDER_STYLE
           
static CSS.Attribute CSS.Attribute.BORDER_TOP
           
static CSS.Attribute CSS.Attribute.BORDER_TOP_WIDTH
           
static CSS.Attribute CSS.Attribute.BORDER_WIDTH
           
static CSS.Attribute CSS.Attribute.CLEAR
           
static CSS.Attribute CSS.Attribute.COLOR
           
static CSS.Attribute CSS.Attribute.DISPLAY
           
static CSS.Attribute CSS.Attribute.FLOAT
           
static CSS.Attribute CSS.Attribute.FONT
           
static CSS.Attribute CSS.Attribute.FONT_FAMILY
           
static CSS.Attribute CSS.Attribute.FONT_SIZE
           
static CSS.Attribute CSS.Attribute.FONT_STYLE
           
static CSS.Attribute CSS.Attribute.FONT_VARIANT
           
static CSS.Attribute CSS.Attribute.FONT_WEIGHT
           
static CSS.Attribute CSS.Attribute.HEIGHT
           
static CSS.Attribute CSS.Attribute.LETTER_SPACING
           
static CSS.Attribute CSS.Attribute.LINE_HEIGHT
           
static CSS.Attribute CSS.Attribute.LIST_STYLE
           
static CSS.Attribute CSS.Attribute.LIST_STYLE_IMAGE
           
static CSS.Attribute CSS.Attribute.LIST_STYLE_POSITION
           
static CSS.Attribute CSS.Attribute.LIST_STYLE_TYPE
           
static CSS.Attribute CSS.Attribute.MARGIN
           
static CSS.Attribute CSS.Attribute.MARGIN_BOTTOM
           
static CSS.Attribute CSS.Attribute.MARGIN_LEFT
           
static CSS.Attribute CSS.Attribute.MARGIN_RIGHT
           
static CSS.Attribute CSS.Attribute.MARGIN_TOP
           
static CSS.Attribute CSS.Attribute.PADDING
           
static CSS.Attribute CSS.Attribute.PADDING_BOTTOM
           
static CSS.Attribute CSS.Attribute.PADDING_LEFT
           
static CSS.Attribute CSS.Attribute.PADDING_RIGHT
           
static CSS.Attribute CSS.Attribute.PADDING_TOP
           
static CSS.Attribute CSS.Attribute.TEXT_ALIGN
           
static CSS.Attribute CSS.Attribute.TEXT_DECORATION
           
static CSS.Attribute CSS.Attribute.TEXT_INDENT
           
static CSS.Attribute CSS.Attribute.TEXT_TRANSFORM
           
static CSS.Attribute CSS.Attribute.VERTICAL_ALIGN
           
static CSS.Attribute CSS.Attribute.WHITE_SPACE
           
static CSS.Attribute CSS.Attribute.WIDTH
           
static CSS.Attribute CSS.Attribute.WORD_SPACING
           
 

返回 CSS.Attributejavax.swing.text.html 中的方法
static CSS.Attribute[] CSS.getAllAttributeKeys()
          返回所有可能的 CSS 屬性鍵集合。
static CSS.Attribute CSS.getAttribute(String name)
          將字元串轉換為 CSS.Attribute 物件。
 

參數型別為 CSS.Attributejavax.swing.text.html 中的方法
 void StyleSheet.addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value)
          將 CSS 屬性添加到給定的集合。
 boolean StyleSheet.addCSSAttributeFromHTML(MutableAttributeSet attr, CSS.Attribute key, String value)
          將 CSS 屬性添加到給定的集合。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only