javax.swing.text.html

Class CSS.Attribute

Enclosing Class:
CSS

public static final class CSS.Attribute
extends Object

Field Summary

static CSS.Attribute
BACKGROUND
The CSS attribute 'background'.
static CSS.Attribute
BACKGROUND_ATTACHMENT
The CSS attribute 'background-attachment'.
static CSS.Attribute
BACKGROUND_COLOR
The CSS attribute 'background-color'.
static CSS.Attribute
BACKGROUND_IMAGE
The CSS attribute 'background-image'.
static CSS.Attribute
BACKGROUND_POSITION
The CSS attribute 'background-position'.
static CSS.Attribute
BACKGROUND_REPEAT
The CSS attribute 'background-repeat'.
static CSS.Attribute
BORDER
The CSS attribute 'border'.
static CSS.Attribute
BORDER_BOTTOM
The CSS attribute 'border-bottom'.
static CSS.Attribute
BORDER_BOTTOM_WIDTH
The CSS attribute 'border-bottom-width'.
static CSS.Attribute
BORDER_COLOR
The CSS attribute 'border-color'.
static CSS.Attribute
BORDER_LEFT
The CSS attribute 'border-left'.
static CSS.Attribute
BORDER_LEFT_WIDTH
The CSS attribute 'border-left-width'.
static CSS.Attribute
BORDER_RIGHT
The CSS attribute 'border-right'.
static CSS.Attribute
BORDER_RIGHT_WIDTH
The CSS attribute 'border-right-width'.
static CSS.Attribute
BORDER_STYLE
The CSS attribute 'border-style'.
static CSS.Attribute
BORDER_TOP
The CSS attribute 'border-top'.
static CSS.Attribute
BORDER_TOP_WIDTH
The CSS attribute 'border-top-width'.
static CSS.Attribute
BORDER_WIDTH
The CSS attribute 'border-width'.
static CSS.Attribute
CLEAR
The CSS attribute 'clear'.
static CSS.Attribute
COLOR
The CSS attribute 'color'.
static CSS.Attribute
DISPLAY
The CSS attribute 'display'.
static CSS.Attribute
FLOAT
The CSS attribute 'float'.
static CSS.Attribute
FONT
The CSS attribute 'font'.
static CSS.Attribute
FONT_FAMILY
The CSS attribute 'font-family'.
static CSS.Attribute
FONT_SIZE
The CSS attribute 'font-size'.
static CSS.Attribute
FONT_STYLE
The CSS attribute 'font-style'.
static CSS.Attribute
FONT_VARIANT
The CSS attribute 'font-variant'.
static CSS.Attribute
FONT_WEIGHT
The CSS attribute 'font-weight'.
static CSS.Attribute
HEIGHT
The CSS attribute 'height'.
static CSS.Attribute
LETTER_SPACING
The CSS attribute 'letter-spacing'.
static CSS.Attribute
LINE_HEIGHT
The CSS attribute 'line-height'.
static CSS.Attribute
LIST_STYLE
The CSS attribute 'list-style'.
static CSS.Attribute
LIST_STYLE_IMAGE
The CSS attribute 'list-style-image'.
static CSS.Attribute
LIST_STYLE_POSITION
The CSS attribute 'list-style-position'.
static CSS.Attribute
LIST_STYLE_TYPE
The CSS attribute 'list-style-type'.
static CSS.Attribute
MARGIN
The CSS attribute 'margin'.
static CSS.Attribute
MARGIN_BOTTOM
The CSS attribute 'margin-bottom'.
static CSS.Attribute
MARGIN_LEFT
The CSS attribute 'margin-left'.
static CSS.Attribute
MARGIN_RIGHT
The CSS attribute 'margin-right'.
static CSS.Attribute
MARGIN_TOP
The CSS attribute 'margin-top'.
static CSS.Attribute
PADDING
The CSS attribute 'padding'.
static CSS.Attribute
PADDING_BOTTOM
The CSS attribute 'padding-bottom'.
static CSS.Attribute
PADDING_LEFT
The CSS attribute 'padding-left'.
static CSS.Attribute
PADDING_RIGHT
The CSS attribute 'padding-right'.
static CSS.Attribute
PADDING_TOP
The CSS attribute 'padding-top'.
static CSS.Attribute
TEXT_ALIGN
The CSS attribute 'text-align'.
static CSS.Attribute
TEXT_DECORATION
The CSS attribute 'text-decoration'.
static CSS.Attribute
TEXT_INDENT
The CSS attribute 'text-indent'.
static CSS.Attribute
TEXT_TRANSFORM
The CSS attribute 'text-transform'.
static CSS.Attribute
VERTICAL_ALIGN
The CSS attribute 'vertical-align'.
static CSS.Attribute
WHITE_SPACE
The CSS attribute 'white-space'.
static CSS.Attribute
WIDTH
The CSS attribute 'width'.
static CSS.Attribute
WORD_SPACING
The CSS attribute 'word-spacing'.

