if (Boolean.class.isAssignableFrom(getField().getType()) || getField().getType().equals(boolean.class)) {
widget = new CheckboxWidget(this);
}
if (Date.class.isAssignableFrom(getField().getType())) {
widget = new DateWidget(this);
}
if (File.class.isAssignableFrom(getField().getType())) {
widget = new FileWidget(this);
}