Class IntegerStringTranslator

    • Constructor Detail

      • IntegerStringTranslator

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

      • toViewFunction

        public java.util.function.Function<java.lang.Integer,​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,​java.lang.Integer> toModelFunction()
        Description copied from interface: ValueTranslator
        Function to translate a view value to a model value.
        Returns:
        the function