Method Summary

String
getDefaultValue()
Returns the default value of this attribute if one exists, null otherwise.
boolean
isInherited()
Returns true if the attribute should be inherited from the parent, false otherwise.
String
toString()
Returns the string representation of this attribute as specified in the CSS specification.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

BACKGROUND

public static final CSS.Attribute BACKGROUND
The CSS attribute 'background'.

BACKGROUND_ATTACHMENT

public static final CSS.Attribute BACKGROUND_ATTACHMENT
The CSS attribute 'background-attachment'.

BACKGROUND_COLOR

public static final CSS.Attribute BACKGROUND_COLOR
The CSS attribute 'background-color'.

BACKGROUND_IMAGE

public static final CSS.Attribute BACKGROUND_IMAGE
The CSS attribute 'background-image'.

BACKGROUND_POSITION

public static final CSS.Attribute BACKGROUND_POSITION
The CSS attribute 'background-position'.

BACKGROUND_REPEAT

public static final CSS.Attribute BACKGROUND_REPEAT
The CSS attribute 'background-repeat'.

BORDER

public static final CSS.Attribute BORDER
The CSS attribute 'border'.

BORDER_BOTTOM

public static final CSS.Attribute BORDER_BOTTOM
The CSS attribute 'border-bottom'.

BORDER_BOTTOM_WIDTH

public static final CSS.Attribute BORDER_BOTTOM_WIDTH
The CSS attribute 'border-bottom-width'.

BORDER_COLOR

public static final CSS.Attribute BORDER_COLOR
The CSS attribute 'border-color'.

BORDER_LEFT

public static final CSS.Attribute BORDER_LEFT
The CSS attribute 'border-left'.

BORDER_LEFT_WIDTH

public static final CSS.Attribute BORDER_LEFT_WIDTH
The CSS attribute 'border-left-width'.

BORDER_RIGHT

public static final CSS.Attribute BORDER_RIGHT
The CSS attribute 'border-right'.

BORDER_RIGHT_WIDTH

public static final CSS.Attribute BORDER_RIGHT_WIDTH
The CSS attribute 'border-right-width'.

BORDER_STYLE

public static final CSS.Attribute BORDER_STYLE
The CSS attribute 'border-style'.

BORDER_TOP

public static final CSS.Attribute BORDER_TOP
The CSS attribute 'border-top'.

BORDER_TOP_WIDTH

public static final CSS.Attribute BORDER_TOP_WIDTH
The CSS attribute 'border-top-width'.

BORDER_WIDTH

public static final CSS.Attribute BORDER_WIDTH
The CSS attribute 'border-width'.

CLEAR

public static final CSS.Attribute CLEAR
The CSS attribute 'clear'.

COLOR

public static final CSS.Attribute COLOR
The CSS attribute 'color'.

DISPLAY

public static final CSS.Attribute DISPLAY
The CSS attribute 'display'.

FLOAT

public static final CSS.Attribute FLOAT
The CSS attribute 'float'.

FONT

public static final CSS.Attribute FONT
The CSS attribute 'font'.

FONT_FAMILY

