org.zkoss.web.servlet.dsp.action.html
Class Img

java.lang.Object
  extended by org.zkoss.web.servlet.dsp.action.AbstractAction
      extended by org.zkoss.web.servlet.dsp.action.html.Img
All Implemented Interfaces:
Action

public class Img
extends AbstractAction

Generates the HTML <img> tag

Author:
tomyeh

Constructor Summary
Img()
           
 
Method Summary
 String getAlign()
          Returns the alignment.
 String getAlt()
          Returns the alt.
 String getBorder()
          Returns the border.
 String getHeight()
          Returns the height.
 String getHspace()
          Returns the hspace.
 String getId()
          Returns the id attribute.
 String getOnclick()
          Returns the onclick.
 String getSclass()
          Returns the style class.
 String getSrc()
          Returns the src (URL).
 String getStyle()
          Returns the style.
 String getTitle()
          Returns the title.
 String getVspace()
          Returns the vspace.
 String getWidth()
          Returns the width.
 void render(ActionContext ac, boolean nested)
          Processes the action and renders the output to ActionContext.getOut().
 void setAlign(String align)
          Sets the alignment.
 void setAlt(String alt)
          Sets the alt.
 void setBorder(String border)
          Sets the border.
 void setHeight(String height)
          Sets the height.
 void setHspace(String hspace)
          Sets the hspace.
 void setId(String id)
          Sets the id attribute.
 void setOnclick(String onclick)
          Sets the onclick.
 void setSclass(String sclass)
          Sets the style class.
 void setSrc(String src)
          Sets the src (URL).
 void setStyle(String style)
          Sets the style.
 void setTitle(String title)
          Sets the title.
 void setVspace(String vspace)
          Sets the vspace.
 void setWidth(String width)
          Sets the width.
 String toString()
           
 
Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Img

public Img()
Method Detail

getId

public String getId()
Returns the id attribute. Default: null.


setId

public void setId(String id)
Sets the id attribute.


getSrc

public String getSrc()
Returns the src (URL). Default: null.


setSrc

public void setSrc(String src)
Sets the src (URL).


getAlign

public String getAlign()
Returns the alignment. Default: null.


setAlign

public void setAlign(String align)
Sets the alignment.


getAlt

public String getAlt()
Returns the alt. Default: null.


setAlt

public void setAlt(String alt)
Sets the alt.


getBorder

public String getBorder()
Returns the border. Default: null.


setBorder

public void setBorder(String border)
Sets the border.


getHspace

public String getHspace()
Returns the hspace. Default: null.


setHspace

public void setHspace(String hspace)
Sets the hspace.


getVspace

public String getVspace()
Returns the vspace. Default: null.


setVspace

public void setVspace(String vspace)
Sets the vspace.


getSclass

public String getSclass()
Returns the style class. Default: null.


setSclass

public void setSclass(String sclass)
Sets the style class.


getStyle

public String getStyle()
Returns the style. Default: null.


setStyle

public void setStyle(String style)
Sets the style.


getHeight

public String getHeight()
Returns the height. Default: null.


setHeight

public void setHeight(String height)
Sets the height.


getWidth

public String getWidth()
Returns the width. Default: null.


setWidth

public void setWidth(String width)
Sets the width.


getTitle

public String getTitle()
Returns the title. Default: null (no title at all).


setTitle

public void setTitle(String title)
Sets the title.


getOnclick

public String getOnclick()
Returns the onclick. Default: null.


setOnclick

public void setOnclick(String onclick)
Sets the onclick.


render

public void render(ActionContext ac,
                   boolean nested)
            throws DspException,
                   IOException
Description copied from interface: Action
Processes the action and renders the output to ActionContext.getOut().

nested - whether there is any nested content.
Throws:
DspException
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All rights reserved.