bereichField = new RequiredMinMaxNumberField<Integer>(InputPanel.WICKET_ID, new PropertyModel<Integer>(data, "bereich"), 0, 999) {
@SuppressWarnings({ "rawtypes", "unchecked"})
@Override
public IConverter getConverter(final Class type)
{
return new IntegerConverter(3);
}
};
WicketUtils.setSize(bereichField, 3);
fs.add(bereichField);
fs.add(new DivTextPanel(fs.newChildId(), "."));
teilbereichField = new RequiredMinMaxNumberField<Integer>(InputPanel.WICKET_ID, new PropertyModel<Integer>(data, "teilbereich"), 0,
99) {
@SuppressWarnings({ "rawtypes", "unchecked"})
@Override
public IConverter getConverter(final Class type)
{
return new IntegerConverter(2);
}
};
WicketUtils.setSize(teilbereichField, 2);
fs.add(teilbereichField);
fs.add(new DivTextPanel(fs.newChildId(), "."));
endzifferField = new RequiredMinMaxNumberField<Integer>(InputPanel.WICKET_ID, new PropertyModel<Integer>(data, "endziffer"), 0, 99) {
@SuppressWarnings({ "rawtypes", "unchecked"})
@Override
public IConverter getConverter(final Class type)
{
return new IntegerConverter(2);
}
};
endzifferField.setRequired(true);
WicketUtils.setSize(endzifferField, 2);
fs.add(endzifferField);