public static final CSS.Attribute FONT_FAMILY
The CSS attribute 'font-family'.

FONT_SIZE

public static final CSS.Attribute FONT_SIZE
The CSS attribute 'font-size'.

FONT_STYLE

public static final CSS.Attribute FONT_STYLE
The CSS attribute 'font-style'.

FONT_VARIANT

public static final CSS.Attribute FONT_VARIANT
The CSS attribute 'font-variant'.

FONT_WEIGHT

public static final CSS.Attribute FONT_WEIGHT
The CSS attribute 'font-weight'.

HEIGHT

public static final CSS.Attribute HEIGHT
The CSS attribute 'height'.

LETTER_SPACING

public static final CSS.Attribute LETTER_SPACING
The CSS attribute 'letter-spacing'.

LINE_HEIGHT

public static final CSS.Attribute LINE_HEIGHT
The CSS attribute 'line-height'.

LIST_STYLE

public static final CSS.Attribute LIST_STYLE
The CSS attribute 'list-style'.

LIST_STYLE_IMAGE

public static final CSS.Attribute LIST_STYLE_IMAGE
The CSS attribute 'list-style-image'.

LIST_STYLE_POSITION

public static final CSS.Attribute LIST_STYLE_POSITION
The CSS attribute 'list-style-position'.

LIST_STYLE_TYPE

public static final CSS.Attribute LIST_STYLE_TYPE
The CSS attribute 'list-style-type'.

MARGIN

public static final CSS.Attribute MARGIN
The CSS attribute 'margin'.

MARGIN_BOTTOM

public static final CSS.Attribute MARGIN_BOTTOM
The CSS attribute 'margin-bottom'.

MARGIN_LEFT

public static final CSS.Attribute MARGIN_LEFT
The CSS attribute 'margin-left'.

MARGIN_RIGHT

public static final CSS.Attribute MARGIN_RIGHT
The CSS attribute 'margin-right'.

MARGIN_TOP

public static final CSS.Attribute MARGIN_TOP
The CSS attribute 'margin-top'.

PADDING

public static final CSS.Attribute PADDING
The CSS attribute 'padding'.

PADDING_BOTTOM

public static final CSS.Attribute PADDING_BOTTOM
The CSS attribute 'padding-bottom'.

PADDING_LEFT

public static final CSS.Attribute PADDING_LEFT
The CSS attribute 'padding-left'.

PADDING_RIGHT

public static final CSS.Attribute PADDING_RIGHT
The CSS attribute 'padding-right'.

PADDING_TOP

public static final CSS.Attribute PADDING_TOP
The CSS attribute 'padding-top'.

TEXT_ALIGN

public static final CSS.Attribute TEXT_ALIGN
The CSS attribute 'text-align'.

TEXT_DECORATION

public static final CSS.Attribute TEXT_DECORATION
The CSS attribute 'text-decoration'.

TEXT_INDENT

public static final CSS.Attribute TEXT_INDENT
The CSS attribute 'text-indent'.

TEXT_TRANSFORM

public static final CSS.Attribute TEXT_TRANSFORM
The CSS attribute 'text-transform'.

VERTICAL_ALIGN

public static final CSS.Attribute VERTICAL_ALIGN
The CSS attribute 'vertical-align'.

WHITE_SPACE

public static final CSS.Attribute WHITE_SPACE
The CSS attribute 'white-space'.

WIDTH

public static final CSS.Attribute WIDTH
The CSS attribute 'width'.

WORD_SPACING

public static final CSS.Attribute WORD_SPACING
The CSS attribute 'word-spacing'.

Method Details

getDefaultValue

public String getDefaultValue()
Returns the default value of this attribute if one exists, null otherwise.
Returns:
the default value of this attribute if one exists, null otherwise

isInherited

public boolean isInherited()
Returns true if the attribute should be inherited from the parent, false otherwise.
Returns:
true if the attribute should be inherited from the parent, false otherwise

toString

public String toString()
Returns the string representation of this attribute as specified in the CSS specification.
Overrides:
toString in interface Object

CSS.java -- Provides CSS attributes Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.