Copyright 2002 by aragost

com.aragost.html
Class Link

java.lang.Object
  |
  +--com.aragost.html.Element
        |
        +--com.aragost.html.HtmlElement
              |
              +--com.aragost.html.Link

public class Link
extends HtmlElement


Constructor Summary
Link(Element body, java.lang.String path)
          Creates new Link
Link(java.lang.String text, java.lang.String path)
          Creates new Link
 
Method Summary
 void addParameter(java.lang.String key, java.lang.String value)
           
 boolean equals(java.lang.Object obj)
           
 java.util.List getParameters()
          Getter for property parameters.
 java.lang.String getPath()
          Getter for property path.
 java.lang.String getTag()
          Return the html tag for this element.
 java.lang.String getTarget()
          Getter for property target.
 int hashCode()
           
 void setPath(java.lang.String path)
          Setter for property path.
 void setTarget(java.lang.String target)
          Setter for property target.
 void writeAttributes(HtmlWriter writer)
           
 
Methods inherited from class com.aragost.html.HtmlElement
getAttribute, getAttributes, getBody, getIntAttribute, postBodyWrite, preBodyWrite, setAlign, setAttribute, setBgcolor, setIntAttribute, setWidth, writeTo
 
Methods inherited from class com.aragost.html.Element
isCellLike, isNowrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link(java.lang.String text,
            java.lang.String path)
Creates new Link


Link

public Link(Element body,
            java.lang.String path)
Creates new Link

Method Detail

getPath

public java.lang.String getPath()
Getter for property path.

Returns:
Value of property path.

setPath

public void setPath(java.lang.String path)
Setter for property path.

Parameters:
path - New value of property path.

getTarget

public java.lang.String getTarget()
Getter for property target.

Returns:
Value of property target.

setTarget

public void setTarget(java.lang.String target)
Setter for property target.


addParameter

public void addParameter(java.lang.String key,
                         java.lang.String value)

getTag

public java.lang.String getTag()
Description copied from class: HtmlElement
Return the html tag for this element.

Specified by:
getTag in class HtmlElement

writeAttributes

public void writeAttributes(HtmlWriter writer)
Overrides:
writeAttributes in class HtmlElement

getParameters

public java.util.List getParameters()
Getter for property parameters.

Returns:
Value of property parameters.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Copyright 2002 by aragost