pt.moredata.dataentry.taglibs
Class AbstractInputTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bypt.moredata.taglibs.widgets.AbstractHtmlTag
              extended bypt.moredata.dataentry.taglibs.AbstractHtmlTag
                  extended bypt.moredata.dataentry.taglibs.AbstractInputTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
DateInputTag, InputTag, OptionTag, SelectTag, TextAreaTag

public abstract class AbstractInputTag
extends AbstractHtmlTag
implements javax.servlet.jsp.tagext.TryCatchFinally

Company MoreData

Version:
$Revision: 1.26 $ XXX : Talvez fosse preferivel extender a classe pt.moredata.taglibs.widgets.AbstractInputTag.
Author:
pcarmo
See Also:
Serialized Form

Field Summary
protected  java.lang.String accept
           
protected  java.lang.String accesskey
           
protected  java.lang.String checked
           
protected  java.lang.String disabled
           
protected  java.lang.String maxlength
           
protected  java.lang.String notab
           
protected  boolean numeric
           
protected  boolean optional
           
protected  java.lang.String readonly
           
protected  java.lang.String tabindex
           
protected  java.lang.String taborder
           
protected  java.lang.String type
           
protected  java.lang.String value
           
 
Fields inherited from class pt.moredata.dataentry.taglibs.AbstractHtmlTag
_dataEntry, dataEntryId
 
Fields inherited from class pt.moredata.taglibs.widgets.AbstractHtmlTag
_class, _out, align, alt, border, dir, id, lang, name, onabort, onblur, onchange, onclick, ondblclick, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onreset, onselect, onsubmit, size, src, style, title, usemap
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
AbstractInputTag()
           
 
Method Summary
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
protected  java.lang.String getDataEntryValue()
          Devolve o valor original de uma celula.
protected  java.lang.String getFieldName()
          Return the field name.
protected  java.lang.String getValue()
           
protected  void printAttributes()
          Imprime para o buffer os atributos da tag.
protected  void printClassAttribute()
          Imprime para o bufer o atributo 'class'.
protected  void printDisabledAttribute()
          Imprime para o buffer o atributo 'checked'.
protected  void printJavaScriptAtBegin()
          Imprime codigo em javascript, antes do inicio da tag.
protected  void printJavaScriptAtEnd()
          Imprime codigo em javascript, depois do fim da tag.
protected  void printNameAttribute()
          Imprime para o buffer o atributo 'name'.
protected  void printOnChangeAttribute()
          Imprime para o buffer o atributo 'name'.
protected  void printOnFocusAttribute()
          Imprime para o buffer o atributo 'onFocus'.
protected  void printValueAttribute()
          Imprime para o buffer o atributo 'value'.
 void setAccept(java.lang.String accept)
          Setter for property accept.
 void setAccesskey(java.lang.String accesskey)
          Setter for property accesskey.
 void setChecked(java.lang.String checked)
          Setter for property checked.
 void setDisabled(java.lang.String disabled)
          Setter for property disabled.
 void setMaxlength(java.lang.String maxlength)
          Setter for property maxlength.
 void setNotab(java.lang.String notab)
          Setter for property notab.
 void setNumeric(boolean numeric)
          Setter for property numeric.
 void setOptional(java.lang.String optional)
          Setter for property optional.
 void setReadonly(java.lang.String readonly)
          Setter for property readonly.
 void setTabindex(java.lang.String tabindex)
          Setter for property tabindex.
 void setTaborder(java.lang.String taborder)
          Setter for property taborder.
 void setType(java.lang.String type)
          Setter for property type.
 void setValue(java.lang.String value)
          Setter for property value.
 
Methods inherited from class pt.moredata.dataentry.taglibs.AbstractHtmlTag
doStartTag, init, setDataEntryId
 
Methods inherited from class pt.moredata.taglibs.widgets.AbstractHtmlTag
doCatch, doEndTag, printAltAttribute, printBodyTag, printEndTag, printOnSubmitAttribute, printSrcAttribute, printStartTag, setAlign, setAlt, setBorder, setClass, setDir, setId, setLang, setName, setOnabort, setOnblur, setOnchange, setOnclick, setOndblclick, setOnerror, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnreset, setOnselect, setOnsubmit, setSize, setSrc, setStyle, setTitle, setUsemap
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, 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.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

accept

protected java.lang.String accept

accesskey

protected java.lang.String accesskey

checked

protected java.lang.String checked

disabled

protected java.lang.String disabled

maxlength

protected java.lang.String maxlength

notab

protected java.lang.String notab

readonly

