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
public class CurrencyField extends AbstractField<CurrencyValue> implements TextInputHandlingField
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCurrencyField.Currency -
Field Summary
Fields Modifier and Type Field Description Event<SpecialKey>onSpecialKeyPressedEvent<java.lang.String>onTextInputFields inherited from class org.teamapps.ux.component.field.AbstractField
onValueChanged, onVisibilityChangedFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors Constructor Description CurrencyField() -
Method Summary
Modifier and Type Method Description CurrencyValueconvertUiValueToUxValue(java.lang.Object value)java.lang.ObjectconvertUxValueToUiValue(CurrencyValue currencyValue)Converts a server-side value to a client-side field-specific value.org.teamapps.dto.UiFieldcreateUiComponent()java.util.List<CurrencyField.Currency>getCurrencyList()CurrencyField.CurrencygetDefaultCurrency()java.util.LocalegetLocale()intgetPrecision()com.ibm.icu.util.ULocalegetULocale()voidhandleUiEvent(org.teamapps.dto.UiEvent event)booleanisAlphaKeysQueryForCurrency()booleanisShowCurrencyBeforeAmount()booleanisShowCurrencySymbol()Event<SpecialKey>onSpecialKeyPressed()Event<java.lang.String>onTextInput()voidsetAlphaKeysQueryForCurrency(boolean alphaKeysQueryForCurrency)CurrencyFieldsetCurrencyList(java.util.List<CurrencyField.Currency> currencyList)CurrencyFieldsetDefaultCurrency(CurrencyField.Currency defaultCurrency)voidsetLocale(java.util.Locale locale)voidsetPrecision(int precision)CurrencyFieldsetShowCurrencyBeforeAmount(boolean showCurrencyBeforeAmount)CurrencyFieldsetShowCurrencySymbol(boolean showCurrencySymbol)voidsetULocale(com.ibm.icu.util.ULocale locale)Methods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, clearValidatorMessages, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, isEmpty, isRequired, isValid, isValueChangedByClient, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setRequiredIfVisibleAndEditable, setValue, 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.Component
setAttribute, setCssStyle, 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()
-
-
Method Details
-
createUiComponent
public org.teamapps.dto.UiField createUiComponent()- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)- Specified by:
handleUiEventin interfaceClientObject- Overrides:
handleUiEventin classAbstractField<CurrencyValue>
-
getDefaultCurrency
-
setDefaultCurrency
-
getCurrencyList
-
setCurrencyList
-
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>
-
getPrecision
public int getPrecision() -
isShowCurrencyBeforeAmount
public boolean isShowCurrencyBeforeAmount() -
setShowCurrencyBeforeAmount
-
isShowCurrencySymbol
public boolean isShowCurrencySymbol() -
setShowCurrencySymbol
-
isAlphaKeysQueryForCurrency
public boolean isAlphaKeysQueryForCurrency() -
setPrecision
public void setPrecision(int precision) -
setAlphaKeysQueryForCurrency
public void setAlphaKeysQueryForCurrency(boolean alphaKeysQueryForCurrency) -
getLocale
public java.util.Locale getLocale() -
getULocale
public com.ibm.icu.util.ULocale getULocale() -
setLocale
public void setLocale(java.util.Locale locale) -
setULocale
public void setULocale(com.ibm.icu.util.ULocale locale) -
onTextInput
- Specified by:
onTextInputin interfaceTextInputHandlingField
-
onSpecialKeyPressed
- Specified by:
onSpecialKeyPressedin interfaceTextInputHandlingField
-