public class DesktopCurrencyField extends DesktopTextField implements CurrencyField
CurrencyField.CurrencyLabelPosition
Field.Validator
Component.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.Wrapper
TextInputField.CaseConversion, TextInputField.CaseConversionSupported, TextInputField.CursorPositionSupported, TextInputField.EnterPressEvent, TextInputField.EnterPressListener, TextInputField.EnterPressNotifier, TextInputField.MaxLengthLimited, TextInputField.TextChangeEvent, TextInputField.TextChangeEventMode, TextInputField.TextChangeListener, TextInputField.TextChangeNotifier, TextInputField.TextSelectionSupported, TextInputField.TrimSupported
SWING_PROPERTY_CLASS, SWING_PROPERTY_ID
NAME
AUTO_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, updateEnabled
getDatasource, getDescription, getMetaProperty, getMetaPropertyPath, getValue, setDescription, setValue, updateMissingValueState
addListener, addValidator, addValueChangeListener, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeListener, removeValidator, removeValueChangeListener, setEditable, setParent, setRequired, setRequiredMessage, validate
addStyleName, 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, unwrapComposition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDatatype, setDatatype
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath
addListener, addValueChangeListener, getValue, removeListener, removeValueChangeListener, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, 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, unwrapComposition
getCaption, getDescription, setCaption, setDescription
isValid, isValidateOnCommit, validate
getIcon, setIcon
commit, discard, isBuffered, isModified, setBuffered
getTabIndex, isFocusable, setFocusable, setTabIndex
public void setCurrency(java.lang.String currency)
CurrencyField
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.setCurrency
in interface CurrencyField
currency
- currency ($, EUR, etc)public java.lang.String getCurrency()
getCurrency
in interface CurrencyField
public void setShowCurrencyLabel(boolean showCurrencyLabel)
CurrencyField
setShowCurrencyLabel
in interface CurrencyField
public boolean getShowCurrencyLabel()
getShowCurrencyLabel
in interface CurrencyField
public void setCurrencyLabelPosition(CurrencyField.CurrencyLabelPosition currencyLabelPosition)
CurrencyField
setCurrencyLabelPosition
in interface CurrencyField
currencyLabelPosition
- not-null CurrencyField.CurrencyLabelPosition
valuepublic CurrencyField.CurrencyLabelPosition getCurrencyLabelPosition()
getCurrencyLabelPosition
in interface CurrencyField
public void setDatasource(Datasource datasource, java.lang.String property)
DatasourceComponent
setDatasource
in interface DatasourceComponent
setDatasource
in class DesktopAbstractTextField<javax.swing.text.JTextComponent>