2004.04.29


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

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

public class Height
extends Attribute

Height is used to create an HTML height attribute that sets the height as a percentage (the default) or in pixels as required by HTML tags implemented in classes like Table and TableColumn.

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

Field Summary
static int MAXIMUM
          The maximum height percentage.
static int MINIMUM
          The minimum height percentage.
static String PERCENT
          The HTML height percentage indicator.
static String PIXELS
          The HTML height pixel indicator.
 
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
 
Constructor Summary
Height()
          Constructs a Height object of the default type (percentage).
Height(String type)
          Constructs a Height object of the specified type.
 
Method Summary
 String create(int value)
          Create and return the height name/value attribute.
 
Methods inherited from class com.jdc.gui.html.tag.Attribute
create, create, getName, getQuoteCharacter, getQuotedValue, getValue
 
Methods inherited from class com.jdc.xml.tag.Attribute
create, 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

MINIMUM

public static final int MINIMUM
The minimum height percentage.

See Also:
Constant Field Values

MAXIMUM

public static final int MAXIMUM
The maximum height percentage.

See Also:
Constant Field Values

PERCENT

public static final String PERCENT
The HTML height percentage indicator.

See Also:
Constant Field Values

PIXELS

public static final String PIXELS
The HTML height pixel indicator.

See Also:
Constant Field Values
Constructor Detail

Height

public Height()
Constructs a Height object of the default type (percentage).


Height

public Height(String type)
Constructs a Height object of the specified type.

Method Detail

create

public String create(int value)
Create and return the height name/value attribute.

Returns:
String Height attribute.

2004.04.29



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