2004.04.29


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

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

public class Width
extends Attribute

Width is used to create an HTML width attribute that sets the width 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 width percentage.
static int MINIMUM
          The minimum width percentage.
static String PERCENT
          The HTML width percentage indicator.
static String PIXELS
          The HTML width 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
Width()
          Constructs a Width object of the default type (percentage).
Width(String type)
          Constructs a Width object of the specified type.
 
Method Summary
 String create(int value)
          Create and return the width 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 width percentage.

See Also:
Constant Field Values

MAXIMUM

public static final int MAXIMUM
The maximum width percentage.

See Also:
Constant Field Values

PERCENT

public static final String PERCENT
The HTML width percentage indicator.

See Also:
Constant Field Values

PIXELS

public static final String PIXELS
The HTML width pixel indicator.

See Also:
Constant Field Values
Constructor Detail

Width

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


Width

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

Method Detail

create

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

Returns:
String Width attribute.

2004.04.29



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