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:
IDirectional, IIcon, ILocalized, IElement

public class IconEntity
extends AbstractLocalizedEntity
implements IIcon, IElement

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()
          Get widget icon height.
 java.lang.String getSrc()
          Get widget icon source URL.
 java.lang.Integer getWidth()
          Get widget icon width.
 void setHeight(java.lang.Integer height)
          Set widget icon height.
 void setSrc(java.lang.String src)
          Set widget icon source URL.
 void setWidth(java.lang.Integer width)
          Set widget icon 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.ILocalized
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()
Description copied from interface: IIcon
Get widget icon source URL.

Specified by:
getSrc in interface IIcon
Returns:
icon source URL

setSrc

public void setSrc(java.lang.String src)
Description copied from interface: IIcon
Set widget icon source URL.

Specified by:
setSrc in interface IIcon
Parameters:
src - icon source URL

getHeight

public java.lang.Integer getHeight()
Description copied from interface: IIcon
Get widget icon height.

Specified by:
getHeight in interface IIcon
Returns:
icon height

setHeight

public void setHeight(java.lang.Integer height)
Description copied from interface: IIcon
Set widget icon height.

Specified by:
setHeight in interface IIcon
Parameters:
height - icon height

getWidth

public java.lang.Integer getWidth()
Description copied from interface: IIcon
Get widget icon width.

Specified by:
getWidth in interface IIcon
Returns:
icon width

setWidth

public void setWidth(java.lang.Integer width)
Description copied from interface: IIcon
Set widget icon width.

Specified by:
setWidth in interface IIcon
Parameters:
width - icon width

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
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


2012 Apache Software Foundation.