Class CurrencyField
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.field.AbstractField<CurrencyValue>
org.teamapps.ux.component.field.multicurrency.CurrencyField
- All Implemented Interfaces:
ClientObject,Component,TextInputHandlingField
-
Field Summary
FieldsFields inherited from class org.teamapps.ux.component.field.AbstractField
onBlur, onFocus, onValueChanged, onVisibilityChangedFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertUiValueToUxValue(Object value) convertUxValueToUiValue(CurrencyValue currencyValue) Converts a server-side value to a client-side field-specific value.intcom.ibm.icu.util.ULocalevoidhandleUiEvent(UiEvent event) booleanbooleanbooleanvoidsetAlphabeticKeysQueryEnabled(boolean alphabeticKeysQueryEnabled) voidsetAmount(BigDecimal amount) setCurrencies(List<CurrencyUnit> currencies) voidsetCurrency(CurrencyUnit currencyUnit) setCurrencyBeforeAmount(boolean currencyBeforeAmount) setCurrencySymbolsEnabled(boolean currencySymbolsEnabled) voidsetFixedPrecision(int fixedPrecision) voidvoidsetULocale(com.ibm.icu.util.ULocale locale) Methods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, clearValidatorMessages, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, isEmpty, isEmptyValue, isRequired, isValid, isValueChangedByClient, isValueLocked, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setRequiredIfVisibleAndEditable, setValue, setValueChangedByClient, setVisible, validateMethods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, toggleCssClass, toString, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.ClientObject
handleUiQueryMethods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClassMethods inherited from interface org.teamapps.ux.component.field.TextInputHandlingField
defaultHandleTextInputEvent
-
Field Details
-
onTextInput
-
onSpecialKeyPressed
-
-
Constructor Details
-
CurrencyField
public CurrencyField() -
CurrencyField
-
-
Method Details
-
createUiComponent
- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
- Specified by:
handleUiEventin interfaceClientObject- Overrides:
handleUiEventin classAbstractField<CurrencyValue>
-
getCurrencies
-
setCurrencies
-
convertUxValueToUiValue
Description copied from class:AbstractFieldConverts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!- Overrides:
convertUxValueToUiValuein classAbstractField<CurrencyValue>- Parameters:
currencyValue- the server-side value- Returns:
- the object to be sent to the ui
-
convertUiValueToUxValue
- Overrides:
convertUiValueToUxValuein classAbstractField<CurrencyValue>
-
getCurrency
-
setCurrency
-
getAmount
-
setAmount
-
getFixedPrecision
public int getFixedPrecision() -
isCurrencyBeforeAmount
public boolean isCurrencyBeforeAmount() -
setCurrencyBeforeAmount
-
isCurrencySymbolsEnabled
public boolean isCurrencySymbolsEnabled() -
setCurrencySymbolsEnabled
-
isAlphabeticKeysQueryEnabled
public boolean isAlphabeticKeysQueryEnabled() -
setFixedPrecision
public void setFixedPrecision(int fixedPrecision) -
setAlphabeticKeysQueryEnabled
public void setAlphabeticKeysQueryEnabled(boolean alphabeticKeysQueryEnabled) -
getLocale
-
getULocale
public com.ibm.icu.util.ULocale getULocale() -
setLocale
-
setULocale
public void setULocale(com.ibm.icu.util.ULocale locale) -
onTextInput
- Specified by:
onTextInputin interfaceTextInputHandlingField
-
onSpecialKeyPressed
- Specified by:
onSpecialKeyPressedin interfaceTextInputHandlingField
-