|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.html.Element
public abstract class Element
HTML Element.
This abstract class is the base for all HTML Elements. The feature of an abstract HTML Element is that it can be added to HTML Pages, HTML Composites and several other HTML Elements derivations. Elements may also have attributes set, which are handled by the derived Element.
Page
,
Composite
Field Summary | |
---|---|
static String |
ALIGN
Deprecated. |
protected Hashtable |
attributeMap
Deprecated. |
static String |
BGCOLOR
Deprecated. |
static String |
BOTTOM
Deprecated. |
static String |
CENTER
Deprecated. |
static String |
CLASS
Deprecated. |
static String |
COLOR
Deprecated. |
static String |
HEIGHT
Deprecated. |
static String |
ID
Deprecated. |
static String |
LEFT
Deprecated. |
static String |
MIDDLE
Deprecated. |
static String |
noAttributes
Deprecated. |
static String |
RIGHT
Deprecated. |
static String |
SIZE
Deprecated. |
static String |
STYLE
Deprecated. |
static String |
TOP
Deprecated. |
static String |
VALIGN
Deprecated. |
static String |
WIDTH
Deprecated. |
Constructor Summary | |
---|---|
Element()
Deprecated. Default constructor. |
|
Element(String attributes)
Deprecated. Construct with attributes. |
Method Summary | |
---|---|
Element |
attribute(String attributes)
Deprecated. Add element Attributes. |
Element |
attribute(String attribute,
long value)
Deprecated. Add quoted element Attributes and value. |
Element |
attribute(String attribute,
Object value)
Deprecated. Add quoted element Attributes and value. |
String |
attributes()
Deprecated. |
Element |
attributes(String attributes)
Deprecated. Use attribute(String). |
Element |
bgColor(String color)
Deprecated. set BGCOLOR. |
Element |
bottom()
Deprecated. Bottom align. |
Element |
center()
Deprecated. Center. |
Element |
color(String color)
Deprecated. set color. |
Element |
cssClass(String c)
Deprecated. set CSS CLASS. |
Element |
cssID(String id)
Deprecated. set CSS ID. |
int |
height()
Deprecated. |
Element |
height(int h)
Deprecated. set height. |
Element |
height(String h)
Deprecated. set height. |
Element |
left()
Deprecated. left justify. |
Element |
middle()
Deprecated. Middle align. |
Element |
right()
Deprecated. right justify. |
Element |
setAttributesFrom(Element e)
Deprecated. Set attributes from another Element. |
int |
size()
Deprecated. |
Element |
size(int s)
Deprecated. set size. |
Element |
size(String s)
Deprecated. set size. |
Element |
style(String style)
Deprecated. set Style. |
Element |
top()
Deprecated. Top align. |
String |
toString()
Deprecated. Convert Element to String. |
int |
width()
Deprecated. |
Element |
width(int w)
Deprecated. set width. |
Element |
width(String w)
Deprecated. set width. |
void |
write(OutputStream out)
Deprecated. Write Element to an OutputStream. |
void |
write(OutputStream out,
String encoding)
Deprecated. Write Element to an OutputStream. |
abstract void |
write(Writer out)
Deprecated. Write element to a Writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String noAttributes
public static final String ALIGN
public static final String LEFT
public static final String RIGHT
public static final String CENTER
public static final String VALIGN
public static final String TOP
public static final String BOTTOM
public static final String MIDDLE
public static final String WIDTH
public static final String HEIGHT
public static final String SIZE
public static final String COLOR
public static final String BGCOLOR
public static final String STYLE
public static final String CLASS
public static final String ID
protected Hashtable attributeMap
Constructor Detail |
---|
public Element()
public Element(String attributes)
attributes
- The initial attributes of the elementMethod Detail |
---|
public abstract void write(Writer out) throws IOException
out
- Writer to write the element to.
IOException
public void write(OutputStream out) throws IOException
out
- OutputStream to write the element to.
IOException
public void write(OutputStream out, String encoding) throws IOException
out
- OutputStream to write the element to.
IOException
public String attributes()
public Element attributes(String attributes)
attributes
- String of HTML attributes to add to the element.
public Element setAttributesFrom(Element e)
e
- Element
public Element attribute(String attributes)
attributes
- String of HTML attributes to add to the element.
A null attribute clears the current attributes.
public Element attribute(String attribute, Object value)
attribute
- String of HTML attribute tagvalue
- String value of the attribute to be quoted
public Element attribute(String attribute, long value)
attribute
- String of HTML attribute tagvalue
- String value of the attribute to be quoted
public String toString()
toString
in class Object
public Element left()
public Element right()
public Element center()
public Element top()
public Element bottom()
public Element middle()
public Element width(int w)
public Element width(String w)
public int width()
public Element height(int h)
public Element height(String h)
public int height()
public Element size(int s)
public Element size(String s)
public int size()
public Element color(String color)
public Element bgColor(String color)
public Element cssClass(String c)
public Element cssID(String id)
public Element style(String style)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |