PAJES 2.3.9

org.pajes.html
Class Head.Meta

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

public class Head.Meta
extends Tag

Inner class for the <meta> tag.

<meta> tags are also used by PAJES to perform final processing on the Pajebefore writing it back to the browser. Supported constructs are:

<meta name="org.pajes.html.Input.addClientValidation" fieldname=" field_name " id=" tag_id " content=" org.pajes.html.validation.ValidationFunction_sub-class " method_name =" parameter_value ">
where:
field_name
is the value of the name attribute of the Input element on the page. This attribute is MANDATORY.
tag_id
is the value of the id attribute of the Input element on the page. This attribute is OPTIONAL.
org.pajes.html.validation.ValidationFunction_sub-class
The name of the org.pajes.html.validation.ValidationFunction. (See Input.addClientValidation(org.pajes.html.validation.ValidationFunction).) This attribute is MANDATORY.
method_name =" parameter_value
Specifies methods and their String parameter values to be called on the ValidationFunction instance. There can be as many of these attributes as are required to configure the ValidationFunction. Note that only methods with one String parameter are supported.
<meta name="org.pajes.html.Input.setFieldNameInErrorMessage" fieldname=" field_name " id=" tag_id " content=" text ">
where:
field_name
is the value of the name attribute of the Input element on the page. This attribute is MANDATORY.
tag_id
is the value of the id attribute of the Input element on the page. This attribute is OPTIONAL.
text
See Input.setFieldNameInErrorMessage(java.lang.String). This attribute is MANDATORY.
<meta name="org.pajes.html.Submit.setSubmitConfirmation" fieldname=" field_name " id=" tag_id " content=" text ">
where:
field_name
is the value of the name attribute of the Submit element on the page. This attribute is OPTIONAL.
tag_id
is the value of the id attribute of the Submit element on the page. This attribute is MANDATORY.
text
See Submit.setSubmitConfirmation(java.lang.String). This attribute is MANDATORY, but may be an empty string ("").
<meta name="org.pajes.html.Submit.setCheckForChangedFields" fieldname=" field_name " id=" tag_id " content=" true|false ">
where:
field_name
is the value of the name attribute of the Submit element on the page. This attribute is OPTIONAL.
tag_id
is the value of the id attribute of the Submit element on the page. This attribute is MANDATORY.
true|false
See Submit.setCheckForChangedFields(boolean). This attribute is MANDATORY, and must be either true or false.
<meta name="org.pajes.html.Submit.setCheckForChangedFieldsConfirmation" fieldname=" field_name " id=" tag_id " content=" text ">
where:
field_name
is the value of the name attribute of the Submit element on the page. This attribute is OPTIONAL.
tag_id
is the value of the id attribute of the Submit element on the page. This attribute is MANDATORY.
text
See Submit.setCheckForChangedFieldsConfirmation(java.lang.String). This attribute is MANDATORY, but may be an empty string ("").
<meta name="org.pajes.html.Submit.setOnClickValidation" fieldname=" field_name " id=" tag_id " content=" true|false ">
where:
field_name
is the value of the name attribute of the Submit element on the page. This attribute is OPTIONAL.
tag_id
is the value of the id attribute of the Submit element on the page. This attribute is MANDATORY.
true|false
See Submit.setOnClickValidation(boolean). This attribute is MANDATORY, and must be either true or false.

Note that any <meta> tag that has a namethat starts with org.pajes. will automatically have it's writableflag set to false, so that it is not written back to the browser.

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.Meta(java.lang.String name, java.lang.String content, java.lang.String httpEquivalent)
          The <meta> tag defines a name/value pair to be encoded in the document header.
 
Method Summary
 java.lang.String getHTTPEquivalent()
          Returns the httpEquivalent attribute of this Meta tag.
 java.lang.String getName()
          Returns the name attribute of this Meta tag.
 java.lang.String getValue()
          Returns the content attribute of this Meta tag.
 void setContent(java.lang.String content)
          Sets the content attribute of this Meta tag.
 Head.Meta setHTTPEquivalent(java.lang.String httpEquivalent)
          Sets the http-equiv attribute of this Meta tag.
 Head.Meta setName(java.lang.String name)
          Sets the name attribute of this Meta 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.Meta

public Head.Meta(java.lang.String name,
                 java.lang.String content,
                 java.lang.String httpEquivalent)
The <meta> tag defines a name/value pair to be encoded in the document header.

Note that any <meta> tag that has a name that starts with org.pajes. will automatically have it's writable flag set to false.

Parameters:
name - the name of the name/value pair.
content - the value of the name/value pair.
httpEquivalent - supplies a name for the name/value pair and instructs the server to include the name/value pair in the MIME document header that is passed to the browser before sending the actual document.
Method Detail

setContent

public void setContent(java.lang.String content)
Sets the content attribute of this Meta tag.

Specified by:
setContent in interface HTML
Overrides:
setContent in class Tag
Parameters:
content - the value of the name/value pair.
See Also:
Tag.getContent(), Tag.setContent(org.pajes.html.HTML)

setHTTPEquivalent

public Head.Meta setHTTPEquivalent(java.lang.String httpEquivalent)
Sets the http-equiv attribute of this Meta tag.

Parameters:
httpEquivalent - supplies a name for the name/value pair and instructs the server to include the name/value pair in the MIME document header that is passed to the browser before sending the actual document.
Returns:
the modified Meta instance.

getHTTPEquivalent

public java.lang.String getHTTPEquivalent()
Returns the httpEquivalent attribute of this Meta tag.

Returns:
the http-equiv attribute of this Meta tag.

setName

public Head.Meta setName(java.lang.String name)
Sets the name attribute of this Meta tag.

Parameters:
name - the name of the name/value pair.
Returns:
the modified Meta instance.

getName

public java.lang.String getName()
Returns the name attribute of this Meta tag.

Returns:
the name attribute of this Meta tag.

getValue

public java.lang.String getValue()
Returns the content attribute of this Meta tag.

Returns:
the content attribute of this Meta tag.

PAJES 2.3.9

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