javax.swing.text.html

Class HTML.Attribute

Enclosing Class:
HTML
Implemented Interfaces:
Serializable

public static class HTML.Attribute
extends Object
implements Serializable

Represents a HTML attribute.

See Also:
Serialized Form

Field Summary

static HTML.Attribute
ACTION
The action attribute
static HTML.Attribute
ALIGN
The align attribute
static HTML.Attribute
ALINK
The alink attribute
static HTML.Attribute
ALT
The alt attribute
static HTML.Attribute
ARCHIVE
The archive attribute
static HTML.Attribute
BACKGROUND
The background attribute
static HTML.Attribute
BGCOLOR
The bgcolor attribute
static HTML.Attribute
BORDER
The border attribute
static HTML.Attribute
CELLPADDING
The cellpadding attribute
static HTML.Attribute
CELLSPACING
The cellspacing attribute
static HTML.Attribute
CHECKED
The checked attribute
static HTML.Attribute
CLASS
The class attribute
static HTML.Attribute
CLASSID
The classid attribute
static HTML.Attribute
CLEAR
The clear attribute
static HTML.Attribute
CODE
The code attribute
static HTML.Attribute
CODEBASE
The codebase attribute
static HTML.Attribute
CODETYPE
The codetype attribute
static HTML.Attribute
COLOR
The color attribute
static HTML.Attribute
COLS
The cols attribute
static HTML.Attribute
COLSPAN
The colspan attribute
static HTML.Attribute
COMMENT
The comment attribute
static HTML.Attribute
COMPACT
The compact attribute
static HTML.Attribute
CONTENT
The content attribute
static HTML.Attribute
COORDS
The coords attribute
static HTML.Attribute
DATA
The data attribute
static HTML.Attribute
DECLARE
The declare attribute
static HTML.Attribute
DIR
The dir attribute
static HTML.Attribute
DUMMY
The dummy attribute
static HTML.Attribute
ENCTYPE
The enctype attribute
static HTML.Attribute
ENDTAG
The endtag attribute
static HTML.Attribute
FACE
The face attribute
static HTML.Attribute
FRAMEBORDER
The frameborder attribute
static HTML.Attribute
HALIGN
The halign attribute
static HTML.Attribute
HEIGHT
The height attribute
static HTML.Attribute
HREF
The href attribute
static HTML.Attribute
HSPACE
The hspace attribute
static HTML.Attribute
HTTPEQUIV
The http-equiv attribute
static HTML.Attribute
ID
The id attribute
static HTML.Attribute
ISMAP
The ismap attribute
static HTML.Attribute
LANG
The lang attribute
static HTML.Attribute
LANGUAGE
The language attribute
static HTML.Attribute
LINK
The link attribute
static HTML.Attribute
LOWSRC
The lowsrc attribute
static HTML.Attribute
MARGINHEIGHT
The marginheight attribute
static HTML.Attribute
MARGINWIDTH
The marginwidth attribute
static HTML.Attribute
MAXLENGTH
The maxlength attribute
static HTML.Attribute
MEDIA
The media attribute
static HTML.Attribute
METHOD
The method attribute
static HTML.Attribute
MULTIPLE
The multiple attribute
static HTML.Attribute
N
The n attribute
static HTML.Attribute
NAME
The name attribute
static HTML.Attribute
NOHREF
The nohref attribute
static HTML.Attribute
NORESIZE
The noresize attribute
static HTML.Attribute
NOSHADE
The noshade attribute
static HTML.Attribute
NOWRAP
The nowrap attribute
static HTML.Attribute
PROMPT
The prompt attribute
static HTML.Attribute
REL
The rel attribute
static HTML.Attribute
REV
The rev attribute
static HTML.Attribute
ROWS
The rows attribute
static HTML.Attribute
ROWSPAN
The rowspan attribute
static HTML.Attribute
SCROLLING
The scrolling attribute
static HTML.Attribute
SELECTED
The selected attribute
static HTML.Attribute
SHAPE
The shape attribute
static HTML.Attribute
SHAPES
The shapes attribute
static HTML.Attribute
SIZE
The size attribute
static HTML.Attribute
SRC
The src attribute
static HTML.Attribute
STANDBY
The standby attribute
static HTML.Attribute
START
The start attribute
static HTML.Attribute
STYLE
The style attribute
static HTML.Attribute
TARGET
The target attribute
static HTML.Attribute
TEXT
The text attribute
static HTML.Attribute
TITLE
The title attribute
static HTML.Attribute
TYPE
The type attribute
static HTML.Attribute
USEMAP
The usemap attribute
static HTML.Attribute
VALIGN
The valign attribute
static HTML.Attribute
VALUE
The value attribute
static HTML.Attribute
VALUETYPE
The valuetype attribute
static HTML.Attribute
VERSION
The version attribute
static HTML.Attribute
VLINK
The vlink attribute
static HTML.Attribute
VSPACE
The vspace attribute
static HTML.Attribute
WIDTH
The width attribute

