else if (type.equals("long"))
textField.addValidator(new LongValidator());
else if (type.equals("float"))
textField.addValidator(new FloatValidator());
else if (type.equals("double"))
textField.addValidator(new DoubleValidator());
else
throw new GUIException("Unknown numeric type");
panel.addChild(textField, null);
panel.recursiveSetDataModel(dataModel);