com.oktiva.mogno.additional
Class CurrencySpan

java.lang.Object
  extended bycom.oktiva.mogno.Component
      extended bycom.oktiva.mogno.Visual
          extended bycom.oktiva.mogno.Container
              extended bycom.oktiva.mogno.html.Span
                  extended bycom.oktiva.mogno.additional.CurrencySpan
All Implemented Interfaces:
java.lang.Cloneable

public class CurrencySpan
extends Span


Field Summary
 java.lang.Double DoubleValue
           
 java.lang.String ISO4217
           
 int maxFractionDigits
          NumberFormat attribute
 int minFractionDigits
          NumberFormat attribute
 
Fields inherited from class com.oktiva.mogno.html.Span
align, dir, lang, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup
 
Fields inherited from class com.oktiva.mogno.Container
afterEnd, content
 
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
CurrencySpan()
           
 
Method Summary
 java.lang.Double getDoubleValue()
          Get the DoubleValue value.
 java.lang.String getISO4217()
          Get the ISO4217 code of this input value.
 int getMaxFractionDigits()
          Get the MaxFractionDigits value.
 int getMinFractionDigits()
          Get the MinFractionDigits value.
 void setDoubleValue(java.lang.Double newDoubleValue)
          Set the DoubleValue value.
 void setISO4217(java.lang.String newISO4217)
          Set the ISO4217 value.
 void setMaxFractionDigits(int newMaxFractionDigits)
          Set the MaxFractionDigits value.
 void setMinFractionDigits(int newMinFractionDigits)
          Set the MinFractionDigits value.
 java.lang.String show()
          Overwritten to return the currency formatted string when is in view-only mode.
 
Methods inherited from class com.oktiva.mogno.html.Span
getAlign, getDir, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, htmlAttributes, setAlign, setDir, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup
 
Methods inherited from class com.oktiva.mogno.Container
addChildsVector, betweenColumns, betweenRows, endColumn, endContainer, endRow, getChildsVector, getContent, getFullComponentsVector, getOrderedChildNames, getOrderedChildsVector, nonAttributeGetters, orderChildsVector, selectParentComponent, setContent, startColumn, startContainer, startRow
 
Methods inherited from class com.oktiva.mogno.Visual
buildHtmlAttributes, cellhalignHtmlAttributes, cellvalignHtmlAttributes, checkSyntax, coreHtmlAttributes, descendentOf, eventsHtmlAttributes, getEvOnShow, getEvOnSyntaxError, getGridHeight, getGridWeightX, getGridWeightY, getGridWidth, getId, getLastError, getLeft, getParent, getStyle, getStyleClass, getTitle, getTop, i18nHtmlAttributes, localizableAttributes, receiveRequest, 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, 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

minFractionDigits

public int minFractionDigits
NumberFormat attribute


maxFractionDigits

public int maxFractionDigits
NumberFormat attribute


DoubleValue

public java.lang.Double DoubleValue

ISO4217

public java.lang.String ISO4217
Constructor Detail

CurrencySpan

public CurrencySpan()
Method Detail

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.

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.

getDoubleValue

public java.lang.Double getDoubleValue()
Get the DoubleValue value.

Returns:
the DoubleValue value.

setDoubleValue

public void setDoubleValue(java.lang.Double newDoubleValue)
Set the DoubleValue value.

Parameters:
newDoubleValue - The new DoubleValue value.

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 Container
Throws:
java.lang.Exception