use of org.devgateway.toolkit.forms.wicket.components.form.ColorPickerBootstrapFormComponent in project oc-explorer by devgateway.
the class EditColorIndicatorPairPage method onInitialize.
@Override
protected void onInitialize() {
super.onInitialize();
firstIndicator = new Select2ChoiceBootstrapFormComponent<String>("firstIndicator", new GenericChoiceProvider<String>(FlagsConstants.FLAGS_LIST));
firstIndicator.required();
editForm.add(firstIndicator);
secondIndicator = new Select2ChoiceBootstrapFormComponent<String>("secondIndicator", new GenericChoiceProvider<String>(FlagsConstants.FLAGS_LIST));
secondIndicator.required();
editForm.add(secondIndicator);
ColorPickerBootstrapFormComponent color = new ColorPickerBootstrapFormComponent("color");
color.required();
editForm.add(color);
editForm.add(new ColorIndicatorDistinctFormValidator());
editForm.add(new ColorIndicatorUniquePairFormValidator(compoundModel));
}
use of org.devgateway.toolkit.forms.wicket.components.form.ColorPickerBootstrapFormComponent in project oc-explorer by devgateway.
the class EditTestFormPage method onInitialize.
@Override
protected void onInitialize() {
super.onInitialize();
TextFieldBootstrapFormComponent<String> textField = new TextFieldBootstrapFormComponent<>("textField");
textField.required();
editForm.add(textField);
TextAreaFieldBootstrapFormComponent<String> textArea = new TextAreaFieldBootstrapFormComponent<>("textArea");
textArea.required();
editForm.add(textArea);
SummernoteBootstrapFormComponent summernote = new SummernoteBootstrapFormComponent("summernote");
summernote.required();
editForm.add(summernote);
Select2ChoiceBootstrapFormComponent<Group> entitySelect = new Select2ChoiceBootstrapFormComponent<Group>("entitySelect", new GenericPersistableJpaRepositoryTextChoiceProvider<Group>(groupRepository));
entitySelect.required();
editForm.add(entitySelect);
Select2MultiChoiceBootstrapFormComponent<Role> entityMultiSelect = new Select2MultiChoiceBootstrapFormComponent<Role>("entityMultiSelect", new GenericPersistableJpaRepositoryTextChoiceProvider<Role>(roleRepository));
entityMultiSelect.required();
editForm.add(entityMultiSelect);
CheckBoxBootstrapFormComponent checkbox = new CheckBoxBootstrapFormComponent("checkbox");
checkbox.required();
editForm.add(checkbox);
CheckBoxPickerBootstrapFormComponent checkboxPicker = new CheckBoxPickerBootstrapFormComponent("checkboxPicker");
checkboxPicker.required();
editForm.add(checkboxPicker);
CheckBoxToggleBootstrapFormComponent checkboxToggle = new CheckBoxToggleBootstrapFormComponent("checkboxToggle");
checkboxToggle.required();
editForm.add(checkboxToggle);
DateFieldBootstrapFormComponent date = new DateFieldBootstrapFormComponent("date");
date.required();
editForm.add(date);
DateTimeFieldBootstrapFormComponent dateTime = new DateTimeFieldBootstrapFormComponent("dateTime");
dateTime.required();
editForm.add(dateTime);
FileInputBootstrapFormComponent fileInput = new FileInputBootstrapFormComponent("fileInput");
fileInput.required();
editForm.add(fileInput);
Select2ChoiceBootstrapFormComponent<Group> preloadedEntitySelect = new Select2ChoiceBootstrapFormComponent<>("preloadedEntitySelect", new GenericChoiceProvider<>(groupRepository.findAll()));
preloadedEntitySelect.required();
editForm.add(preloadedEntitySelect);
ColorPickerBootstrapFormComponent colorPicker = new ColorPickerBootstrapFormComponent("colorPicker");
colorPicker.required();
editForm.add(colorPicker);
}
Aggregations