PAJES 2.3.9

org.pajes.html
Class Head.Link

java.lang.Object
  extended byorg.pajes.html.Tag
      extended byorg.pajes.html.Head.Link
All Implemented Interfaces:
java.lang.Cloneable, HTML, java.io.Serializable
Enclosing class:
Head

public class Head.Link
extends Tag

Inner class for the <link> tag which only ever appears in the header.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pajes.html.Tag
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT
 
Constructor Summary
Head.Link(java.lang.String relationship, java.lang.String href, java.lang.String type)
          The <link> tag defines the relationship between the current document and another in a Web collection.
 
Method Summary
 java.lang.String getHREF()
          Returns the source URL attribute of this Link tag.
 java.lang.String getRelationship()
          Returns the relationship attribute of this Link tag.
 java.lang.String getRelationshipType()
          Returns the relationship type attribute of this Link tag.
 void setContent(java.lang.String href)
          Sets the HREF attribute of this LINK tag.
 Head.Link setHREF(java.lang.String href)
          Sets the source URL attribute of this Link tag.
 Head.Link setRelationship(java.lang.String relationship)
          Sets the relationship attribute of this Link tag.
 Head.Link setRelationshipType(java.lang.String type)
          Sets the relationship type attribute of this Link tag.
 void write(Browser browser)
          Over-rides the inherited write() from HTML.
 
Methods inherited from class org.pajes.html.Tag
addAttribute, addAttributes, addAttributes, addContent, clearAttribute, clearAttributes, clone, destroy, getAttribute, getAttributes, getAttributeSet, getContainer, getContent, getDocument, getId, getOnClickHandler, getOnDBLClickHandler, getOnKeyDownHandler, getOnKeyPressHandler, getOnKeyUpHandler, getOnMouseDownHandler, getOnMouseOutHandler, getOnMouseOverHandler, getOnMouseUpHandler, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, init, initAttributes, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setContent, setId, setOnClickHandler, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setStyle, setStyleSheetClass, setTagName, setTitle, setWritable, setWriteAttributes, setWriteEndTag, setWritelnAfter, setWritelnAfterContent, setWritelnBefore, setWritelnBeforeContent, setWritePermission, toString, writeContent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Head.Link

public Head.Link(java.lang.String relationship,
                 java.lang.String href,
                 java.lang.String type)
The <link> tag defines the relationship between the current document and another in a Web collection.

Parameters:
relationship - defines the relationship between the current element and the destination of the link
href - the URL of the destination link
type - the type of Link (eg 'stylesheet')
Method Detail

setContent

public void setContent(java.lang.String href)
Sets the HREF attribute of this LINK tag.

Specified by:
setContent in interface HTML
Overrides:
setContent in class Tag
Parameters:
href - the href attribute of this Link tag.
See Also:
setHREF(java.lang.String)

setHREF

public Head.Link setHREF(java.lang.String href)
Sets the source URL attribute of this Link tag.

Parameters:
href - the href attribute of this Link tag.
Returns:
the modified Link instance.

getHREF

public java.lang.String getHREF()
Returns the source URL attribute of this Link tag.

Returns:
the src attribute of this Link tag.

setRelationship

public Head.Link setRelationship(java.lang.String relationship)
Sets the relationship attribute of this Link tag.

Parameters:
relationship - defines the relationship between the current element and the destination of the link
Returns:
the modified Link instance.

getRelationship

public java.lang.String getRelationship()
Returns the relationship attribute of this Link tag.

Returns:
the relationship attribute of this Link tag.

setRelationshipType

public Head.Link setRelationshipType(java.lang.String type)
Sets the relationship type attribute of this Link tag.

Parameters:
type - the type attribute of this Link tag.
Returns:
the modified Link instance.

getRelationshipType

public java.lang.String getRelationshipType()
Returns the relationship type attribute of this Link tag.

Returns:
the type attribute of this Link tag.

write

public void write(Browser browser)
           throws java.io.IOException
Over-rides the inherited write() from HTML.

Specified by:
write in interface HTML
Overrides:
write in class Tag
Parameters:
browser - the browser to which the results are to be output.
Throws:
java.io.IOException - if an IO exception occurs
See Also:
Tag.setWriteEndTag(boolean), Tag.writeContent(org.pajes.servlet.Browser)

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.