Constructor Summary

Attribute(String a_name)
Creates the attribute with the given name.

Method Summary

int
compareTo(Object other)
Calls compareTo on the tag names (Strings)
boolean
equals(Object other)
The attributes are equal if the names are equal (ignoring case)
int
hashCode()
Returns the hash code which corresponds to the string for this tag.
String
toString()
Returns the attribute name.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

ACTION

public static final HTML.Attribute ACTION
The action attribute


ALIGN

public static final HTML.Attribute ALIGN
The align attribute


ALINK

public static final HTML.Attribute ALINK
The alink attribute


ALT

public static final HTML.Attribute ALT
The alt attribute


ARCHIVE

public static final HTML.Attribute ARCHIVE
The archive attribute


BACKGROUND

public static final HTML.Attribute BACKGROUND
The background attribute


BGCOLOR

public static final HTML.Attribute BGCOLOR
The bgcolor attribute


BORDER

public static final HTML.Attribute BORDER
The border attribute


CELLPADDING

public static final HTML.Attribute CELLPADDING
The cellpadding attribute


CELLSPACING

public static final HTML.Attribute CELLSPACING
The cellspacing attribute


CHECKED

public static final HTML.Attribute CHECKED
The checked attribute


CLASS

public static final HTML.Attribute CLASS
The class attribute


CLASSID

public static final HTML.Attribute CLASSID
The classid attribute


CLEAR

public static final HTML.Attribute CLEAR
The clear attribute


CODE

public static final HTML.Attribute CODE
The code attribute


CODEBASE

public static final HTML.Attribute CODEBASE
The codebase attribute


CODETYPE

public static final HTML.Attribute CODETYPE
The codetype attribute


COLOR

public static final HTML.Attribute COLOR
The color attribute


COLS

public static final HTML.Attribute COLS
The cols attribute


COLSPAN

public static final HTML.Attribute COLSPAN
The colspan attribute


COMMENT

public static final HTML.Attribute COMMENT
The comment attribute


COMPACT

public static final HTML.Attribute COMPACT
The compact attribute


CONTENT

public static final HTML.Attribute CONTENT
The content attribute


COORDS

public static final HTML.Attribute COORDS
The coords attribute


DATA

public static final HTML.Attribute DATA
The data attribute


DECLARE

public static final HTML.Attribute DECLARE
The declare attribute


DIR

public static final HTML.Attribute DIR
The dir attribute


DUMMY

public static final HTML.Attribute DUMMY
The dummy attribute


ENCTYPE

public static final HTML.Attribute ENCTYPE
The enctype attribute


ENDTAG

public static final HTML.Attribute ENDTAG
The endtag attribute


FACE

public static final HTML.Attribute FACE
The face attribute


FRAMEBORDER

public static final HTML.Attribute FRAMEBORDER
The frameborder attribute


HALIGN

public static final HTML.Attribute HALIGN
The halign attribute


HEIGHT

public static final HTML.Attribute HEIGHT
The height attribute


HREF

public static final HTML.Attribute HREF
The href attribute


HSPACE

public static final HTML.Attribute HSPACE
The hspace attribute


