com.sri.common.taglib
Class InputTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.jcorporate.expresso.ext.taglib.ExpressoTagSupport
          extended by com.sri.common.taglib.InputTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class InputTag
extends ExpressoTagSupport

An adaptation of Expresso's version of InputTag to customize and add functionality as well as fix errors.

Author:
Zaz Harris
See Also:
Serialized Form

Field Summary
static String STYLE_SHEET_MEDIUM_BOLD
          Medium Bold Stylesheet class.
static String STYLE_SHEET_MEDIUM_TEXT
          Medium text stylesheet class.
static String TYPE_CHECKBOX
          Input type checkbox.
static String TYPE_CHECKBOX_VERT
          Input type checkbox-vertical.
static String TYPE_DROPDOWN
          Input type select list: dropdown.
static String TYPE_FILE
          Input type file.
static String TYPE_HIDDEN
          Input type hidden.
static String TYPE_LISTBOX
          Input type select list: listbox.
static String TYPE_PASSWORD
          Input type password [Not yet supported].
static String TYPE_RADIO
          Input type radio.
static String TYPE_RADIO_VERT
          Input type radio vertical.
static String TYPE_READONLY
          Input type read only input.
static String TYPE_TEXT
          Input type text [Not yet supported].
static String TYPE_TEXTAREA
          Input type text area.
 
Fields inherited from class com.jcorporate.expresso.ext.taglib.ExpressoTagSupport
ctlrResp, response
 
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
InputTag()
          Default Constructor.
 
Method Summary
 int doEndTag()
          Standard doEndTag.
 int doStartTag()
          Do nothing until end tag.
 Input getInput()
          Retrieve the input for the control.
protected  String getJavaScript()
          Get the javascript actions.
 String getMaxlength()
          Getter method for maxlength.
 String getName()
          Getter method for Name.
 String getOnClick()
          Getter method for javascript onClick method.
 String getOnKeyPress()
          Getter method for javascript : onKeyPress.
 String getShowlabel()
          Getter Method for showlabel.
 String getSize()
          Getter method for size.
 String getType()
          Getter method for Type.
 String getValue()
          Getter Method for Value.
 void setMaxlength(String newMaxlength)
          Setter method for maxlength.
 void setName(String newName)
          Sets the name parameter to retreive from the ControllerResponse.
 void setOnClick(String newValue)
          Setter method for javascript onClick method.
 void setOnKeyPress(String newValue)
          Setter method for javascript : onKeyPress.
 void setShowlabel(String newShowlabel)
          Setter method for showlabel.
 void setSize(String newSize)
          Setter method for size.
 void setType(String newType)
          Setter method for type.
 void setValue(String newValue)
          Setter method for value.
 
Methods inherited from class com.jcorporate.expresso.ext.taglib.ExpressoTagSupport
getAncestor, getContainer, getControllerResponse, getResponse, setResponse
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_CHECKBOX

public static final String TYPE_CHECKBOX
Input type checkbox.

See Also:
Constant Field Values

TYPE_CHECKBOX_VERT

public static final String TYPE_CHECKBOX_VERT
Input type checkbox-vertical.

See Also:
Constant Field Values

TYPE_HIDDEN

public static final String TYPE_HIDDEN
Input type hidden.

See Also:
Constant Field Values

TYPE_READONLY

public static final String TYPE_READONLY
Input type read only input.

See Also:
Constant Field Values

TYPE_RADIO

public static final String TYPE_RADIO
Input type radio.

See Also:
Constant Field Values

TYPE_RADIO_VERT

public static final String TYPE_RADIO_VERT
Input type radio vertical.

See Also:
Constant Field Values

TYPE_DROPDOWN

public static final String TYPE_DROPDOWN
Input type select list: dropdown.

See Also:
Constant Field Values

TYPE_LISTBOX

public static final String TYPE_LISTBOX
Input type select list: listbox.

See Also:
Constant Field Values

TYPE_TEXTAREA

public static final String TYPE_TEXTAREA
Input type text area.

See Also:
Constant Field Values

TYPE_FILE

public static final String TYPE_FILE
Input type file. [Not yet supported].

See Also:
Constant Field Values

TYPE_PASSWORD

public static final String TYPE_PASSWORD
Input type password [Not yet supported].

See Also:
Constant Field Values

TYPE_TEXT

public static final String TYPE_TEXT
Input type text [Not yet supported].

See Also:
Constant Field Values

STYLE_SHEET_MEDIUM_BOLD

public static final String STYLE_SHEET_MEDIUM_BOLD
Medium Bold Stylesheet class.

See Also:
Constant Field Values

STYLE_SHEET_MEDIUM_TEXT

public static final String STYLE_SHEET_MEDIUM_TEXT
Medium text stylesheet class.

See Also:
Constant Field Values
Constructor Detail

InputTag

public InputTag()
Default Constructor.

Method Detail

getJavaScript

protected String getJavaScript()
Get the javascript actions. Return the different JavaScript actions : onKeyPress, e.a. By Zaz Harris Used a method so you can add more javascript actions to it if needed.

Returns:
java.lang.String
Since:
6/17/2002
To Do:
This method should ignore event handlers that don't apply to a given input... e.g. onKeyPress should be ignored for inputs that are not a text, textarea, password or file and onClick for inputs that are not checkboxes or radio buttons

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Standard doEndTag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
int as defined by the JSP API Specification.
Throws:
javax.servlet.jsp.JspTagException - upon error.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Do nothing until end tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
int
Throws:
javax.servlet.jsp.JspTagException - The exception description.

getMaxlength

public String getMaxlength()
Getter method for maxlength.

Returns:
java.lang.String

getName

public String getName()
Getter method for Name.

Returns:
java.lang.String

getShowlabel

public String getShowlabel()
Getter Method for showlabel.

Returns:
java.lang.String

getSize

public String getSize()
Getter method for size.

Returns:
java.lang.String

getType

public String getType()
Getter method for Type.

Returns:
java.lang.String

getValue

public String getValue()
Getter Method for Value. Creation date: (12/29/2000 %r)

Returns:
java.lang.String

getOnKeyPress

public String getOnKeyPress()
Getter method for javascript : onKeyPress. by Zaz Harris

Returns:
java.lang.String
Since:
6/17/2002

setOnKeyPress

public void setOnKeyPress(String newValue)
Setter method for javascript : onKeyPress. by Zaz Harris

Parameters:
newValue - java.lang.String
Since:
6/17/2002

getOnClick

public String getOnClick()
Getter method for javascript onClick method. by Zaz Harris

Returns:
java.lang.String
Since:
7/24/2002

setOnClick

public void setOnClick(String newValue)
Setter method for javascript onClick method. by Zaz Harris

Parameters:
newValue - java.lang.String
Since:
7/24/2002

setMaxlength

public void setMaxlength(String newMaxlength)
Setter method for maxlength.

Parameters:
newMaxlength - java.lang.String

setName

public void setName(String newName)
Sets the name parameter to retreive from the ControllerResponse.

Parameters:
newName - java.lang.String

getInput

public Input getInput()
Retrieve the input for the control.

Returns:
Input

setShowlabel

public void setShowlabel(String newShowlabel)
Setter method for showlabel.

Parameters:
newShowlabel - java.lang.String

setSize

public void setSize(String newSize)
Setter method for size.

Parameters:
newSize - java.lang.String

setType

public void setType(String newType)
Setter method for type.

Parameters:
newType - java.lang.String

setValue

public void setValue(String newValue)
Setter method for value.

Parameters:
newValue - java.lang.String


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.