2004.04.29


com.jdc.gui.html.tag
Class Anchor

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

public class Anchor
extends ComplexTag

Anchor is used to create the HTML required to create an Anchor tag to display to a user including the start tag, the Anchor attributes, and the end tag.

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

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Anchor()
          Constructs a Anchor object.
Anchor(boolean format)
          Constructs a Anchor object and sets the format status.
 
Method Summary
 String create(String text)
          Create and return the HTML required to apply a Anchor to text in a browser.
 String endTag()
          Return an Anchor end tag.
 Anchor setName(String name)
          Set the anchor tag name.
 Anchor setOnClick(String eventAction)
          Set the anchor tag onClick event action.
 Anchor setURL(String url)
          Set the anchor tag name.
 String startTag()
          Return a Anchor 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

Anchor

public Anchor()
Constructs a Anchor object.


Anchor

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

Method Detail

create

public String create(String text)
Create and return the HTML required to apply a Anchor to text in a browser.

Overrides:
create in class ComplexTag
Returns:
String Text with applied Anchor.

startTag

public String startTag()
Return a Anchor start tag.

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

endTag

public String endTag()
Return an Anchor end tag.

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

setName

public Anchor setName(String name)
Set the anchor tag name.

Returns:
Anchor

setOnClick

public Anchor setOnClick(String eventAction)
Set the anchor tag onClick event action.

Returns:
Anchor

setURL

public Anchor setURL(String url)
Set the anchor tag name.

Returns:
Anchor

2004.04.29



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