Search in sources :

Example 1 with MultiValueTextFormGroup

use of com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextFormGroup in project midpoint by Evolveum.

the class RichHyperlinkConfigDialog method initLayout.

private void initLayout(WebMarkupContainer content) {
    Form form = new Form(ID_MAIN_FORM);
    form.setOutputMarkupId(true);
    content.add(form);
    TextFormGroup name = new TextFormGroup(ID_LABEL, new PropertyModel<String>(model, RichHyperlinkType.F_LABEL.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.label"), ID_LABEL_SIZE, ID_INPUT_SIZE, true);
    form.add(name);
    TextAreaFormGroup description = new TextAreaFormGroup(ID_DESCRIPTION, new PropertyModel<String>(model, RichHyperlinkType.F_DESCRIPTION.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.description"), ID_LABEL_SIZE, ID_INPUT_SIZE);
    description.setVisible(!isMenuItem);
    form.add(description);
    TextFormGroup targetUrl = new TextFormGroup(ID_TARGET_URL, new PropertyModel<String>(model, RichHyperlinkType.F_TARGET_URL.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.targetUrl"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
    form.add(targetUrl);
    TextFormGroup color = new TextFormGroup(ID_COLOR, new PropertyModel<String>(model, RichHyperlinkType.F_COLOR.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.color"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
    color.setVisible(!isMenuItem);
    form.add(color);
    MultiValueTextFormGroup authorizations = new MultiValueTextFormGroup(ID_AUTHORIZATION, new PropertyModel<List<String>>(model, RichHyperlinkType.F_AUTHORIZATION.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.authorization"), ID_LABEL_SIZE, ID_MULTIPLE_INPUT_SIZE, false);
    authorizations.setVisible(!isMenuItem);
    form.add(authorizations);
    TextFormGroup icon = new TextFormGroup(ID_ICON, new PropertyModel<String>(model, RichHyperlinkType.F_ICON.getLocalPart() + "." + IconType.F_CSS_CLASS.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.icon"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
    form.add(icon);
    initButtons(form);
}
Also used : TextFormGroup(com.evolveum.midpoint.web.component.form.TextFormGroup) MultiValueTextFormGroup(com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextFormGroup) MultiValueTextFormGroup(com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextFormGroup) Form(org.apache.wicket.markup.html.form.Form) List(java.util.List) TextAreaFormGroup(com.evolveum.midpoint.web.component.form.TextAreaFormGroup)

Example 2 with MultiValueTextFormGroup

use of com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextFormGroup in project midpoint by Evolveum.

the class RichHyperlinkConfigPanel method initLayout.

private void initLayout() {
    Form form = new Form(ID_MAIN_FORM);
    form.setOutputMarkupId(true);
    add(form);
    TextFormGroup name = new TextFormGroup(ID_LABEL, new PropertyModel<String>(model, RichHyperlinkType.F_LABEL.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.label"), ID_LABEL_SIZE, ID_INPUT_SIZE, true);
    form.add(name);
    TextAreaFormGroup description = new TextAreaFormGroup(ID_DESCRIPTION, new PropertyModel<String>(model, RichHyperlinkType.F_DESCRIPTION.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.description"), ID_LABEL_SIZE, ID_INPUT_SIZE);
    description.setVisible(!isMenuItem);
    form.add(description);
    TextFormGroup targetUrl = new TextFormGroup(ID_TARGET_URL, new PropertyModel<String>(model, RichHyperlinkType.F_TARGET_URL.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.targetUrl"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
    form.add(targetUrl);
    TextFormGroup color = new TextFormGroup(ID_COLOR, new PropertyModel<String>(model, RichHyperlinkType.F_COLOR.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.color"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
    color.setVisible(!isMenuItem);
    form.add(color);
    MultiValueTextFormGroup authorizations = new MultiValueTextFormGroup(ID_AUTHORIZATION, new PropertyModel<List<String>>(model, RichHyperlinkType.F_AUTHORIZATION.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.authorization"), ID_LABEL_SIZE, ID_MULTIPLE_INPUT_SIZE, false);
    authorizations.setVisible(!isMenuItem);
    form.add(authorizations);
    TextFormGroup icon = new TextFormGroup(ID_ICON, new PropertyModel<String>(model, RichHyperlinkType.F_ICON.getLocalPart() + "." + IconType.F_CSS_CLASS.getLocalPart()), createStringResource("RichHyperlinkConfigDialog.icon"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
    form.add(icon);
    initButtons(form);
}
Also used : TextFormGroup(com.evolveum.midpoint.web.component.form.TextFormGroup) MultiValueTextFormGroup(com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextFormGroup) MultiValueTextFormGroup(com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextFormGroup) Form(org.apache.wicket.markup.html.form.Form) List(java.util.List) TextAreaFormGroup(com.evolveum.midpoint.web.component.form.TextAreaFormGroup)

Aggregations

TextAreaFormGroup (com.evolveum.midpoint.web.component.form.TextAreaFormGroup)2 TextFormGroup (com.evolveum.midpoint.web.component.form.TextFormGroup)2 MultiValueTextFormGroup (com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextFormGroup)2 List (java.util.List)2 Form (org.apache.wicket.markup.html.form.Form)2