@ThreadRestricted(value="wicket") public final class IDPairConverter extends Object implements IConverter<IDPair>
Constructor and Description |
---|
IDPairConverter() |
Modifier and Type | Method and Description |
---|---|
IDPair |
convertToObject(String input,
Locale _ignored) |
String |
convertToString(IDPair value,
Locale _ignored) |
static <C extends TextField<IDPair>> |
setMaxLength_Type(C field)
A convenience method to initialize a text field by adding a 'maxLength'
attribute to its view, and setting a model type of IDPair.
|
public IDPairConverter()
public static <C extends TextField<IDPair>> C setMaxLength_Type(C field)
VoterInputTable.MAX_INPUT_LENGTH
public final IDPair convertToObject(String input, Locale _ignored) throws IllegalArgumentException
convertToObject
in interface IConverter<IDPair>
IllegalArgumentException
- if input exceeds
MAX_INPUT_LENGTHpublic final String convertToString(IDPair value, Locale _ignored)
convertToString
in interface IConverter<IDPair>