public class

NumberLabel

extends ValueLabel<T>
java.lang.Object
   ↳ com.google.gwt.user.client.ui.UIObject
     ↳ com.google.gwt.user.client.ui.Widget
       ↳ com.google.gwt.user.client.ui.LabelBase<T>
         ↳ com.google.gwt.user.client.ui.ValueLabel<T>
           ↳ com.google.gwt.user.client.ui.NumberLabel<T extends java.lang.Number>

Class Overview

Extends ValueLabel for convenience when dealing with numbers and NumberFormat, especially in UiBinder templates. (Note that this class does not accept renderers. To do so use ValueLabel directly.)

Use in UiBinder Templates

In UiBinder templates, the NumberFormat can be specified with one of these attributes:
format
a reference to a NumberFormat instance.
predefinedFormat
a predefined format (see below for the list of acceptable values).
customFormat
a number format pattern that can be passed to getFormat(String). See below for a way of specifying a currency code.
The valid values for the predefinedFormat attributes are:
DECIMAL
the standard decimal format for the current locale, as given by getDecimalFormat().
CURRENCY
the standard currency format for the current locale, as given by getCurrencyFormat(). See below for a way of specifying a currency code.
PERCENT
the standard percent format for the current locale, as given by getPercentFormat().
SCIENTIFIC
the standard scientific format for the current locale, as given by getScientificFormat().
When using predefinedFormat="CURRENCY" or a customFormat, you can specify a currency code using either of the following attributes:
currencyData
a reference to a CurrencyData instance.
currencyCode
an ISO4217 currency code.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
[Expand]
Inherited Fields
From interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
From interface com.google.gwt.user.client.ui.HasHorizontalAlignment
Public Constructors
NumberLabel()
NumberLabel(NumberFormat format)
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.ValueLabel
From class com.google.gwt.user.client.ui.LabelBase
From class com.google.gwt.user.client.ui.Widget
From class com.google.gwt.user.client.ui.UIObject
From class java.lang.Object
From interface com.google.gwt.editor.client.IsEditor
From interface com.google.gwt.event.logical.shared.HasAttachHandlers
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.i18n.shared.HasDirectionEstimator
From interface com.google.gwt.user.client.EventListener
From interface com.google.gwt.user.client.TakesValue
From interface com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
From interface com.google.gwt.user.client.ui.HasHorizontalAlignment
From interface com.google.gwt.user.client.ui.HasWordWrap
From interface com.google.gwt.user.client.ui.IsWidget

Public Constructors

public NumberLabel ()

public NumberLabel (NumberFormat format)