com.google.gwt.widgetideas.client
Class CurrencyWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.google.gwt.widgetideas.client.CurrencyWidget
All Implemented Interfaces:
com.google.gwt.user.client.EventListener
Direct Known Subclasses:
CurrencyWidgetWithPreview

public class CurrencyWidget
extends com.google.gwt.user.client.ui.Composite

TODO:Add javadoc


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected static java.lang.String acceptableCharset
           
protected  com.google.gwt.user.client.ui.TextBox amountBox
           
protected static com.google.gwt.i18n.client.constants.CurrencyCodeMapConstants currencyCodeMapConstants
           
protected  com.google.gwt.user.client.ui.Label currencySymbol
           
protected  com.google.gwt.i18n.client.NumberFormat formatter
           
protected  com.google.gwt.user.client.ui.HorizontalPanel horizontalPanel
           
protected static com.google.gwt.i18n.client.constants.NumberConstants numberConstants
           
protected  boolean valueInitiated
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
CurrencyWidget()
          Constructs a CurrencyWidget object.
CurrencyWidget(java.lang.String currencyCode)
          Constructs a CurrencyWidget object with specified currency.
 
Method Summary
 double getAmount()
           
protected  java.lang.String getCurrencyAmountPattern()
           
protected  java.lang.String getCurrencySymbol(java.lang.String currencyCode)
           
protected  boolean isLeadingSymbol()
           
protected  java.lang.String reformatContent()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numberConstants

protected static final com.google.gwt.i18n.client.constants.NumberConstants numberConstants

currencyCodeMapConstants

protected static final com.google.gwt.i18n.client.constants.CurrencyCodeMapConstants currencyCodeMapConstants

acceptableCharset

protected static java.lang.String acceptableCharset

horizontalPanel

protected final com.google.gwt.user.client.ui.HorizontalPanel horizontalPanel

currencySymbol

protected final com.google.gwt.user.client.ui.Label currencySymbol

amountBox

protected final com.google.gwt.user.client.ui.TextBox amountBox

formatter

protected final com.google.gwt.i18n.client.NumberFormat formatter

valueInitiated

protected boolean valueInitiated
Constructor Detail

CurrencyWidget

public CurrencyWidget()
Constructs a CurrencyWidget object.


CurrencyWidget

public CurrencyWidget(java.lang.String currencyCode)
Constructs a CurrencyWidget object with specified currency.

Parameters:
currencyCode - International currency code (ISO 4217).
Method Detail

getAmount

public double getAmount()

getCurrencyAmountPattern

protected java.lang.String getCurrencyAmountPattern()

getCurrencySymbol

protected java.lang.String getCurrencySymbol(java.lang.String currencyCode)

isLeadingSymbol

protected boolean isLeadingSymbol()

reformatContent

protected java.lang.String reformatContent()