public class DesktopCurrencyField extends DesktopTextField implements CurrencyField
CurrencyField.CurrencyLabelPositionField.ValidatorComponent.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.WrapperTextInputField.CaseConversion, TextInputField.CaseConversionSupported, TextInputField.CursorPositionSupported, TextInputField.EnterPressEvent, TextInputField.EnterPressListener, TextInputField.EnterPressNotifier, TextInputField.MaxLengthLimited, TextInputField.TextChangeEvent, TextInputField.TextChangeEventMode, TextInputField.TextChangeListener, TextInputField.TextChangeNotifier, TextInputField.TextSelectionSupported, TextInputField.TrimSupportedSWING_PROPERTY_CLASS, SWING_PROPERTY_IDNAMEAUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Constructor and Description |
|---|
DesktopCurrencyField() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCurrency() |
CurrencyField.CurrencyLabelPosition |
getCurrencyLabelPosition() |
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 |
setDatasource(Datasource datasource,
java.lang.String property)
Set datasource and its property.
|
void |
setShowCurrencyLabel(boolean showCurrencyLabel)
Enables or disables currency label displaying.
|
addEnterPressListener, addTextChangeListener, commit, discard, getCaseConversion, getDatatype, getFormatter, getInputPrompt, getMaxLength, getRawValue, getTextChangeEventMode, getTextChangeTimeout, isBuffered, isModified, isTrimming, removeEnterPressListener, removeTextChangeListener, selectAll, setBuffered, setCaseConversion, setCursorPosition, setDatatype, setFormatter, setInputPrompt, setMaxLength, setSelectionRange, setTextChangeEventMode, setTextChangeTimeout, setTrimming, updateEnabledgetDatasource, getDescription, getMetaProperty, getMetaPropertyPath, getValue, setDescription, setValue, updateMissingValueStateaddListener, addValidator, addValueChangeListener, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeListener, removeValidator, removeValueChangeListener, setEditable, setParent, setRequired, setRequiredMessage, validateaddStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getComposition, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setContainer, setDebugId, setEnabled, setExpanded, setFrame, setHeight, setIcon, setId, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapCompositionequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatatype, setDatatypeaddValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessagegetDatasource, getMetaProperty, getMetaPropertyPathaddListener, 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, setIconcommit, discard, isBuffered, isModified, setBufferedgetTabIndex, isFocusable, setFocusable, setTabIndexpublic void setCurrency(java.lang.String currency)
CurrencyFieldcurrency 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.setCurrency in interface CurrencyFieldcurrency - currency ($, EUR, etc)public java.lang.String getCurrency()
getCurrency in interface CurrencyFieldpublic void setShowCurrencyLabel(boolean showCurrencyLabel)
CurrencyFieldsetShowCurrencyLabel in interface CurrencyFieldpublic boolean getShowCurrencyLabel()
getShowCurrencyLabel in interface CurrencyFieldpublic void setCurrencyLabelPosition(CurrencyField.CurrencyLabelPosition currencyLabelPosition)
CurrencyFieldsetCurrencyLabelPosition in interface CurrencyFieldcurrencyLabelPosition - not-null CurrencyField.CurrencyLabelPosition valuepublic CurrencyField.CurrencyLabelPosition getCurrencyLabelPosition()
getCurrencyLabelPosition in interface CurrencyFieldpublic void setDatasource(Datasource datasource, java.lang.String property)
DatasourceComponentsetDatasource in interface DatasourceComponentsetDatasource in class DesktopAbstractTextField<javax.swing.text.JTextComponent>