protected java.lang.String readonly

tabindex

protected java.lang.String tabindex

taborder

protected java.lang.String taborder

type

protected java.lang.String type

value

protected java.lang.String value

optional

protected boolean optional

numeric

protected boolean numeric
Constructor Detail

AbstractInputTag

public AbstractInputTag()
Method Detail

getFieldName

protected java.lang.String getFieldName()
Return the field name.


printNameAttribute

protected void printNameAttribute()
                           throws java.io.IOException
Imprime para o buffer o atributo 'name'.

Overrides:
printNameAttribute in class AbstractHtmlTag
Throws:
java.io.IOException

printOnChangeAttribute

protected void printOnChangeAttribute()
                               throws java.io.IOException
Imprime para o buffer o atributo 'name'.

Overrides:
printOnChangeAttribute in class AbstractHtmlTag
Throws:
java.io.IOException

getValue

protected java.lang.String getValue()

printValueAttribute

protected void printValueAttribute()
                            throws java.io.IOException
Imprime para o buffer o atributo 'value'.

Throws:
java.io.IOException

printDisabledAttribute

protected void printDisabledAttribute()
                               throws java.io.IOException
Imprime para o buffer o atributo 'checked'.

Throws:
java.io.IOException

printClassAttribute

protected void printClassAttribute()
                            throws java.io.IOException
Imprime para o bufer o atributo 'class'.

Overrides:
printClassAttribute in class AbstractHtmlTag
Throws:
java.io.IOException

printOnFocusAttribute

protected void printOnFocusAttribute()
                              throws java.io.IOException
Imprime para o buffer o atributo 'onFocus'.

Overrides:
printOnFocusAttribute in class AbstractHtmlTag
Throws:
java.io.IOException

printAttributes

protected void printAttributes()
                        throws java.io.IOException
Imprime para o buffer os atributos da tag. XXX : Colocar o codigo em metodos a parte tal como acontece com o atributo 'value'.

Overrides:
printAttributes in class AbstractHtmlTag
Throws:
java.io.IOException

printJavaScriptAtBegin

protected void printJavaScriptAtBegin()
                               throws java.io.IOException
Imprime codigo em javascript, antes do inicio da tag.

Specified by:
printJavaScriptAtBegin in class AbstractHtmlTag
Throws:
java.io.IOException

getDataEntryValue

protected java.lang.String getDataEntryValue()
Devolve o valor original de uma celula.


printJavaScriptAtEnd

protected void printJavaScriptAtEnd()
                             throws java.io.IOException
Imprime codigo em javascript, depois do fim da tag.

Specified by:
printJavaScriptAtEnd in class AbstractHtmlTag
Throws:
java.io.IOException

doFinally

public void doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. This method is invoked even if an exception has occurred in the BODY of the tag, or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method should not throw an Exception. This method is intended to maintain per-invocation data integrity and resource management actions.

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class AbstractHtmlTag

setAccept

public void setAccept(java.lang.String accept)
Setter for property accept.

Parameters:
accept - New value of property accept.

setAccesskey

public void setAccesskey(java.lang.String accesskey)
Setter for property accesskey.

Parameters:
accesskey - New value of property accesskey.

setChecked

public void setChecked(java.lang.String checked)
Setter for property checked.

Parameters:
checked - New value of property checked.

setDisabled

public void setDisabled(java.lang.String disabled)
Setter for property disabled.

Parameters:
disabled - New value of property disabled.

setMaxlength

public void setMaxlength(java.lang.String maxlength)
Setter for property maxlength.

Parameters:
maxlength - New value of property maxlength.

setNotab

public void setNotab(java.lang.String notab)
Setter for property notab.

Parameters:
notab - New value of property notab.

setReadonly

public void setReadonly(java.lang.String readonly)
Setter for property readonly.

Parameters:
readonly - New value of property readonly.

setTabindex

public void setTabindex(java.lang.String tabindex)
Setter for property tabindex.

Parameters:
tabindex - New value of property tabindex.

setTaborder

public void setTaborder(java.lang.String taborder)
Setter for property taborder.

Parameters:
taborder - New value of property taborder.

setType

public void setType(java.lang.String type)
Setter for property type.

Parameters:
type - New value of property type.

setValue

public void setValue(java.lang.String value)
Setter for property value.

Parameters:
value - New value of property value.

setOptional

public void setOptional(java.lang.String optional)
Setter for property optional.

Parameters:
optional - New value of property optional.

setNumeric

public void setNumeric(boolean numeric)
Setter for property numeric.

Parameters:
numeric - New value of property numeric.