public interface CurrencyField extends Field, Component.Buffered
| Modifier and Type | Interface and Description |
|---|---|
static class |
CurrencyField.CurrencyLabelPosition
Defines where the currency label is located.
|
Field.ValidatorComponent.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCurrency() |
CurrencyField.CurrencyLabelPosition |
getCurrencyLabelPosition() |
Datatype |
getDatatype() |
boolean |
getShowCurrencyLabel() |
void |
setCurrency(java.lang.String currency)
Sets the given
currency to the field. |
void |
setCurrencyLabelPosition(CurrencyField.CurrencyLabelPosition currencyLabelPosition)
Sets where the currency label will be located: to the left or to the right from the text input component.
|
void |
setDatatype(Datatype datatype)
Sets the given
datatype to the component. |
void |
setShowCurrencyLabel(boolean showCurrencyLabel)
Enables or disables currency label displaying.
|
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessagegetDatasource, getMetaProperty, getMetaPropertyPath, setDatasourceaddListener, addValueChangeListener, getValue, removeListener, removeValueChangeListener, setValueisEditable, isEditableWithParent, setEditablegetFrame, setFrameaddStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapCompositiongetCaption, getDescription, setCaption, setDescriptionisValid, isValidateOnCommit, validategetIcon, setIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledcommit, discard, isBuffered, isModified, setBufferedstatic final java.lang.String NAME
void setCurrency(java.lang.String currency)
currency to the field. Currency label will be displayed next to the text input
component if the showCurrency option is enabled.
Recommended max currency length - 3 character.currency - currency ($, EUR, etc)java.lang.String getCurrency()
void setShowCurrencyLabel(boolean showCurrencyLabel)
boolean getShowCurrencyLabel()
void setCurrencyLabelPosition(CurrencyField.CurrencyLabelPosition currencyLabelPosition)
currencyLabelPosition - not-null CurrencyField.CurrencyLabelPosition valueCurrencyField.CurrencyLabelPosition getCurrencyLabelPosition()
void setDatatype(Datatype datatype)
datatype to the component. Its value will be formatted according to this
datatype.datatype - Datatype instanceDatatype getDatatype()