Class BMoneyStringTranslator

    • Constructor Detail

      • BMoneyStringTranslator

        public BMoneyStringTranslator​(FxTextComponent component)
        Creates a translator.
        Parameters:
        component - the text component
    • Method Detail

      • toViewFunction

        public java.util.function.Function<org.tentackle.common.BMoney,​java.lang.String> toViewFunction()
        Description copied from interface: ValueTranslator
        Function to translate a model value to a view value.
        Returns:
        the function
      • toModelFunction

        public java.util.function.Function<java.lang.String,​org.tentackle.common.BMoney> toModelFunction()
        Description copied from interface: ValueTranslator
        Function to translate a view value to a model value.
        Returns:
        the function
      • parse

        protected org.tentackle.common.BMoney parse​(java.lang.String str)
        Description copied from class: NumberStringTranslator
        Parses a string to a number.
        Overrides:
        parse in class NumberStringTranslator<org.tentackle.common.BMoney>
        Parameters:
        str - the string
        Returns:
        the number