org.apache.wookie.w3c.impl
Class IconEntity

java.lang.Object
  extended by org.apache.wookie.w3c.impl.AbstractLocalizedEntity
      extended by org.apache.wookie.w3c.impl.IconEntity
All Implemented Interfaces:
IElement, IIconEntity, ILocalizedElement, ILocalizedEntity

public class IconEntity
extends AbstractLocalizedEntity
implements IIconEntity

Version:
$Id: IconEntity.java,v 1.3 2009-09-02 18:37:31 scottwilson Exp $
Author:
Paul Sharples

Field Summary
 
Fields inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity
dir, lang, LEFT_TO_RIGHT, LEFT_TO_RIGHT_OVERRIDE, RIGHT_TO_LEFT, RIGHT_TO_LEFT_OVERRIDE
 
Constructor Summary
IconEntity()
           
IconEntity(java.lang.String src, java.lang.Integer height, java.lang.Integer width)
           
 
Method Summary
 void fromXML(org.jdom.Element element)
          Unmarshall the given XML Element to this Object
 void fromXML(org.jdom.Element element, java.lang.String[] locales, org.apache.commons.compress.archivers.zip.ZipFile zip)
           
 java.lang.Integer getHeight()
           
 java.lang.String getSrc()
           
 java.lang.Integer getWidth()
           
 void setHeight(java.lang.Integer height)
           
 void setSrc(java.lang.String src)
           
 void setWidth(java.lang.Integer width)
           
 org.jdom.Element toXml()
          Marshall the entity into an XML Element
 
Methods inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity
getDir, getLang, getLocalizedTextContent, getTextDirection, isValid, setDir, setLang, setLocalisationAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wookie.w3c.ILocalizedEntity
getDir, isValid
 
Methods inherited from interface org.apache.wookie.w3c.ILocalizedElement
getLang, setLang
 

Constructor Detail

IconEntity

public IconEntity()

IconEntity

public IconEntity(java.lang.String src,
                  java.lang.Integer height,
                  java.lang.Integer width)
Method Detail

getSrc

public java.lang.String getSrc()
Specified by:
getSrc in interface IIconEntity

setSrc

public void setSrc(java.lang.String src)
Specified by:
setSrc in interface IIconEntity

getHeight

public java.lang.Integer getHeight()
Specified by:
getHeight in interface IIconEntity

setHeight

public void setHeight(java.lang.Integer height)
Specified by:
setHeight in interface IIconEntity

getWidth

public java.lang.Integer getWidth()
Specified by:
getWidth in interface IIconEntity

setWidth

public void setWidth(java.lang.Integer width)
Specified by:
setWidth in interface IIconEntity

fromXML

public void fromXML(org.jdom.Element element)
Description copied from interface: IElement
Unmarshall the given XML Element to this Object

Specified by:
fromXML in interface IElement
Overrides:
fromXML in class AbstractLocalizedEntity
Parameters:
element - The Element to unmarshall

fromXML

public void fromXML(org.jdom.Element element,
                    java.lang.String[] locales,
                    org.apache.commons.compress.archivers.zip.ZipFile zip)
             throws BadManifestException
Specified by:
fromXML in interface IIconEntity
Throws:
BadManifestException

toXml

public org.jdom.Element toXml()
Description copied from interface: IElement
Marshall the entity into an XML Element

Specified by:
toXml in interface IElement
Returns:
the W3C Widgets Element representing the content of the entity


2011 Apache Software Foundation.