PAJES 3.0.21

org.pajes.html
Class Head.Base

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

public class Head.Base
extends Tag

Inner class for the <base> 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.Base(java.lang.String href, java.lang.String target)
          The <base> tag defines the base URL for other anchors in the document.
 
Method Summary
 java.lang.String getHREF()
          Returns the HREF attribute of the BASE tag.
 java.lang.String getTarget()
          Returns the TARGET attribute of the BASE tag.
 void setContent(java.lang.String href)
          Sets the HREF attribute of the BASE tag.
 Head.Base setHREF(java.lang.String href)
          Sets the HREF attribute of the BASE tag.
 Head.Base setTarget(java.lang.String frameTarget)
          Sets the TARGET attribute of the BASE tag.
 
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, 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, write, writeContent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Head.Base

public Head.Base(java.lang.String href,
                 java.lang.String target)
The <base> tag defines the base URL for other anchors in the document.

Parameters:
href - is used to define the absolute URL against which relative URLs are based within the document.
target - is the default frame name into which URLs are to be loaded.
Method Detail

getHREF

public java.lang.String getHREF()
Returns the HREF attribute of the BASE tag.

Returns:
the absolute URL against which relative URLs are based within the document.

getTarget

public java.lang.String getTarget()
Returns the TARGET attribute of the BASE tag.

Returns:
the default frame name into which URLs are to be loaded.

setContent

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

Specified by:
setContent in interface HTML
Overrides:
setContent in class Tag
Parameters:
href - is used to define the absolute URL against which relative URLs are based within the document.
See Also:
setHREF(java.lang.String)

setHREF

public Head.Base setHREF(java.lang.String href)
Sets the HREF attribute of the BASE tag.

Parameters:
href - is used to define the absolute URL against which relative URLs are based within the document.
Returns:
the modified Base instance.

setTarget

public Head.Base setTarget(java.lang.String frameTarget)
Sets the TARGET attribute of the BASE tag.

Parameters:
frameTarget - the default frame name into which URLs are to be loaded.
Returns:
the modified Base instance.

PAJES 3.0.21

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