pt.moredata.dataentry.taglibs
Class OptionTag

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
                      extended bypt.moredata.dataentry.taglibs.OptionTag
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

public class OptionTag
extends AbstractInputTag
implements javax.servlet.jsp.tagext.TryCatchFinally

Company MoreData

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

Field Summary
 
Fields inherited from class pt.moredata.dataentry.taglibs.AbstractInputTag
accept, accesskey, checked, disabled, maxlength, notab, numeric, optional, readonly, tabindex, taborder, type, 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, 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
OptionTag()
           
 
Method Summary
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
 int doStartTag()
          Processa o inicio da tag.
protected  void printAttributes()
          Imprime para o buffer os atributos da tag.
protected  void printEndTag()
          Imprime para o buffer o fim da tag.
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 'onChange'.
protected  void printOnFocusAttribute()
          Imprime para o buffer o atributo 'onFocus'.
protected  void printSelectedAttribute()
          Imprime para o buffer o atributo 'selected'.
protected  void printStartTag()
          Imprime para o buffer o inicio da tag.
 void setLang(java.lang.String lang)
          Setter for property lang.
 void setSelected(java.lang.String selected)
          Setter for property selected.
 
Methods inherited from class pt.moredata.dataentry.taglibs.AbstractInputTag
getDataEntryValue, getFieldName, getValue, printClassAttribute, printDisabledAttribute, printValueAttribute, setAccept, setAccesskey, setChecked, setDisabled, setMaxlength, setNotab, setNumeric, setOptional, setReadonly, setTabindex, setTaborder, setType, setValue
 
Methods inherited from class pt.moredata.dataentry.taglibs.AbstractHtmlTag
init, setDataEntryId
 
Methods inherited from class pt.moredata.taglibs.widgets.AbstractHtmlTag
doCatch, doEndTag, printAltAttribute, printBodyTag, printOnSubmitAttribute, printSrcAttribute, setAlign, setAlt, setBorder, setClass, setDir, setId, 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
 

Constructor Detail

OptionTag

public OptionTag()
Method Detail

printStartTag

protected void printStartTag()
                      throws java.io.IOException
Imprime para o buffer o inicio da tag.

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

printEndTag

protected void printEndTag()
                    throws java.io.IOException
Imprime para o buffer o fim da tag.

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

printJavaScriptAtBegin

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

Overrides:
printJavaScriptAtBegin in class AbstractInputTag
Throws:
java.io.IOException

printJavaScriptAtEnd

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

Overrides:
printJavaScriptAtEnd in class AbstractInputTag
Throws:
java.io.IOException

printSelectedAttribute

protected void printSelectedAttribute()
                               throws java.io.IOException
Imprime para o buffer o atributo 'selected'.

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 AbstractInputTag
Throws:
java.io.IOException

printOnChangeAttribute

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

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

printNameAttribute

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

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

printOnFocusAttribute

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

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

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Processa o inicio da tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class AbstractHtmlTag
Returns:
A accao que deve ser tomada pelo servidor de .jsp apos ler o inicio da tag.
Throws:
javax.servlet.jsp.JspTagException

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 AbstractInputTag

setLang

public void setLang(java.lang.String lang)
Setter for property lang.

Overrides:
setLang in class AbstractHtmlTag
Parameters:
lang - New value of property lang.

setSelected

public void setSelected(java.lang.String selected)
Setter for property selected.

Parameters:
selected - New value of property selected.