Interface HasFormating

    • Method Detail

      • reformatValue

        void reformatValue()
        reformat value from widget.
      • reformatValue

        void reformatValue​(boolean fireEvents)
        reformat value from widget.
        Parameters:
        fireEvents - when true and value changes, a ValueChangeEvent is triggered
      • formatValue

        void formatValue​(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue)
        format and set value.
        Parameters:
        pvalue - value to format
      • formatValue

        void formatValue​(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue,
                         boolean fireEvents)
        format and set value.
        Parameters:
        pvalue - value to format
        fireEvents - when true and value changes, a ValueChangeEvent is triggered
      • formatValueSynchron

        String formatValueSynchron​(String pvalue)
        format value synchron, doesn't work for rest formatings.
        Parameters:
        pvalue - to format
        Returns:
        formated value
      • isAllowedCharacter

        boolean isAllowedCharacter​(char pcharacter)
        check a character if it's allowed input value.
        Parameters:
        pcharacter - character to check
        Returns:
        true if character is allowed
      • isCharacterToReplace

        boolean isCharacterToReplace​(char pcharacter)
        check a character if it's character to replace.
        Parameters:
        pcharacter - character to check
        Returns:
        true if character has to be replaced
      • isFormatingCharacter

        boolean isFormatingCharacter​(char pcharacter)
        check a character if it's formating character.
        Parameters:
        pcharacter - character to check
        Returns:
        true if character is a formating character
      • replaceCharacter

        char replaceCharacter​(char pcharacter)
        replace a character.
        Parameters:
        pcharacter - to replace
        Returns:
        replacement character