org.mentawai.tag.html.dyntag.inputMoney
Class InputMoney

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mentawai.tag.util.PrintTag
              extended by org.mentawai.tag.html.HTMLTag
                  extended by org.mentawai.tag.html.dyntag.Base
                      extended by org.mentawai.tag.html.dyntag.BaseTag
                          extended by org.mentawai.tag.html.dyntag.inputText.InputText
                              extended by org.mentawai.tag.html.dyntag.inputMoney.InputMoney
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class InputMoney
extends InputText

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mentawai.tag.html.dyntag.BaseTag
BASE_DIR
 
Fields inherited from class org.mentawai.tag.html.HTMLTag
cript
 
Fields inherited from class org.mentawai.tag.util.PrintTag
action, application, loc, maxToPrint, noHTML, req, res, session
 
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
InputMoney()
           
 
Method Summary
 StringBuffer buildTag()
          Method to build tag
 Float convert(Object numero)
           
protected  String customizeMask(int decimals, String thousands, String decimal, Object number)
           
protected  String formatNumber(Object object, int decimals, String decimal)
           
 String getDec_point()
           
 int getDecimals()
           
 String getStringToPrint()
          Override this method to return what you want to print in the screen.
 String getThousands_sep()
           
 boolean isInPlaceTagIntegration()
          Este metodo verifica se esta tag esta dentro da tag inplace caso esteja, retorna true e nao printa a tag, e apenas passa os parametros para a tag inplace
protected  String makeZeros(int dec)
           
protected  void prepareValue(StringBuffer results)
          Method to prepare value component
 void setDec_point(String dec_point)
           
 void setDecimals(int decimals)
           
 void setThousands_sep(String thousands_sep)
           
 
Methods inherited from class org.mentawai.tag.html.dyntag.inputText.InputText
getExtraAttributes, getMaxlength, getReadonly, getSize, prepareEventHandlers, setExtra, setMaxlength, setReadonly, setSeparator, setSize
 
Methods inherited from class org.mentawai.tag.html.dyntag.BaseTag
getDisabled, getI18nByKey, getId, getKeyI18n, getKlass, getKlassStyle, getName, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getTagClose, getTextAlign, getTitle, getValue, isNoPrefix, isXhtml, prepareFocusEvents, prepareKeyEvents, prepareMouseEvents, prepareTextEvents, setDisabled, setId, setKeyI18n, setKlass, setKlassStyle, setName, setNoPrefix, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setTextAlign, setTitle, setValue
 
Methods inherited from class org.mentawai.tag.html.dyntag.Base
prepareAttribute
 
Methods inherited from class org.mentawai.tag.html.HTMLTag
contains, contains, findObject, findObject, findValue, findValue, findValues, findValues, processCriptedName, processCriptValue, setCript
 
Methods inherited from class org.mentawai.tag.util.PrintTag
doEndTag, doStartTag, getBody, getBooleanValue, getSessionObj, getValue, getValue, getValue, getValue, getValue, setMax, setNoHTML
 
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, getParent, 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.Tag
getParent, setPageContext, setParent
 

Constructor Detail

InputMoney

public InputMoney()
Method Detail

isInPlaceTagIntegration

public boolean isInPlaceTagIntegration()
Este metodo verifica se esta tag esta dentro da tag inplace caso esteja, retorna true e nao printa a tag, e apenas passa os parametros para a tag inplace

Overrides:
isInPlaceTagIntegration in class InputText
Returns:
boolean true if inner InPlaceTag

buildTag

public StringBuffer buildTag()
Method to build tag

Overrides:
buildTag in class InputText

prepareValue

protected void prepareValue(StringBuffer results)
Description copied from class: InputText
Method to prepare value component

Overrides:
prepareValue in class InputText

makeZeros

protected String makeZeros(int dec)

formatNumber

protected String formatNumber(Object object,
                              int decimals,
                              String decimal)

customizeMask

protected String customizeMask(int decimals,
                               String thousands,
                               String decimal,
                               Object number)

convert

public Float convert(Object numero)

getStringToPrint

public String getStringToPrint()
                        throws javax.servlet.jsp.JspException
Description copied from class: PrintTag
Override this method to return what you want to print in the screen.

Overrides:
getStringToPrint in class InputText
Returns:
The string to print.
Throws:
javax.servlet.jsp.JspException

getDec_point

public String getDec_point()
Returns:
Returns the dec_point.

setDec_point

public void setDec_point(String dec_point)
Parameters:
dec_point - The dec_point to set.

getDecimals

public int getDecimals()
Returns:
Returns the decimals.

setDecimals

public void setDecimals(int decimals)
Parameters:
decimals - The decimals to set.

getThousands_sep

public String getThousands_sep()
Returns:
Returns the thousands_sep.

setThousands_sep

public void setThousands_sep(String thousands_sep)
Parameters:
thousands_sep - The thousands_sep to set.


Copyright © 2013. All Rights Reserved.