|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.HtmlTagSupport
net.sourceforge.stripes.tag.InputTagSupport
public abstract class InputTagSupport
Parent class for all input tags in stripes. Provides support methods for retrieving all the attributes that are shared across form input tags. Also provides accessors for finding the specified "override" value and for finding the enclosing support tag.
| Field Summary | |
|---|---|
protected TagErrorRenderer |
errorRenderer
The error renderer to be utilized for error output of this input tag |
protected List<ValidationError> |
fieldErrors
A list of the errors related to this input tag instance |
| Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
|---|
pageContext, parentTag |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
InputTagSupport()
|
|
| Method Summary | |
|---|---|
abstract int |
doEndInputTag()
Abstract method implemented in child classes instead of doEndTag(). |
int |
doEndTag()
Final implementation of the doEndTag() method that allows the base InputTagSupport class to insert functionality before and after the tag performs it's doEndTag equivelant method. |
abstract int |
doStartInputTag()
Abstract method implemented in child classes instead of doStartTag(). |
int |
doStartTag()
Final implementation of the doStartTag() method that allows the base InputTagSupport class to insert functionality before and after the tag performs it's doStartTag equivelant method. |
protected String |
format(Object input)
Attempts to format an object using the Stripes formatting system. |
protected ActionBean |
getActionBean()
Fetches the ActionBean associated with the form if one is present. |
String |
getDisabled()
|
List<ValidationError> |
getFieldErrors()
Access for the field errors that occured on the form input this tag represents |
String |
getFormatPattern()
Returns the value set with setFormatPattern() |
String |
getFormatType()
Returns the value set with setFormatAs() |
protected String |
getLocalizedFieldName()
Fetches the localized name for this field if one exists in the resource bundle. |
String |
getName()
|
protected Object |
getOverrideValueOrValues()
Gets the value for this tag based on the current population strategy. |
protected FormTag |
getParentFormTag()
Locates the enclosing stripes form tag. |
protected Object |
getSingleOverrideValue()
Returns a single value for the the value of this field. |
String |
getSize()
|
protected boolean |
isItemSelected(Object value,
Object selected)
Utility method for determining if a String value is contained within an Object, where the object may be either a String, String[], Object, Object[] or Collection. |
protected void |
loadErrors()
Find errors that are related to the form field this input tag represents and place them in an instance variable to use during error rendering. |
protected void |
registerWithParentForm()
Registers the field with the parent form within which it must be enclosed. |
void |
setDisabled(String disabled)
|
void |
setFormatPattern(String formatPattern)
Sets the named format pattern, or a custom format pattern. |
void |
setFormatType(String formatType)
Sets the type of ouput to format, e.g. |
void |
setName(String name)
|
void |
setSize(String size)
|
| Methods inherited from class net.sourceforge.stripes.tag.HtmlTagSupport |
|---|
evaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTag |
| Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
|---|
getPageContext, getParent, getParentTag, setPageContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<ValidationError> fieldErrors
protected TagErrorRenderer errorRenderer
| Constructor Detail |
|---|
public InputTagSupport()
| Method Detail |
|---|
public void setDisabled(String disabled)
public String getDisabled()
public void setName(String name)
public String getName()
public void setSize(String size)
public String getSize()
public void setFormatType(String formatType)
public String getFormatType()
public void setFormatPattern(String formatPattern)
public String getFormatPattern()
protected Object getOverrideValueOrValues()
throws StripesJspException
StripesJspException - if the enclosing form tag (which is required at all times, and
necessary to perform repopulation) cannot be located
protected Object getSingleOverrideValue()
throws StripesJspException
StripesJspException - if the enclosing form tag (which is required at all times, and
necessary to perform repopulation) cannot be located
protected FormTag getParentFormTag()
throws StripesJspException
Locates the enclosing stripes form tag. If no form tag can be found, because the tag was not enclosed in one on the JSP, an exception is thrown.
StripesJspException - if an enclosing form tag cannot be found
protected boolean isItemSelected(Object value,
Object selected)
value - the value that we are searching forselected - a String, String[], Object, Object[] or Collection (of scalars) denoting the
selected items
protected String getLocalizedFieldName()
throws StripesJspException
StripesJspExceptionprotected String format(Object input)
protected void loadErrors()
throws StripesJspException
StripesJspExceptionpublic List<ValidationError> getFieldErrors()
protected ActionBean getActionBean()
throws StripesJspException
StripesJspException
public final int doStartTag()
throws JspException
TagErrorRenderer
if appropriate.
doStartTag in interface TagdoStartTag in class StripesTagSupportJspException
protected void registerWithParentForm()
throws StripesJspException
StripesJspException - if the parent form tag is not found
public abstract int doStartInputTag()
throws JspException
JspException
public final int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class StripesTagSupportJspException
public abstract int doEndInputTag()
throws JspException
JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||