Class Img
java.lang.Object
org.zkoss.web.servlet.dsp.action.AbstractAction
org.zkoss.web.servlet.dsp.action.html.Img
- All Implemented Interfaces:
Action
Generates the HTML <img> tag
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Returns the alignment.getAlt()Returns the alt.Returns the border.Returns the height.Returns the hspace.getId()Returns the id attribute.Returns the onclick.Returns the style class.getSrc()Returns the src (URL).getStyle()Returns the style.getTitle()Returns the title.Returns the vspace.getWidth()Returns the width.voidrender(ActionContext ac, boolean nested) Processes the action and renders the output toActionContext.getOut().voidSets the alignment.voidSets the alt.voidSets the border.voidSets the height.voidSets the hspace.voidSets the id attribute.voidsetOnclick(String onclick) Sets the onclick.voidSets the style class.voidSets the src (URL).voidSets the style.voidSets the title.voidSets the vspace.voidSets the width.toString()Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
-
Constructor Details
-
Img
public Img()
-
-
Method Details
-
getId
Returns the id attribute. Default: null. -
setId
Sets the id attribute. -
getSrc
Returns the src (URL). Default: null. -
setSrc
Sets the src (URL). -
getAlign
Returns the alignment. Default: null. -
setAlign
Sets the alignment. -
getAlt
Returns the alt. Default: null. -
setAlt
Sets the alt. -
getBorder
Returns the border. Default: null. -
setBorder
Sets the border. -
getHspace
Returns the hspace. Default: null. -
setHspace
Sets the hspace. -
getVspace
Returns the vspace. Default: null. -
setVspace
Sets the vspace. -
getSclass
Returns the style class. Default: null. -
setSclass
Sets the style class. -
getStyle
Returns the style. Default: null. -
setStyle
Sets the style. -
getHeight
Returns the height. Default: null. -
setHeight
Sets the height. -
getWidth
Returns the width. Default: null. -
setWidth
Sets the width. -
getTitle
Returns the title. Default: null (no title at all). -
setTitle
Sets the title. -
getOnclick
Returns the onclick. Default: null. -
setOnclick
Sets the onclick. -
render
Description copied from interface:ActionProcesses the action and renders the output toActionContext.getOut().nested- whether there is any nested content.- Throws:
DspExceptionIOException
-
toString
-