public class HTMLMeta extends HTMLTagAttributes implements java.io.Serializable
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(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.
|
Modifier and Type | Method and Description |
---|---|
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 |
getFOTag()
Returns a comment tag.
|
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.
|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes
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.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()
getTag
in interface HTMLTagElement
public java.lang.String getFOTag()
getFOTag
in interface HTMLTagElement
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