Class CurrencyField

java.lang.Object
All Implemented Interfaces:
ClientObject, Component, TextInputHandlingField

public class CurrencyField
extends AbstractField<CurrencyValue>
implements TextInputHandlingField
  • Field Details

    • onTextInput

      public final Event<java.lang.String> onTextInput
    • onSpecialKeyPressed

      public final Event<SpecialKey> onSpecialKeyPressed
  • Constructor Details

    • CurrencyField

      public CurrencyField()
  • Method Details

    • createUiComponent

      public org.teamapps.dto.UiField createUiComponent()
      Specified by:
      createUiComponent in class AbstractComponent
    • handleUiEvent

      public void handleUiEvent​(org.teamapps.dto.UiEvent event)
      Specified by:
      handleUiEvent in interface ClientObject
      Overrides:
      handleUiEvent in class AbstractField<CurrencyValue>
    • getDefaultCurrency

      public CurrencyField.Currency getDefaultCurrency()
    • setDefaultCurrency

      public CurrencyField setDefaultCurrency​(CurrencyField.Currency defaultCurrency)
    • getCurrencyList

      public java.util.List<CurrencyField.Currency> getCurrencyList()
    • setCurrencyList

      public CurrencyField setCurrencyList​(java.util.List<CurrencyField.Currency> currencyList)
    • convertUxValueToUiValue

      public java.lang.Object convertUxValueToUiValue​(CurrencyValue currencyValue)
      Description copied from class: AbstractField
      Converts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!
      Overrides:
      convertUxValueToUiValue in class AbstractField<CurrencyValue>
      Parameters:
      currencyValue - the server-side value
      Returns:
      the object to be sent to the ui
    • convertUiValueToUxValue

      public CurrencyValue convertUiValueToUxValue​(java.lang.Object value)
      Overrides:
      convertUiValueToUxValue in class AbstractField<CurrencyValue>
    • getPrecision

      public int getPrecision()
    • isShowCurrencyBeforeAmount

      public boolean isShowCurrencyBeforeAmount()
    • setShowCurrencyBeforeAmount

      public CurrencyField setShowCurrencyBeforeAmount​(boolean showCurrencyBeforeAmount)
    • isShowCurrencySymbol

      public boolean isShowCurrencySymbol()
    • setShowCurrencySymbol

      public CurrencyField setShowCurrencySymbol​(boolean showCurrencySymbol)
    • 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

      public Event<java.lang.String> onTextInput()
      Specified by:
      onTextInput in interface TextInputHandlingField
    • onSpecialKeyPressed

      public Event<SpecialKey> onSpecialKeyPressed()
      Specified by:
      onSpecialKeyPressed in interface TextInputHandlingField