net.xoetrope.html
Class XMetaContent

java.lang.Object
  extended by net.xoetrope.html.XHtmlWidget
      extended by net.xoetrope.html.XMetaContent
All Implemented Interfaces:
XStyleComponent, XMetaContentHolder

public class XMetaContent
extends XHtmlWidget
implements XMetaContentHolder, XStyleComponent

Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt


Field Summary
 
Fields inherited from class net.xoetrope.html.XHtmlWidget
currentProject, divElement, htmlDoc, imageElement, inputElement, labelElement, metaElement, olElement, selectElement, tableElement, textareaElement, ulElement
 
Constructor Summary
XMetaContent()
          Constructs a new XMetaContent component
XMetaContent(org.w3c.dom.html.HTMLMetaElement meta)
          Create a new XMetaContent based on an existing HTML meta element.
XMetaContent(java.lang.String id)
          Create a new XMetaContent with an id
 
Method Summary
 java.lang.String getContent()
          Get the meta content's name .
 org.w3c.dom.html.HTMLMetaElement getHTMLElement()
          Get the HTML element at which refers the XMetaContent.
 java.lang.String getHttpEquiv()
          Get the http-equiv attribute of the meta element
 java.lang.String getName()
          Get the name attribute of the meta element
 java.lang.String getScheme()
          Get the scheme attribute of the meta element
 void setContent(java.lang.String content)
          Set the meta content to a simple string value
 void setContent(java.lang.String source, XmlElement srcReader)
          Set the meta content.
 void setHttpEquiv(java.lang.String httpEquiv)
          Set the http-equiv attribute of the meta element
 void setName(java.lang.String name)
          Set the name attribute of the meta element
 void setScheme(java.lang.String scheme)
          Set the scheme attribute of the meta element
 void setStyle(java.lang.String style)
          Set the current style.
 
Methods inherited from class net.xoetrope.html.XHtmlWidget
addEvent, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMetaContent

public XMetaContent()
Constructs a new XMetaContent component


XMetaContent

public XMetaContent(java.lang.String id)
Create a new XMetaContent with an id

Parameters:
id - the id of the meta content

XMetaContent

public XMetaContent(org.w3c.dom.html.HTMLMetaElement meta)
Create a new XMetaContent based on an existing HTML meta element.

Parameters:
meta - the HTML meta tag the XMetaContent refers to
Method Detail

setContent

public void setContent(java.lang.String content)
Set the meta content to a simple string value


getContent

public java.lang.String getContent()
Get the meta content's name .


setHttpEquiv

public void setHttpEquiv(java.lang.String httpEquiv)
Set the http-equiv attribute of the meta element

Parameters:
httpEquiv - the attribute value

getHttpEquiv

public java.lang.String getHttpEquiv()
Get the http-equiv attribute of the meta element

Returns:
the attribute value

setName

public void setName(java.lang.String name)
Set the name attribute of the meta element

Parameters:
name - the attribute value

getName

public java.lang.String getName()
Get the name attribute of the meta element

Returns:
the attribute value

setScheme

public void setScheme(java.lang.String scheme)
Set the scheme attribute of the meta element

Parameters:
scheme - the attribute value

getScheme

public java.lang.String getScheme()
Get the scheme attribute of the meta element

Returns:
the attribute value

getHTMLElement

public org.w3c.dom.html.HTMLMetaElement getHTMLElement()
Get the HTML element at which refers the XMetaContent.

Returns:
the HTML element.

setContent

public void setContent(java.lang.String source,
                       XmlElement srcReader)
Set the meta content.

Specified by:
setContent in interface XMetaContentHolder
Parameters:
source - the location from which the xml was obtained
srcReader - the input xml

setStyle

public void setStyle(java.lang.String style)
Set the current style.

Specified by:
setStyle in interface XStyleComponent
Parameters:
style - the style name