|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.cc.framework.taglib.forms.FormElementMessageTag
Tag-Handler for the Message Formelement.
Generates a message text form. The form expects, as the data model, an implementation of the interface com.cc.framework.message.Message.MessageDataModel. Struts: If the Struts Framework is being used, the tag can also be used without the specification of a Data Bean. In this case, the Struts error collection (severity="error") or the message collection (severity="information") are displayed.
Field Summary | |
private FormMessageElement |
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 | |
FormElementMessageTag()
Constructor |
Method Summary | |
int |
doAfterBody()
|
FormMessageElement |
doCreateFormMessageElement()
Creates the form element |
int |
doEndTag()
|
FormMessageElement |
getFormMessageElement()
Returns the concrete form element |
void |
release()
|
protected void |
releaseFormElement()
Release the current form element |
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 helpId)
Associates this control with a help id |
void |
setJoin(java.lang.String join)
This method specifies that two adjacent form elements should be joined together without a separator |
void |
setMessage(java.lang.String message)
Sets the Message |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setPermission(java.lang.String permission)
Sets the permission for the element |
void |
setSeverity(java.lang.String severity)
Sets the severity of the message. |
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 FormMessageElement formElement
Constructor Detail |
public FormElementMessageTag()
Method Detail |
public FormMessageElement getFormMessageElement()
public FormMessageElement doCreateFormMessageElement()
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 setMessage(java.lang.String message)
message
- Messagepublic void setSeverity(java.lang.String severity) throws javax.servlet.jsp.JspException
severity
- The severity to set
javax.servlet.jsp.JspException
- if the argument can not be converted to an Object of Type Severitypublic 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 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 final void setHelp(java.lang.String helpId)
FormElementTag
setHelp
in interface FormElementTag
helpId
- The Help Help id of the element. The semantic of this id is
completely in the responsibility of the applications help
systemFormElementTag.setHelp(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |