All Known Implementing Classes:
AbstractFormatingSuggestBox, AbstractFormatingTextBox, AbstractPhoneNumberSuggestBox, IbanTextBox, Isbn10TextBox, Isbn13TextBox, IsbnTextBox, PhoneNumberCommonInterSuggestBox, PhoneNumberCommonSuggestBox, PhoneNumberDin5008InterSuggestBox, PhoneNumberDin5008SuggestBox, PhoneNumberE123InterSuggestBox, PhoneNumberE123SuggestBox, PhoneNumberMsSuggestBox, PhoneNumberUriSuggestBox, TextBoxWithFormating

public interface HasFormating
interface for widgets with formating capabilities.
Author:
Manfred Tremmel
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    formatValue(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue)
    format and set value.
    void
    formatValue(de.knightsoftnet.validators.shared.data.ValueWithPos<String> value, boolean fireEvents)
    format and set value.
    format value synchron, doesn't work for rest formatings.
    boolean
    isAllowedCharacter(char character)
    check a character if it's allowed input value.
    boolean
    isCharacterToReplace(char character)
    check a character if it's character to replace.
    boolean
    isFormatingCharacter(char character)
    check a character if it's formating character.
    void
    reformat value from widget.
    void
    reformatValue(boolean fireEvents)
    reformat value from widget.
    char
    replaceCharacter(char character)
    replace a character.
  • Method Details

    • 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> value, boolean fireEvents)
      format and set value.
      Parameters:
      value - value to format
      fireEvents - when true and value changes, a ValueChangeEvent is triggered
    • formatValueSynchron

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

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

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

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

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