T
- The exact type of numberpublic class NumberLabel<T extends Number> extends ValueLabel<T>
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.)
UiBinder
templates, the
NumberFormat
can be specified with one of these attributes:
NumberFormat
instance.NumberFormat.getFormat(String)
. See below for a way of specifying a
currency code.predefinedFormat
attributes are:
NumberFormat.getDecimalFormat()
.NumberFormat.getCurrencyFormat()
. See below for a way of specifying a
currency code.NumberFormat.getPercentFormat()
.NumberFormat.getScientificFormat()
.predefinedFormat="CURRENCY"
or a customFormat
, you
can specify a currency code using either of the following attributes:
CurrencyData
instance.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstant
DEBUG_ID_PREFIX
ALIGN_CONTENT_END, ALIGN_CONTENT_START
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
Constructor and Description |
---|
NumberLabel() |
NumberLabel(NumberFormat format) |
asEditor, getValue, setValue, wrap, wrap
getAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignment
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public NumberLabel()
public NumberLabel(NumberFormat format)
Copyright © 2018. All rights reserved.