|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport com.cc.framework.taglib.forms.FormElementHtmlTag
Tag-Handler for the description form element.
The tag generates a description element. The description text is graphically
assigned to the preceding form element. The description text can be specified
as an attribute (description) or directly in the tag body. In the tag-body,
all the HTML elements can be used for formatting. The tag may only be used
within a FormElementContainerTag
.
Examples of this are <forms:form>, <forms:section> and
<forms:buttonsection>. The description element always refers to the
immediately preceding form element.
Field Summary | |
private FormHtmlElement |
formElement
Designmodel |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
FormElementHtmlTag()
Constructor |
Method Summary | |
int |
doAfterBody()
|
protected FormHtmlElement |
doCreateFormElement()
Creates the form element |
int |
doEndTag()
|
FormHtmlElement |
getFormElement()
Returns the concrete form element |
void |
release()
|
protected void |
releaseFormElement()
Release the current form element |
void |
setAccesskey(java.lang.String accessKey)
The ACCESSKEY attribute can be used to specify a shortcut key for the <LABEL> (activated by pressing 'ALT' and the ACCESSKEY together). |
void |
setAlign(java.lang.String alignment)
Specifies the horizontal alignment of the form element within the form left right center |
void |
setColspan(java.lang.String colspan)
Sets the column span of this form element |
void |
setFilter(java.lang.String filter)
The automatic HTML coding of the element can be activated or disabled with the filter-attribute. |
void |
setHeight(java.lang.String height)
Sets the height of the form element (pixel or %) |
void |
setHelp(java.lang.String help)
Sets the optional help text |
void |
setImageref(java.lang.String imageRef)
Sets the Reference to an Image in an ImageMap, which should be display in front of the Label |
void |
setJoin(java.lang.String join)
This method specifies that two adjacent form elements should be joined together without a separator |
void |
setLabel(java.lang.String label)
Sets the form element label |
void |
setLabelDesignModel(FormLabelDesignModel label)
Sets the Label for the form element |
void |
setLabeltooltip(java.lang.String tooltip)
Sets the tooltip text for the label |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setPermission(java.lang.String permission)
Sets the permission for the element |
void |
setRequired(java.lang.String required)
Indicates that this form element is a required field |
void |
setStyle(java.lang.String style)
An HTML-style. |
void |
setStyleClass(java.lang.String styleClass)
The HTML-class attribute. |
void |
setStyleId(java.lang.String styleId)
The HTML-id attribute. |
void |
setValign(java.lang.String alignment)
Specifies the vertical alignment of the form element within the form top bottom center |
void |
setWidth(java.lang.String width)
Sets the width of the form element (pixel or %) |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setParent |
Field Detail |
private static final long serialVersionUID
private FormHtmlElement formElement
Constructor Detail |
public FormElementHtmlTag()
Method Detail |
public FormHtmlElement getFormElement()
protected FormHtmlElement doCreateFormElement()
protected void releaseFormElement()
public void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
Tag.setPageContext(PageContext pc)
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
Tag.release()
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
javax.servlet.jsp.JspException
IterationTag.doAfterBody()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
Tag.doEndTag()
public void setHelp(java.lang.String help)
setHelp
in interface FormElementTag
help
- Helppublic void setLabel(java.lang.String label)
label
- Labelpublic void setLabelDesignModel(FormLabelDesignModel label)
LabeledFormElementTag
setLabelDesignModel
in interface LabeledFormElementTag
label
- LabelLabeledFormElementTag.setLabelDesignModel(com.cc.framework.ui.model.FormLabelDesignModel)
public void setRequired(java.lang.String required) throws javax.servlet.jsp.JspException
required
- true
if the Field is required
javax.servlet.jsp.JspException
- if the argument can not be converted to a boolean valuepublic void setFilter(java.lang.String filter) throws javax.servlet.jsp.JspException
true
filter
- true
if the element should be HTML encoded.
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setPermission(java.lang.String permission) throws javax.servlet.jsp.JspException
FormElementTag
setPermission
in interface FormElementTag
permission
- Permission
javax.servlet.jsp.JspException
- If the Argument can't be converted to PermissionFormElementTag.setPermission(java.lang.String)
public 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 setImageref(java.lang.String imageRef)
imageRef
- Reference to an Image in an ImageMappublic 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 setHeight(java.lang.String height)
FormElementTag
setHeight
in interface FormElementTag
height
- The HeightFormElementTag.setHeight(java.lang.String)
public void setWidth(java.lang.String width)
FormElementTag
setWidth
in interface FormElementTag
width
- The WidthFormElementTag.setWidth(java.lang.String)
public void setStyle(java.lang.String style)
FormElementTag
setStyle
in interface FormElementTag
style
- An HTML-styleFormElementTag.setStyle(java.lang.String)
public void setStyleClass(java.lang.String styleClass)
FormElementTag
setStyleClass
in interface FormElementTag
styleClass
- The HTML-class attributeFormElementTag.setStyleClass(java.lang.String)
public void setStyleId(java.lang.String styleId)
FormElementTag
setStyleId
in interface FormElementTag
styleId
- The HTML-id attributeFormElementTag.setStyleId(java.lang.String)
public void setAccesskey(java.lang.String accessKey)
LabeledFormElementTag
setAccesskey
in interface LabeledFormElementTag
accessKey
- The Access KeyLabeledFormElementTag.setAccesskey(java.lang.String)
public void setLabeltooltip(java.lang.String tooltip)
LabeledFormElementTag
setLabeltooltip
in interface LabeledFormElementTag
tooltip
- Tooltip textLabeledFormElementTag.setLabeltooltip(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |