com.oktiva.mogno.additional
Class DoubleInput

java.lang.Object
  extended bycom.oktiva.mogno.Component
      extended bycom.oktiva.mogno.Visual
          extended bycom.oktiva.mogno.html.Input
              extended bycom.oktiva.mogno.additional.DoubleInput
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
CurrencyInputView, DoubleInputView

public class DoubleInput
extends Input

TODO Add javascript to verify the syntax.


Field Summary
 int maxFractionDigits
          NumberFormat attribute
 java.lang.Double maxValue
          Attribute to be used when checking syntax.
 int minFractionDigits
          NumberFormat attribute
 java.lang.Double minValue
          Attribute to be used when checking syntax.
 
Fields inherited from class com.oktiva.mogno.html.Input
accept, accesskey, alt, checked, dir, disabled, evOnChange, evOnClick, ismap, label, lang, maxlength, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, radiogroup, readonly, required, size, src, tabindex, type, uploadContentType, uploadInputStream, usemap, value, x, y
 
Fields inherited from class com.oktiva.mogno.Visual
evOnShow, evOnSyntaxError, gridHeight, gridWeightX, gridWeightY, gridWidth, id, lastError, left, parent, problematic, style, styleClass, title, top
 
Fields inherited from class com.oktiva.mogno.Component
bag, componentFiler, componentFilerParams, designing, eventQueue, evOnCreate, name, owned, ownedClasses, owner, tag, xmlFileName
 
Constructor Summary
DoubleInput()
          Creates a new instance of DoubleInput
 
Method Summary
 void checkSyntax()
          Check the syntax for this component.
 java.lang.Double getDoubleValue()
          Return the value as an Double object.
 int getMaxFractionDigits()
          Get the MaxFractionDigits value.
 java.lang.Double getMaxValue()
           
 int getMinFractionDigits()
          Get the MinFractionDigits value.
 java.lang.Double getMinValue()
           
 java.util.Vector nonAttributeGetters()
          Method used to define what methods started with "get" or "is" are not component attributes getter methods.
 void receiveRequest(javax.servlet.http.HttpServletRequest request)
          Receive the request and rebuild the properties using the data that the user has filled in.
 void setDoubleValue(java.lang.Double value)
          Set the value of the input passing a double value
 void setMaxFractionDigits(int newMaxFractionDigits)
          Set the MaxFractionDigits value.
 void setMaxValue(java.lang.Double minValue)
           
 void setMinFractionDigits(int newMinFractionDigits)
          Set the MinFractionDigits value.
 void setMinValue(java.lang.Double minValue)
           
 void setNumberFormat(java.text.NumberFormat numberFormat)
          Sets a different NumberFormat object to use when setting the value from a Double.
 
Methods inherited from class com.oktiva.mogno.html.Input
getAccept, getAccesskey, getAlt, getChecked, getDir, getDisabled, getEvOnChange, getEvOnClick, getId, getIsmap, getLabel, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRadiogroup, getReadonly, getRequired, getSize, getSrc, getTabindex, getType, getUploadContentType, getUploadInputStream, getUsemap, getValue, getX, getY, htmlAttributes, setAccept, setAccesskey, setAlt, setChecked, setDir, setDisabled, setEvOnChange, setEvOnClick, setIsmap, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRadiogroup, setReadonly, setRequired, setSize, setSrc, setTabindex, setType, setUploadContentType, setUploadInputStream, setUsemap, setValue, setX, setY, show
 
Methods inherited from class com.oktiva.mogno.Visual
buildHtmlAttributes, cellhalignHtmlAttributes, cellvalignHtmlAttributes, coreHtmlAttributes, descendentOf, eventsHtmlAttributes, getEvOnShow, getEvOnSyntaxError, getGridHeight, getGridWeightX, getGridWeightY, getGridWidth, getLastError, getLeft, getParent, getStyle, getStyleClass, getTitle, getTop, i18nHtmlAttributes, localizableAttributes, setEvOnShow, setEvOnSyntaxError, setGridHeight, setGridWeightX, setGridWeightY, setGridWidth, setId, setLastError, setLeft, setParent, setStyle, setStyleClass, setTitle, setTop, showHtmlAttributes
 
Methods inherited from class com.oktiva.mogno.Component
attribsHash, createOwnedComponents, dispatch, dispatchAll, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOrderedChildNames, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, putInBag, queue, registerChild, removeFromBag, serializedBag, setBag, setComponentFiler, setComponentFilerParams, setDesigning, setEvOnCreate, setName, setOwner, setProperties, store, unserializeBag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minValue

public java.lang.Double minValue
Attribute to be used when checking syntax.


maxValue

public java.lang.Double maxValue
Attribute to be used when checking syntax.


minFractionDigits

public int minFractionDigits
NumberFormat attribute


maxFractionDigits

public int maxFractionDigits
NumberFormat attribute

Constructor Detail

DoubleInput

public DoubleInput()
Creates a new instance of DoubleInput

Method Detail

receiveRequest

public void receiveRequest(javax.servlet.http.HttpServletRequest request)
Description copied from class: Visual
Receive the request and rebuild the properties using the data that the user has filled in. This is a stub method

Overrides:
receiveRequest in class Input

checkSyntax

public void checkSyntax()
                 throws SyntaxErrorException
Description copied from class: Visual
Check the syntax for this component. This is a stub method.

Overrides:
checkSyntax in class Input
Throws:
SyntaxErrorException

getMinValue

public java.lang.Double getMinValue()

setMinValue

public void setMinValue(java.lang.Double minValue)

getMaxValue

public java.lang.Double getMaxValue()

setMaxValue

public void setMaxValue(java.lang.Double minValue)

getDoubleValue

public java.lang.Double getDoubleValue()
                                throws SyntaxErrorException
Return the value as an Double object.

Throws:
SyntaxErrorException - If the content of the value attribute don't represent an valid Double.

setDoubleValue

public void setDoubleValue(java.lang.Double value)
Set the value of the input passing a double value


getMinFractionDigits

public int getMinFractionDigits()
Get the MinFractionDigits value.

Returns:
the MinFractionDigits value.

setMinFractionDigits

public void setMinFractionDigits(int newMinFractionDigits)
Set the MinFractionDigits value.

Parameters:
newMinFractionDigits - The new MinFractionDigits value.

getMaxFractionDigits

public int getMaxFractionDigits()
Get the MaxFractionDigits value.

Returns:
the MaxFractionDigits value.

setMaxFractionDigits

public void setMaxFractionDigits(int newMaxFractionDigits)
Set the MaxFractionDigits value.

Parameters:
newMaxFractionDigits - The new MaxFractionDigits value.

nonAttributeGetters

public java.util.Vector nonAttributeGetters()
Description copied from class: Component
Method used to define what methods started with "get" or "is" are not component attributes getter methods.
This method in all subclasses of Component must start with the following line:
Vector v = super.nonAttributeGetters();
and end with the following:
return v;

Overrides:
nonAttributeGetters in class Input

setNumberFormat

public void setNumberFormat(java.text.NumberFormat numberFormat)
Sets a different NumberFormat object to use when setting the value from a Double.
When using this method, maxFractionDigits and minFractionDigits are ignored.

Parameters:
numberFormat - New value of property numberFormat.
See Also:
setDoubleValue(java.lang.Double)