|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport com.cc.framework.taglib.ScriptTagSupport com.cc.framework.taglib.controls.BaseControlTag com.cc.framework.taglib.forms.FormTag
Tag-Handler for the form
Tag.
The tag generates a form. The form elements are specified in the tag-body.
Field Summary | |
private boolean |
buttonSection
Is set to true if the form contains a section with buttons. |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class com.cc.framework.taglib.controls.BaseControlTag |
log |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
FormTag()
Constructor |
Method Summary | |
void |
addColumn(FormColumn column)
Adds a column definition to the container |
void |
addFormElement(FormElement element)
Adds a control to the container |
void |
addInnerFrame(InnerFrame frame)
Adds a new inner Frame to the container |
protected Control |
doCreateControl()
Creates the control element |
protected ControlDesignModel |
doCreateDesignModel()
This method is called to create the DesignModel for the control |
int |
doEndTag()
|
protected FormDesignModel |
getFormDesignModel()
Returns a casted version of the ControlDesignModel |
boolean |
hasButtonSection()
Returns true if the form contains a button section |
void |
release()
|
void |
setAlign(java.lang.String alignment)
Specifies the horizontal alignment of the form element within the form left right center |
void |
setButtonSection(boolean buttonSection)
Sets the Flag if the form contains a button section |
void |
setCaption(java.lang.String caption)
The main title of the form. |
void |
setCellWidth(java.lang.String width)
Sets the width of the control cells for this container. |
void |
setColspan(java.lang.String colspan)
Sets the column span of this form element |
void |
setDetail(java.lang.String detail)
The detail title of the form |
void |
setExpandProperty(java.lang.String propertyName)
Sets the name of a property that is used to expand or collapse the group |
void |
setFormid(java.lang.String formid)
The unique identification of the form. |
void |
setHideButtons(java.lang.String controlButtonList)
Hides all buttons in the ControlButton List. |
void |
setImage(ImageModel image)
Sets the image |
void |
setImagemap(java.lang.String mapName)
With this attribute, an ImageList is assigned to the form, The images can be assigned to the individual form elements. |
void |
setJoin(java.lang.String join)
This method specifies that two adjacent form elements should be joined together without a separator |
void |
setLabelPrefix(java.lang.String prefix)
Specifies the label prefix in plain HTML |
void |
setLabelSuffix(java.lang.String suffix)
Specifies the label suffix in plain HTML |
void |
setLabelWidth(java.lang.String width)
Sets the width of the labels for this container. |
void |
setMethod(java.lang.String method)
Specifies the method using which the form should be sent. |
void |
setNoframe(java.lang.String noframe)
Disables the groups border |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setType(java.lang.String type)
Specifies the form type. |
void |
setValign(java.lang.String alignment)
Specifies the vertical alignment of the form element within the form top bottom center |
Methods inherited from class com.cc.framework.taglib.controls.BaseControlTag |
addDesignRule, beginPaint, createControl, createPainter, doStartTag, endPaint, getClientHandler, getControl, getDefaultAction, getDesignModel, getDirectValue, getHttpScope, getPainterContext, lookupBean, releaseDesignModel, setAction, setAjax, setAjax, setBorder, setDirectValue, setDisabled, setFormElement, setHeight, setHelp, setId, setLocale, setName, setPermission, setProperty, setRunat, setScope, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabindex, setTooltip, setTransaction, setValue, setWidth |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.taglib.forms.FormElementTag |
setHeight, setHelp, setPermission, setStyle, setStyleClass, setStyleId, setWidth |
Field Detail |
private static final long serialVersionUID
private boolean buttonSection
Constructor Detail |
public FormTag()
Method Detail |
protected ControlDesignModel doCreateDesignModel()
BaseControlTag
doCreateDesignModel
in class BaseControlTag
BaseControlTag.doCreateDesignModel()
protected FormDesignModel getFormDesignModel()
public void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
setPageContext
in class BaseControlTag
Tag.setPageContext(PageContext pc)
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BaseControlTag
Tag.release()
public void addInnerFrame(InnerFrame frame)
FrameContainerTag
addInnerFrame
in interface FrameContainerTag
frame
- The inner Frame to addFrameContainerTag.addInnerFrame(com.cc.framework.ui.model.InnerFrame)
public void addColumn(FormColumn column)
FormElementContainerTag
addColumn
in interface FormElementContainerTag
column
- column definitionFormElementContainerTag.addColumn(com.cc.framework.ui.model.FormColumn)
public void addFormElement(FormElement element)
FormElementContainerTag
addFormElement
in interface FormElementContainerTag
element
- FormElementFormElementContainerTag.addFormElement(com.cc.framework.ui.control.FormElement)
public boolean hasButtonSection()
public void setButtonSection(boolean buttonSection)
buttonSection
- true
if the form contains a button section;
false
otherwise.protected Control doCreateControl() throws javax.servlet.jsp.JspException
BaseControlTag
doCreateControl
in class BaseControlTag
javax.servlet.jsp.JspException
- If an error during bean lookup occursBaseControlTag.doCreateControl()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class BaseControlTag
javax.servlet.jsp.JspException
Tag.doEndTag()
public void setCaption(java.lang.String caption)
caption
- The captionpublic void setDetail(java.lang.String detail)
detail
- The detail title of the formpublic void setType(java.lang.String type) throws javax.servlet.jsp.JspException
type
- Specifies the form type
javax.servlet.jsp.JspException
- If the argument can not be converted to an Object of Type
FormTypepublic void setMethod(java.lang.String method) throws javax.servlet.jsp.JspException
method
- Method
javax.servlet.jsp.JspException
- if the argument can not be converted to an Object of Type
FormMethodpublic void setFormid(java.lang.String formid)
formid
- The formidpublic void setColspan(java.lang.String colspan) throws javax.servlet.jsp.JspException
FormElementTag
setColspan
in interface FormElementTag
colspan
- column span
javax.servlet.jsp.JspException
- Is thrown when a number conversion error occursFormElementTag.setColspan(java.lang.String)
public void setJoin(java.lang.String join) throws javax.servlet.jsp.JspException
FormElementTag
setJoin
in interface FormElementTag
join
- true
when the form elements should be joined
javax.servlet.jsp.JspException
- if the Argument can not be converted to a boolean ValueFormElementTag.setJoin(java.lang.String)
public void setImagemap(java.lang.String mapName) throws javax.servlet.jsp.JspException
mapName
- The ImageMap to assign
javax.servlet.jsp.JspException
- If the ImageMap could not be foundpublic void setNoframe(java.lang.String noframe) throws javax.servlet.jsp.JspException
FormElementContainerTag
setNoframe
in interface FormElementContainerTag
noframe
- true
if the groups frame should be hidden
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanFormElementContainerTag.setNoframe(java.lang.String)
public void setAlign(java.lang.String alignment) throws javax.servlet.jsp.JspException
FormElementTag
setAlign
in interface FormElementTag
alignment
- The alignment of the element
javax.servlet.jsp.JspException
- If the argument can't be converted to an AlignmentTypeFormElementTag.setAlign(java.lang.String)
public void setValign(java.lang.String alignment) throws javax.servlet.jsp.JspException
FormElementTag
setValign
in interface FormElementTag
alignment
- The alignment of the element
javax.servlet.jsp.JspException
- If the argument can't be converted to an AlignmentTypeFormElementTag.setValign(java.lang.String)
public void setImage(ImageModel image)
ImageContainerTag
setImage
in interface ImageContainerTag
image
- The image model for the imageImageContainerTag.setImage(com.cc.framework.ui.model.ImageModel)
public void setHideButtons(java.lang.String controlButtonList) throws javax.servlet.jsp.JspException
controlButtonList
- A semicolon delimited list of ControlButton names
javax.servlet.jsp.JspException
- Is thrown when a invalid ControlButton Name is specifiedpublic void setLabelPrefix(java.lang.String prefix)
prefix
- The label prefixpublic void setLabelSuffix(java.lang.String suffix)
suffix
- The label suffixpublic void setExpandProperty(java.lang.String propertyName)
FormElementContainerTag
setExpandProperty
in interface FormElementContainerTag
propertyName
- java property nameFormElementContainerTag.setExpandProperty(java.lang.String)
public void setLabelWidth(java.lang.String width)
FormElementContainerTag
setLabelWidth
in interface FormElementContainerTag
width
- label widthFormElementContainerTag.setLabelWidth(java.lang.String)
public void setCellWidth(java.lang.String width)
FormElementContainerTag
setCellWidth
in interface FormElementContainerTag
width
- control cell widthFormElementContainerTag.setCellWidth(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |