|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.util.html.HTMLTagAttributes | +--com.ibm.as400.util.html.HTMLMeta
The HTMLMeta class represents meta-information used within an HTMLHead tag. This meta information can be used in identifying, indexing, and defining information within the HTML document.
This example creates an HTMLMeta tag:
// Create an HTMLMeta. HTMLMeta meta = new HTMLMeta("Expires", "Mon, 01 Jun 2000 12:00:00 CST"); System.out.println(header);
Here is the output of the HTMLMeta tag:
<meta http-equiv="Expires" content="Mon, 01 Jun 2000 12:00:00 CST" />
HTMLMeta objects generate the following events:
Constructor Summary | |
HTMLMeta()
Constructs a default HTMLMeta object. |
|
HTMLMeta(java.lang.String HttpEquiv,
java.lang.String content)
Constructs an HTMLMeta object with the specified meta HTTP-EQUIV and content. |
|
HTMLMeta(java.lang.String HttpEquiv,
java.lang.String content,
java.lang.String url)
Constructs an HTMLMeta object with the specified meta HTTP-EQUIV, content, and URL. |
Method Summary | |
java.lang.String |
getContent()
Returns the content of the HTMLMeta tag. |
java.lang.String |
getDirection()
Returns the direction of the text interpretation. |
java.lang.String |
getHttpEquiv()
Returns the HTTP-EQUIV of the meta tag. |
java.lang.String |
getLanguage()
Returns the language of the meta tag. |
java.lang.String |
getName()
Returns the name of the meta tag. |
java.lang.String |
getTag()
Returns the tag for the HTML heading. |
java.lang.String |
getUrl()
Returns the URL of the meta tag. |
void |
setContent(java.lang.String content)
Sets the content of the meta information. |
void |
setDirection(java.lang.String dir)
Sets the direction of the text interpretation. |
void |
setHttpEquiv(java.lang.String HttpEquiv)
Sets the HTTP-EQUIV of the meta tag. |
void |
setLanguage(java.lang.String lang)
Sets the language of the meta tag. |
void |
setName(java.lang.String name)
Sets the name of the meta tag. |
void |
setUrl(java.lang.String url)
Sets the URL to reload after the time specified in the content attribute. |
java.lang.String |
toString()
Returns a String representation for the HTMLMeta tag. |
Methods inherited from class com.ibm.as400.util.html.HTMLTagAttributes |
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTMLMeta()
public HTMLMeta(java.lang.String HttpEquiv, java.lang.String content)
HttpEquiv
- The HTTP-EQUIV meta information.content
- The value of a named property.public HTMLMeta(java.lang.String HttpEquiv, java.lang.String content, java.lang.String url)
HttpEquiv
- The HTTP-EQUIV meta information.content
- The value of a named property.url
- The URL to reload after the time specified in the content attribute.Method Detail |
public java.lang.String getContent()
public java.lang.String getDirection()
public java.lang.String getHttpEquiv()
public java.lang.String getLanguage()
public java.lang.String getName()
public java.lang.String getUrl()
public java.lang.String getTag()
public void setContent(java.lang.String content)
content
- The value for a named property.public void setDirection(java.lang.String dir)
dir
- The direction. One of the following constants
defined in HTMLConstants: LTR or RTL.HTMLConstants
public void setHttpEquiv(java.lang.String HttpEquiv)
HttpEquiv
- The HTTP-EQUIV meta information.public void setLanguage(java.lang.String lang)
lang
- The language. Example language tags include:
en and en-US.public void setName(java.lang.String name)
name
- The name of a property.public void setUrl(java.lang.String url)
url
- The URL to reload.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |