Class CSS.Attribute
java.lang.Object
javax.swing.text.html.CSS.Attribute
- Enclosing class:
CSS
Definitions to be used as a key on AttributeSet's
that might hold CSS attributes. Since this is a
closed set (i.e. defined exactly by the specification),
it is final and cannot be extended.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CSS.Attribute
CSS attribute "background".static final CSS.Attribute
CSS attribute "background-attachment".static final CSS.Attribute
CSS attribute "background-color".static final CSS.Attribute
CSS attribute "background-image".static final CSS.Attribute
CSS attribute "background-position".static final CSS.Attribute
CSS attribute "background-repeat".static final CSS.Attribute
CSS attribute "border".static final CSS.Attribute
CSS attribute "border-bottom".static final CSS.Attribute
CSS attribute "border-bottom-color".static final CSS.Attribute
CSS attribute "border-bottom-style".static final CSS.Attribute
CSS attribute "border-bottom-width".static final CSS.Attribute
CSS attribute "border-color".static final CSS.Attribute
CSS attribute "border-left".static final CSS.Attribute
CSS attribute "margin-right".static final CSS.Attribute
CSS attribute "border-left-style".static final CSS.Attribute
CSS attribute "border-left-width".static final CSS.Attribute
CSS attribute "border-right".static final CSS.Attribute
CSS attribute "border-right-color".static final CSS.Attribute
CSS attribute "border-right-style".static final CSS.Attribute
CSS attribute "border-right-width".static final CSS.Attribute
CSS attribute "border-style".static final CSS.Attribute
CSS attribute "border-top".static final CSS.Attribute
CSS attribute "border-top-color".static final CSS.Attribute
CSS attribute "border-top-style".static final CSS.Attribute
CSS attribute "border-top-width".static final CSS.Attribute
CSS attribute "border-width".static final CSS.Attribute
CSS attribute "clear".static final CSS.Attribute
CSS attribute "color".static final CSS.Attribute
CSS attribute "display".static final CSS.Attribute
CSS attribute "float".static final CSS.Attribute
CSS attribute "font".static final CSS.Attribute
CSS attribute "font-family".static final CSS.Attribute
CSS attribute "font-size".static final CSS.Attribute
CSS attribute "font-style".static final CSS.Attribute
CSS attribute "font-variant".static final CSS.Attribute
CSS attribute "font-weight".static final CSS.Attribute
CSS attribute "height".static final CSS.Attribute
CSS attribute "letter-spacing".static final CSS.Attribute
CSS attribute "line-height".static final CSS.Attribute
CSS attribute "list-style".static final CSS.Attribute
CSS attribute "list-style-image".static final CSS.Attribute
CSS attribute "list-style-position".static final CSS.Attribute
CSS attribute "list-style-type".static final CSS.Attribute
CSS attribute "margin".static final CSS.Attribute
CSS attribute "margin-bottom".static final CSS.Attribute
CSS attribute "margin-left".static final CSS.Attribute
CSS attribute "margin-right".static final CSS.Attribute
CSS attribute "margin-top".static final CSS.Attribute
CSS attribute "padding".static final CSS.Attribute
CSS attribute "padding-bottom".static final CSS.Attribute
CSS attribute "padding-left".static final CSS.Attribute
CSS attribute "padding-right".static final CSS.Attribute
CSS attribute "padding-top".static final CSS.Attribute
CSS attribute "text-align".static final CSS.Attribute
CSS attribute "text-decoration".static final CSS.Attribute
CSS attribute "text-indent".static final CSS.Attribute
CSS attribute "text-transform".static final CSS.Attribute
CSS attribute "vertical-align".static final CSS.Attribute
CSS attribute "white-space".static final CSS.Attribute
CSS attribute "width".static final CSS.Attribute
CSS attribute "word-spacing". -
Method Summary
Modifier and TypeMethodDescriptionFetch the default value for the attribute.boolean
Indicates if the attribute should be inherited from the parent or not.toString()
The string representation of the attribute.
-
Field Details
-
BACKGROUND
CSS attribute "background". -
BACKGROUND_ATTACHMENT
CSS attribute "background-attachment". -
BACKGROUND_COLOR
CSS attribute "background-color". -
BACKGROUND_IMAGE
CSS attribute "background-image". -
BACKGROUND_POSITION
CSS attribute "background-position". -
BACKGROUND_REPEAT
CSS attribute "background-repeat". -
BORDER
CSS attribute "border". -
BORDER_BOTTOM
CSS attribute "border-bottom". -
BORDER_BOTTOM_COLOR
CSS attribute "border-bottom-color". -
BORDER_BOTTOM_STYLE
CSS attribute "border-bottom-style". -
BORDER_BOTTOM_WIDTH
CSS attribute "border-bottom-width". -
BORDER_COLOR
CSS attribute "border-color". -
BORDER_LEFT
CSS attribute "border-left". -
BORDER_LEFT_COLOR
CSS attribute "margin-right". -
BORDER_LEFT_STYLE
CSS attribute "border-left-style". -
BORDER_LEFT_WIDTH
CSS attribute "border-left-width". -
BORDER_RIGHT
CSS attribute "border-right". -
BORDER_RIGHT_COLOR
CSS attribute "border-right-color". -
BORDER_RIGHT_STYLE
CSS attribute "border-right-style". -
BORDER_RIGHT_WIDTH
CSS attribute "border-right-width". -
BORDER_STYLE
CSS attribute "border-style". -
BORDER_TOP
CSS attribute "border-top". -
BORDER_TOP_COLOR
CSS attribute "border-top-color". -
BORDER_TOP_STYLE
CSS attribute "border-top-style". -
BORDER_TOP_WIDTH
CSS attribute "border-top-width". -
BORDER_WIDTH
CSS attribute "border-width". -
CLEAR
CSS attribute "clear". -
COLOR
CSS attribute "color". -
DISPLAY
CSS attribute "display". -
FLOAT
CSS attribute "float". -
FONT
CSS attribute "font". -
FONT_FAMILY
CSS attribute "font-family". -
FONT_SIZE
CSS attribute "font-size". -
FONT_STYLE
CSS attribute "font-style". -
FONT_VARIANT
CSS attribute "font-variant". -
FONT_WEIGHT
CSS attribute "font-weight". -
HEIGHT
CSS attribute "height". -
LETTER_SPACING
CSS attribute "letter-spacing". -
LINE_HEIGHT
CSS attribute "line-height". -
LIST_STYLE
CSS attribute "list-style". -
LIST_STYLE_IMAGE
CSS attribute "list-style-image". -
LIST_STYLE_POSITION
CSS attribute "list-style-position". -
LIST_STYLE_TYPE
CSS attribute "list-style-type". -
MARGIN
CSS attribute "margin". -
MARGIN_BOTTOM
CSS attribute "margin-bottom". -
MARGIN_LEFT
CSS attribute "margin-left". -
MARGIN_RIGHT
CSS attribute "margin-right". -
MARGIN_TOP
CSS attribute "margin-top". -
PADDING
CSS attribute "padding". -
PADDING_BOTTOM
CSS attribute "padding-bottom". -
PADDING_LEFT
CSS attribute "padding-left". -
PADDING_RIGHT
CSS attribute "padding-right". -
PADDING_TOP
CSS attribute "padding-top". -
TEXT_ALIGN
CSS attribute "text-align". -
TEXT_DECORATION
CSS attribute "text-decoration". -
TEXT_INDENT
CSS attribute "text-indent". -
TEXT_TRANSFORM
CSS attribute "text-transform". -
VERTICAL_ALIGN
CSS attribute "vertical-align". -
WORD_SPACING
CSS attribute "word-spacing". -
WHITE_SPACE
CSS attribute "white-space". -
WIDTH
CSS attribute "width".
-
-
Method Details
-
toString
-
getDefaultValue
Fetch the default value for the attribute. If there is no default value (such as for composite attributes), null will be returned.- Returns:
- default value for the attribute
-
isInherited
public boolean isInherited()Indicates if the attribute should be inherited from the parent or not.- Returns:
- true if the attribute should be inherited from the parent
-