Interface HasFormating
-
- All Known Implementing Classes:
AbstractFormatingSuggestBox,AbstractFormatingTextBox,AbstractPhoneNumberSuggestBox,IbanTextBox,Isbn10TextBox,Isbn13TextBox,IsbnTextBox,PhoneNumberCommonInterSuggestBox,PhoneNumberCommonSuggestBox,PhoneNumberDin5008InterSuggestBox,PhoneNumberDin5008SuggestBox,PhoneNumberE123InterSuggestBox,PhoneNumberE123SuggestBox,PhoneNumberMsSuggestBox,PhoneNumberUriSuggestBox,TextBoxWithFormating
public interface HasFormatinginterface for widgets with formating capabilities.- Author:
- Manfred Tremmel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidformatValue(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue)format and set value.voidformatValue(de.knightsoftnet.validators.shared.data.ValueWithPos<String> pvalue, boolean fireEvents)format and set value.StringformatValueSynchron(String pvalue)format value synchron, doesn't work for rest formatings.booleanisAllowedCharacter(char pcharacter)check a character if it's allowed input value.booleanisCharacterToReplace(char pcharacter)check a character if it's character to replace.booleanisFormatingCharacter(char pcharacter)check a character if it's formating character.voidreformatValue()reformat value from widget.voidreformatValue(boolean fireEvents)reformat value from widget.charreplaceCharacter(char pcharacter)replace a character.
-
-
-
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 formatfireEvents- 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
-
-