Class Box
java.lang.Object
org.zkoss.web.servlet.dsp.action.AbstractAction
org.zkoss.web.servlet.dsp.action.html.Box
- All Implemented Interfaces:
Action
Generates a box that has a caption and a border enclosing other tags.
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Returns the horizontal alignment.Returns the caption.getColor()Returns the color.Returns the spacing.getWidth()Returns the width.booleanisShadow()Returns whether this box has the shadow effect.voidrender(ActionContext ac, boolean nested) Processes the action and renders the output toActionContext.getOut().voidSets the horizontal alignment.voidsetCaption(String caption) Sets the caption.voidSets the color.voidsetShadow(boolean shadow) Sets whether this box has the shadow effect.voidsetSpacing(String spacing) Sets the spacing.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
-
Box
public Box()
-
-
Method Details
-
getAlign
Returns the horizontal alignment. Default: null. -
setAlign
Sets the horizontal alignment. -
getColor
Returns the color. Default: black. -
setColor
Sets the color.You might use any string that HTML supports.
-
isShadow
public boolean isShadow()Returns whether this box has the shadow effect. Default: false. -
setShadow
public void setShadow(boolean shadow) Sets whether this box has the shadow effect. -
getSpacing
Returns the spacing. Default: 3. -
setSpacing
Sets the spacing. -
getWidth
Returns the width. Default: 100%. -
setWidth
Sets the width. -
getCaption
Returns the caption. Default: null (no caption at all). -
setCaption
Sets the caption. -
render
Description copied from interface:ActionProcesses the action and renders the output toActionContext.getOut().nested- whether there is any nested content.- Throws:
DspExceptionIOException
-
toString
-