PAJES 3.0.21

org.pajes.html
Class Head.Link

java.lang.Object
  extended by org.pajes.html.Tag
      extended by org.pajes.html.Head.Link
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HTML
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 getMedia()
          Returns the media 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.
protected  void setAttribute(TagAttribute attribute)
          Adds the specified attribute.
 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 setMedia(java.lang.String media)
          Sets the media 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, getParent, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, hasAttribute, init, initAttributes, isChildOf, isChildOf, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setContent, setId, setOnClickHandler, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setParent, 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

getHREF

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

Returns:
the src attribute of this Link tag.

getMedia

public java.lang.String getMedia()
Returns the media attribute of this Link tag.

Returns:
the media attribute of this Link tag.

getRelationship

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

Returns:
the relationship attribute of this Link tag.

getRelationshipType

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

Returns:
the type attribute of this Link tag.

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.

setMedia

public Head.Link setMedia(java.lang.String media)
Sets the media attribute of this Link tag.

Parameters:
media - used to specify different styles for different media types.
Returns:
the modified Link instance.

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.

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.

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)

setAttribute

protected void setAttribute(TagAttribute attribute)
Description copied from class: Tag
Adds the specified attribute.

Overrides:
setAttribute in class Tag
Parameters:
attribute - The attribute.
See Also:
Tag.setAttribute(org.pajes.html.TagAttribute)

PAJES 3.0.21

Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.