au.com.whitesquare.waf.taglib.html
Class BaseInputTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byau.com.whitesquare.waf.taglib.html.BaseHandlerTag
              extended byau.com.whitesquare.waf.taglib.html.BaseInputTag
All Implemented Interfaces:
BodyTag, IterationTag, JspTag, Serializable, Tag
Direct Known Subclasses:
BaseFieldTag, CheckboxTag, DateSelectorTag, RadioTag, SelectTag, TextareaTag

public abstract class BaseInputTag
extends BaseHandlerTag


Last Modified $Date: 2006/11/11 00:02:11 $

Version:
$Revision: 1.7 $
Author:
Steve Mactaggart
See Also:
Serialized Form

Field Summary
protected  Object value
          The value for this field.
 
Fields inherited from class au.com.whitesquare.waf.taglib.html.BaseHandlerTag
accesskey, tabindex
 
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
BaseInputTag()
           
 
Method Summary
protected  void configureRepopulateValue(JSPForwardResponse resp)
           
protected  void configureValue()
           
 int doEndTag()
          Process the end of this tag.
 int doStartTag()
          Generate the required input tag.
 String getCols()
          Return the number of columns for this field.
 String getMaxlength()
          Return the maximum length allowed.
 String getName()
           
 String getRows()
          Return the number of rows for this field.
 String getSize()
          Return the size of this field (synonym for getCols()).
 Object getValue()
          Return the field value (if any).
 boolean isEditable()
           
 boolean isRepopulate()
           
protected  String prepareInput()
           
 void release()
          Release any acquired resources.
protected abstract  String renderInputElement()
          This method is overwridden in the sub-class to generate the HTML to render the actual input element.
protected  String renderTextElement()
           
 void setCols(String cols)
          Set the number of columns for this field.
 void setEditable(boolean editable)
           
 void setMaxlength(String maxlength)
          Set the maximum length allowed.
 void setName(String name)
           
 void setRepopulate(boolean repopulate)
           
 void setRows(String rows)
          Set the number of rows for this field.
 void setSize(String size)
          Set the size of this field (synonym for setCols()).
 void setValue(boolean value)
           
 void setValue(int value)
           
 void setValue(long value)
           
 void setValue(Object value)
          Set the field value (if any).
 
Methods inherited from class au.com.whitesquare.waf.taglib.html.BaseHandlerTag
filter, getAccesskey, getAlt, getDisabled, getElementClose, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, prepareEventHandlers, prepareFocusEvents, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setDisabled, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey, write
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, 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, setPageContext, setParent
 

Field Detail

value

protected Object value
The value for this field.

Constructor Detail

BaseInputTag

public BaseInputTag()
Method Detail

isEditable

public final boolean isEditable()

setEditable

public final void setEditable(boolean editable)

getName

public final String getName()

setName

public final void setName(String name)

getCols

public String getCols()
Return the number of columns for this field.


setCols

public void setCols(String cols)
Set the number of columns for this field.

Parameters:
cols - The new number of columns

getMaxlength

public String getMaxlength()
Return the maximum length allowed.


setMaxlength

public void setMaxlength(String maxlength)
Set the maximum length allowed.

Parameters:
maxlength - The new maximum length

getRows

public String getRows()
Return the number of rows for this field.


setRows

public void setRows(String rows)
Set the number of rows for this field.

Parameters:
rows - The new number of rows

getSize

public String getSize()
Return the size of this field (synonym for getCols()).


setSize

public void setSize(String size)
Set the size of this field (synonym for setCols()).

Parameters:
size - The new size

getValue

public Object getValue()
Return the field value (if any).


setValue

public void setValue(Object value)
Set the field value (if any).

Parameters:
value - The new field value, or null to retrieve the corresponding property from the bean

setValue

public void setValue(boolean value)

setValue

public void setValue(long value)

setValue

public void setValue(int value)

doStartTag

public final int doStartTag()
                     throws JspException
Generate the required input tag.

Throws:
JspException - if a JSP exception has occurred

renderInputElement

protected abstract String renderInputElement()
                                      throws JspException
This method is overwridden in the sub-class to generate the HTML to render the actual input element.

Returns:
the content of the input HTML
Throws:
JspException

renderTextElement

protected String renderTextElement()
                            throws JspException
Throws:
JspException

prepareInput

protected String prepareInput()
                       throws JspException
Throws:
JspException

doEndTag

public final int doEndTag()
                   throws JspException
Process the end of this tag. The default implementation does nothing.

Throws:
JspException - if a JSP exception has occurred

configureRepopulateValue

protected void configureRepopulateValue(JSPForwardResponse resp)

configureValue

protected void configureValue()

release

public void release()
Release any acquired resources.

Specified by:
release in interface Tag
Overrides:
release in class BaseHandlerTag

isRepopulate

public boolean isRepopulate()

setRepopulate

public void setRepopulate(boolean repopulate)


Copyright © 2004 Whitesquare Software. All Rights Reserved.