2004.04.29


com.jdc.gui.html.tag.attr
Class VerticalAlign

java.lang.Object
  |
  +--com.jdc.xml.tag.Attribute
        |
        +--com.jdc.gui.html.tag.Attribute
              |
              +--com.jdc.gui.html.tag.attr.VerticalAlign
All Implemented Interfaces:
MarkupLanguage, Serializable

public final class VerticalAlign
extends Attribute

VerticalAlign is used to create an HTML vertical alignment attribute required by HTML tags implemented as classes like TableColumn. This class is implemented as an enumerated type. It cannot be instantiated.

Version:
1.0
Author:
Jay Damon
See Also:
TableColumn, Serialized Form

Field Summary
static VerticalAlign BASELINE
          The first line of the contents of the cell are aligned with a common baseline
static VerticalAlign BOTTOM
          The contents of the table cells are aligned at the bottom of the cell.
static VerticalAlign MIDDLE
          The contents of table cells are centered vertically in each cell.
static VerticalAlign TOP
          The contents of the table cells are aligned at the top of the cell.
 
Fields inherited from class com.jdc.gui.html.tag.Attribute
SINGLE_QUOTE
 
Fields inherited from class com.jdc.xml.tag.Attribute
DOUBLE_QUOTE, EQUALS
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Method Summary
 String create()
          Create and return the vertical alignment name/value attribute.
 String getValue()
          Return the vertical alignment value.
 
Methods inherited from class com.jdc.gui.html.tag.Attribute
create, create, getName, getQuoteCharacter, getQuotedValue
 
Methods inherited from class com.jdc.xml.tag.Attribute
create, create, create, create, getQualifier, setName, setQualifier, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOP

public static final VerticalAlign TOP
The contents of the table cells are aligned at the top of the cell.


MIDDLE

public static final VerticalAlign MIDDLE
The contents of table cells are centered vertically in each cell.


BOTTOM

public static final VerticalAlign BOTTOM
The contents of the table cells are aligned at the bottom of the cell.


BASELINE

public static final VerticalAlign BASELINE
The first line of the contents of the cell are aligned with a common baseline

Method Detail

create

public String create()
Create and return the vertical alignment name/value attribute.

Overrides:
create in class Attribute
Returns:
An XML tag attribute String.

getValue

public String getValue()
Return the vertical alignment value.

Overrides:
getValue in class Attribute

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.