|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.as400.util.html.HTMLTagAttributes com.ibm.as400.util.html.HTMLMeta
public class HTMLMeta extends HTMLTagAttributes implements Serializable
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 and Description |
---|
HTMLMeta()
Constructs a default HTMLMeta object. |
HTMLMeta(String HttpEquiv,
String content)
Constructs an HTMLMeta object with the specified meta HTTP-EQUIV and content. |
HTMLMeta(String HttpEquiv,
String content,
String url)
Constructs an HTMLMeta object with the specified meta HTTP-EQUIV, content, and URL. |
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Returns the content of the HTMLMeta tag. |
String |
getDirection()
Returns the direction of the text interpretation. |
String |
getFOTag()
Returns a comment tag. |
String |
getHttpEquiv()
Returns the HTTP-EQUIV of the meta tag. |
String |
getLanguage()
Returns the language of the meta tag. |
String |
getName()
Returns the name of the meta tag. |
String |
getTag()
Returns the tag for the HTML heading. |
String |
getUrl()
Returns the URL of the meta tag. |
void |
setContent(String content)
Sets the content of the meta information. |
void |
setDirection(String dir)
Sets the direction of the text interpretation. |
void |
setHttpEquiv(String HttpEquiv)
Sets the HTTP-EQUIV of the meta tag. |
void |
setLanguage(String lang)
Sets the language of the meta tag. |
void |
setName(String name)
Sets the name of the meta tag. |
void |
setUrl(String url)
Sets the URL to reload after the time specified in the content attribute. |
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(String HttpEquiv, String content)
HttpEquiv
- The HTTP-EQUIV meta information.content
- The value of a named property.public HTMLMeta(String HttpEquiv, String content, 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 String getContent()
public String getDirection()
public String getHttpEquiv()
public String getLanguage()
public String getName()
public String getUrl()
public String getTag()
getTag
in interface HTMLTagElement
public String getFOTag()
getFOTag
in interface HTMLTagElement
public void setContent(String content)
content
- The value for a named property.public void setDirection(String dir)
dir
- The direction. One of the following constants
defined in HTMLConstants: LTR or RTL.HTMLConstants
public void setHttpEquiv(String HttpEquiv)
HttpEquiv
- The HTTP-EQUIV meta information.public void setLanguage(String lang)
lang
- The language. Example language tags include:
en and en-US.public void setName(String name)
name
- The name of a property.public void setUrl(String url)
url
- The URL to reload.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |