2004.04.29


com.jdc.gui.html.tag
Class Span

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

public class Span
extends ComplexTag

Span is used to create the HTML required to create a structure within a document in a browser, including the start tag, the span attributes, and the end tag. By creating a structure, styles can be applied to all elements contained in the structure.

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

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Span()
          Constructs a Span object.
Span(boolean format)
          Constructs a Span object and sets the format status.
 
Method Summary
 String create(String text)
          Create and return the HTML required to create a structure within a document in a browser.
 String endTag()
          Return an span end tag.
 Span setClass(String classname)
          Set the span tag Class name.
 Span setId(String id)
          Set the span tag id.
 Span setTitle(String text)
          Set the span title.
 String startTag()
          Return a span start tag.
 
Methods inherited from class com.jdc.gui.html.ComplexTag
addAttribute, create, create, endTag, setFormat, setIdentifier, startTag
 
Methods inherited from class com.jdc.xml.ComplexTag
addAttribute, create, getAttributes, getBody, getIdentifier, setBody, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Span

public Span()
Constructs a Span object.


Span

public Span(boolean format)
Constructs a Span object and sets the format status.

Method Detail

create

public String create(String text)
Create and return the HTML required to create a structure within a document in a browser.

Overrides:
create in class ComplexTag
Returns:
String Span with text.

startTag

public String startTag()
Return a span start tag.

Overrides:
startTag in class ComplexTag
Returns:
String Span start tag.

endTag

public String endTag()
Return an span end tag.

Overrides:
endTag in class ComplexTag
Returns:
String Span end tag.

setClass

public Span setClass(String classname)
Set the span tag Class name.

Returns:
Span

setId

public Span setId(String id)
Set the span tag id.

Returns:
Span

setTitle

public Span setTitle(String text)
Set the span title.

Returns:
Span

2004.04.29



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