com.oktiva.mogno.additional
Class CurrencyInputView

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
                  extended bycom.oktiva.mogno.additional.CurrencyInputView
All Implemented Interfaces:
java.lang.Cloneable, ComponentView

public class CurrencyInputView
extends DoubleInput
implements ComponentView


Field Summary
 java.lang.String ISO4217
           
 boolean viewOnly
           
 
Fields inherited from class com.oktiva.mogno.additional.DoubleInput
maxFractionDigits, maxValue, minFractionDigits, minValue
 
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
CurrencyInputView()
           
 
Method Summary
 java.lang.String getISO4217()
          Get the ISO4217 code of this input value.
 boolean isViewOnly()
           
 void setISO4217(java.lang.String newISO4217)
          Set the ISO4217 value.
 void setViewOnly(boolean viewOnly)
           
 java.lang.String show()
          Overwritten to return the currency formatted string when is in view-only mode.
 
Methods inherited from class com.oktiva.mogno.additional.DoubleInput
checkSyntax, getDoubleValue, getMaxFractionDigits, getMaxValue, getMinFractionDigits, getMinValue, nonAttributeGetters, receiveRequest, setDoubleValue, setMaxFractionDigits, setMaxValue, setMinFractionDigits, setMinValue, setNumberFormat
 
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
 
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

viewOnly

public boolean viewOnly

ISO4217

public java.lang.String ISO4217
Constructor Detail

CurrencyInputView

public CurrencyInputView()
Method Detail

isViewOnly

public boolean isViewOnly()
Specified by:
isViewOnly in interface ComponentView

setViewOnly

public void setViewOnly(boolean viewOnly)
Specified by:
setViewOnly in interface ComponentView

getISO4217

public java.lang.String getISO4217()
Get the ISO4217 code of this input value. defaults to "BRL" (Brazillian Real).

Returns:
the ISO4217 value.

setISO4217

public void setISO4217(java.lang.String newISO4217)
Set the ISO4217 value. defaults to "BRL" (Brazillian Real).

Parameters:
newISO4217 - The new ISO4217 code.

show

public java.lang.String show()
                      throws java.lang.Exception
Overwritten to return the currency formatted string when is in view-only mode.

Overrides:
show in class Input
Returns:
The html code for this component.
Throws:
java.lang.Exception