HTTPEQUIV

public static final HTML.Attribute HTTPEQUIV
The http-equiv attribute


ID

public static final HTML.Attribute ID
The id attribute


ISMAP

public static final HTML.Attribute ISMAP
The ismap attribute


LANG

public static final HTML.Attribute LANG
The lang attribute


LANGUAGE

public static final HTML.Attribute LANGUAGE
The language attribute


LINK

public static final HTML.Attribute LINK
The link attribute


LOWSRC

public static final HTML.Attribute LOWSRC
The lowsrc attribute


MARGINHEIGHT

public static final HTML.Attribute MARGINHEIGHT
The marginheight attribute


MARGINWIDTH

public static final HTML.Attribute MARGINWIDTH
The marginwidth attribute


MAXLENGTH

public static final HTML.Attribute MAXLENGTH
The maxlength attribute


MEDIA

public static final HTML.Attribute MEDIA
The media attribute


METHOD

public static final HTML.Attribute METHOD
The method attribute


MULTIPLE

public static final HTML.Attribute MULTIPLE
The multiple attribute


N

public static final HTML.Attribute N
The n attribute


NAME

public static final HTML.Attribute NAME
The name attribute


NOHREF

public static final HTML.Attribute NOHREF
The nohref attribute


NORESIZE

public static final HTML.Attribute NORESIZE
The noresize attribute


NOSHADE

public static final HTML.Attribute NOSHADE
The noshade attribute


NOWRAP

public static final HTML.Attribute NOWRAP
The nowrap attribute


PROMPT

public static final HTML.Attribute PROMPT
The prompt attribute


REL

public static final HTML.Attribute REL
The rel attribute


REV

public static final HTML.Attribute REV
The rev attribute


ROWS

public static final HTML.Attribute ROWS
The rows attribute


ROWSPAN

public static final HTML.Attribute ROWSPAN
The rowspan attribute


SCROLLING

public static final HTML.Attribute SCROLLING
The scrolling attribute


SELECTED

public static final HTML.Attribute SELECTED
The selected attribute


SHAPE

public static final HTML.Attribute SHAPE
The shape attribute


SHAPES

public static final HTML.Attribute SHAPES
The shapes attribute


SIZE

public static final HTML.Attribute SIZE
The size attribute


SRC

public static final HTML.Attribute SRC
The src attribute


STANDBY

public static final HTML.Attribute STANDBY
The standby attribute


START

public static final HTML.Attribute START
The start attribute


STYLE

public static final HTML.Attribute STYLE
The style attribute


TARGET

public static final HTML.Attribute TARGET
The target attribute


TEXT

public static final HTML.Attribute TEXT
The text attribute


TITLE

public static final HTML.Attribute TITLE
The title attribute


TYPE

public static final HTML.Attribute TYPE
The type attribute


USEMAP

public static final HTML.Attribute USEMAP
The usemap attribute


VALIGN

public static final HTML.Attribute VALIGN
The valign attribute


VALUE

public static final HTML.Attribute VALUE
The value attribute


VALUETYPE

public static final HTML.Attribute VALUETYPE
The valuetype attribute


VERSION

public static final HTML.Attribute VERSION
The version attribute


VLINK

public static final HTML.Attribute VLINK
The vlink attribute


VSPACE

public static final HTML.Attribute VSPACE
The vspace attribute


WIDTH

public static final HTML.Attribute WIDTH
The width attribute

Constructor Details

Attribute

protected Attribute(String a_name)
Creates the attribute with the given name.

Method Details

compareTo

public int compareTo(Object other)
Calls compareTo on the tag names (Strings)


equals

public boolean equals(Object other)
The attributes are equal if the names are equal (ignoring case)
Overrides:
equals in interface Object


hashCode

public int hashCode()
Returns the hash code which corresponds to the string for this tag.
Overrides:
hashCode in interface Object


toString

public String toString()
Returns the attribute name. The names of the built-in attributes are always returned in lowercase.
Overrides:
toString in interface Object


HTML.java -- HTML document tag constants Copyright (C) 2002 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.