use of com.evolveum.midpoint.web.component.form.TextAreaFormGroup in project midpoint by Evolveum.
the class NameStep method initLayout.
private void initLayout() {
parentPage.addEditingEnabledBehavior(this);
TextFormGroup name = new TextFormGroup(ID_NAME, resourceNameModel, createStringResource("NameStep.name"), "col-md-3", "col-md-6", true);
add(name);
TextAreaFormGroup description = new TextAreaFormGroup(ID_DESCRIPTION, resourceDescriptionModel, createStringResource("NameStep.description"), "col-md-3", "col-md-6", false, 3);
// parentPage.addEditingEnabledBehavior(description);
add(description);
DropDownFormGroup<PrismObject<ConnectorHostType>> hostDropDown = createHostDropDown();
// parentPage.addEditingEnabledBehavior(hostDropDown);
add(hostDropDown);
DropDownFormGroup<PrismObject<ConnectorType>> connectorDropDown = createConnectorDropDown();
// parentPage.addEditingEnabledBehavior(connectorDropDown);
add(connectorDropDown);
}
use of com.evolveum.midpoint.web.component.form.TextAreaFormGroup in project midpoint by Evolveum.
the class MultiplicityPolicyPanel method initLayout.
private void initLayout() {
Form form = new MidpointForm(ID_MAIN_FORM);
form.setOutputMarkupId(true);
add(form);
TextAreaFormGroup description = new TextAreaFormGroup(ID_DESCRIPTION, new PropertyModel<>(model, MultiplicityPolicyConstraintType.F_DESCRIPTION.getLocalPart()), createStringResource("multiplicityContainer.label.description"), ID_LABEL_SIZE, ID_INPUT_SIZE);
form.add(description);
WebMarkupContainer multiplicityContainer = new WebMarkupContainer(ID_MULTIPLICITY_CONTAINER);
multiplicityContainer.setOutputMarkupId(true);
form.add(multiplicityContainer);
TextField<String> multiplicity = new TextField<>(ID_MULTIPLICITY, new PropertyModel<>(model, MultiplicityPolicyConstraintType.F_MULTIPLICITY.getLocalPart()));
multiplicity.add(prepareMultiplicityValidator());
multiplicity.add(new VisibleEnableBehaviour() {
@Override
public boolean isEnabled() {
return !unbounded;
}
});
multiplicityContainer.add(multiplicity);
CheckBox multiplicityUnbounded = new CheckBox(ID_MULTIPLICITY_UNBOUND, new PropertyModel<>(this, MULTIPLICITY_UNBOUNDED));
multiplicityUnbounded.add(new OnChangeAjaxBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
model.getObject().setMultiplicity(MULTIPLICITY_UNBOUNDED);
target.add(getMultiplicityContainer());
}
});
multiplicityContainer.add(multiplicityUnbounded);
initButtons(form);
}
Aggregations