tfAddress.setText((new Address(details.addressDetail)).toStringShort());
}
}
private void initNumber() {
TextFieldModelLimited textFieldModel = new TextFieldModelLimited(tfNumber) {
private String text = "";
private void setNumber(String number) throws ParseException{
text = number;
FormatChecker.checkPolisOMS(text);
details.number = number;
}
@Override
protected void setModelTextChecked(String text) throws ClipsException, ParseException, NumberFormatException {
setNumber(text);
}
@Override
protected String getModelTextChecked() throws ClipsException {
return text;
}
};
textFieldModel.setWidth(16);
tfNumber.setDocument(textFieldModel);
if (details.number != null){
tfNumber.setText(details.number);
}
}