2004.04.29


com.jdc.gui.html
Class ComplexTag

java.lang.Object
  |
  +--com.jdc.xml.ComplexTag
        |
        +--com.jdc.gui.html.ComplexTag
All Implemented Interfaces:
MarkupLanguage, Serializable
Direct Known Subclasses:
Anchor, Body, EventTag, Font, Head, Html, Image, Input, Option, Select, Span, Table, TableColumn, TableRow, Textarea, Title

public abstract class ComplexTag
extends ComplexTag
implements MarkupLanguage

ComplexTag is a abstract class that contains methods common to all complex HTML tags, i.e. HTML tags that require both a start and end tag.

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

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
ComplexTag()
          ComplexTag constructor.
ComplexTag(boolean format)
          ComplexTag constructor.
 
Method Summary
protected  ComplexTag addAttribute(String attribute)
          Adds an HTML tag attribute String of the form: name="value".
protected  String create(String startTag, String tagBody)
          Return the HTML required to create a tag object in a browser.
protected  String create(String startTag, String tagBody, String endTag)
          Return the HTML required to create a tag object in a browser.
protected  String endTag(String identifier)
          Returns an HTML end tag for the specified identifier.
protected  void setFormat(boolean format)
          Set tag format status.
protected  ComplexTag setIdentifier(String identifier)
          Sets the HTML tag identifier.
protected  String startTag(String identifier)
          Returns an HTML start tag for the specified identifier.
 
Methods inherited from class com.jdc.xml.ComplexTag
addAttribute, create, create, endTag, getAttributes, getBody, getIdentifier, setBody, startTag, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexTag

public ComplexTag()
ComplexTag constructor.


ComplexTag

public ComplexTag(boolean format)
ComplexTag constructor.

Method Detail

addAttribute

protected ComplexTag addAttribute(String attribute)
Adds an HTML tag attribute String of the form: name="value".

Returns:
This HTML tag.

create

protected String create(String startTag,
                        String tagBody,
                        String endTag)
Return the HTML required to create a tag object in a browser.

Returns:
String Tag object.

create

protected String create(String startTag,
                        String tagBody)
Return the HTML required to create a tag object in a browser.

Returns:
String Tag object.

startTag

protected String startTag(String identifier)
Returns an HTML start tag for the specified identifier.

Returns:
An HTML start tag.

endTag

protected String endTag(String identifier)
Returns an HTML end tag for the specified identifier.

Returns:
An HTML end tag.

setFormat

protected void setFormat(boolean format)
Set tag format status.


setIdentifier

protected ComplexTag setIdentifier(String identifier)
Sets the HTML tag identifier.

Overrides:
setIdentifier in class ComplexTag
Returns:
This HTML tag.

2004.04.29



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