// TextField
if (!fieldCreated) {
if (classField.getType().equals(boolean.class) ||
classField.getType().equals(Boolean.class)) {
CheckBoxField checkBoxField = new CheckBoxField(name, label);
fields.add(checkBoxField);
} else {
TextField inputField = new TextField(name, label);
fields.add(inputField);
}