Class ShortStringTranslator

    • Constructor Detail

      • ShortStringTranslator

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

      • toViewFunction

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