use of com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextPanel in project midpoint by Evolveum.
the class CapabilityScriptPanel method initLayout.
protected void initLayout(final WebMarkupContainer capabilitiesTable, PageResourceWizard parentPage) {
parentPage.addEditingEnabledBehavior(this);
CheckBox enabled = new CheckBox(ID_ENABLED, new PropertyModel<>(getModel(), "capability.enabled"));
enabled.add(new EmptyOnChangeAjaxFormUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.add(capabilitiesTable);
}
});
add(enabled);
MultiValueTextPanel onConnector = new MultiValueTextPanel(ID_ON_CONNECTOR, prepareOnConnectorModel(), parentPage.getReadOnlyModel(), true);
add(onConnector);
MultiValueTextPanel onResource = new MultiValueTextPanel(ID_ON_RESOURCE, Model.of(prepareOnResourceModel()), parentPage.getReadOnlyModel(), true);
add(onResource);
Label enabledTooltip = new Label(ID_T_ENABLED);
enabledTooltip.add(new InfoTooltipBehavior());
add(enabledTooltip);
Label onConnectorTooltip = new Label(ID_T_ON_CONNECTOR);
onConnectorTooltip.add(new InfoTooltipBehavior());
add(onConnectorTooltip);
Label onResourceTooltip = new Label(ID_T_ON_RESOURCE);
onResourceTooltip.add(new InfoTooltipBehavior());
add(onResourceTooltip);
}
Aggregations