PAJES 2.3.9

org.pajes.html
Class Head.Base

java.lang.Object
  extended byorg.pajes.html.Tag
      extended byorg.pajes.html.Head.Base
All Implemented Interfaces:
java.lang.Cloneable, HTML, java.io.Serializable
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, 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, 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

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.

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.

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.

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.

PAJES 2.3.9

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