java.lang.Object
org.zkoss.web.servlet.dsp.action.AbstractAction
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 Details

    • Img

      public Img()
  • Method Details

    • 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