Search in sources :

Example 86 with AbstractReadOnlyModel

use of org.apache.wicket.model.AbstractReadOnlyModel in project midpoint by Evolveum.

the class CountToolbar method onInitialize.

@Override
protected void onInitialize() {
    super.onInitialize();
    WebMarkupContainer td = new WebMarkupContainer(ID_TD);
    td.add(AttributeModifier.replace("colspan", new AbstractReadOnlyModel<String>() {

        @Override
        public String getObject() {
            return String.valueOf(getTable().getColumns().size());
        }
    }));
    add(td);
    Label count = new Label(ID_COUNT, createModel());
    count.setRenderBodyOnly(true);
    td.add(count);
    PageSizePopover popover = new PageSizePopover(ID_PAGE_SIZE) {

        @Override
        protected void pageSizeChanged(AjaxRequestTarget target) {
            CountToolbar.this.pageSizeChanged(target);
        }
    };
    popover.add(new VisibleEnableBehaviour() {

        @Override
        public boolean isVisible() {
            return CountToolbar.this.isPageSizePopupVisible();
        }
    });
    td.add(popover);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) Label(org.apache.wicket.markup.html.basic.Label) VisibleEnableBehaviour(com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Example 87 with AbstractReadOnlyModel

use of org.apache.wicket.model.AbstractReadOnlyModel in project midpoint by Evolveum.

the class MetadataPanel method initLayout.

private void initLayout() {
    WebMarkupContainer metadataBlock = new WebMarkupContainer(ID_METADATA_BLOCK);
    metadataBlock.setOutputMarkupId(true);
    add(metadataBlock);
    WebMarkupContainer headerContainer = new WebMarkupContainer(ID_HEADER_CONTAINER);
    headerContainer.setOutputMarkupId(true);
    headerContainer.add(new AttributeAppender("class", "prism-header " + additionalHeaderStyle));
    metadataBlock.add(headerContainer);
    Label metadataHeader = new Label(ID_METADATA_LABEL, createStringResource("AssignmentEditorPanel.metadataBlock", header != null ? header : ""));
    metadataHeader.setOutputMarkupId(true);
    headerContainer.add(metadataHeader);
    RepeatingView metadataRowRepeater = new RepeatingView(ID_METADATA_ROW);
    metadataBlock.add(metadataRowRepeater);
    for (QName qname : metadataFieldsList) {
        WebMarkupContainer metadataRow = new WebMarkupContainer(metadataRowRepeater.newChildId());
        metadataRow.setOutputMarkupId(true);
        if (metadataFieldsList.indexOf(qname) % 2 != 0) {
            metadataRow.add(new AttributeAppender("class", "stripe"));
        }
        metadataRowRepeater.add(metadataRow);
        metadataRow.add(new Label(ID_METADATA_PROPERTY_KEY, createStringResource(DOT_CLASS + qname.getLocalPart())));
        AbstractReadOnlyModel<String> metadataFieldModel = new AbstractReadOnlyModel<String>() {

            @Override
            public String getObject() {
                PropertyModel<Object> tempModel = new PropertyModel<Object>(getModel(), qname.getLocalPart());
                if (tempModel.getObject() instanceof XMLGregorianCalendar) {
                    return WebComponentUtil.getLocalizedDate((XMLGregorianCalendar) tempModel.getObject(), DateLabelComponent.MEDIUM_MEDIUM_STYLE);
                } else if (tempModel.getObject() instanceof ObjectReferenceType) {
                    ObjectReferenceType ref = (ObjectReferenceType) tempModel.getObject();
                    return WebComponentUtil.getName(ref, getPageBase(), OPERATION_LOAD_USER);
                } else if (tempModel.getObject() instanceof List) {
                    List list = (List) tempModel.getObject();
                    String result = "";
                    for (Object o : list) {
                        if (o instanceof ObjectReferenceType) {
                            if (result.length() > 0) {
                                result += ", ";
                            }
                            result += WebComponentUtil.getName((ObjectReferenceType) o, getPageBase(), OPERATION_LOAD_USER);
                        }
                    }
                    return result;
                }
                return "";
            }
        };
        metadataRow.add(new Label(ID_METADATA_FILED, metadataFieldModel));
        metadataRow.add(new VisibleEnableBehaviour() {

            @Override
            public boolean isVisible() {
                return StringUtils.isNotEmpty(metadataFieldModel.getObject());
            }
        });
    }
}
Also used : AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) QName(javax.xml.namespace.QName) Label(org.apache.wicket.markup.html.basic.Label) RepeatingView(org.apache.wicket.markup.repeater.RepeatingView) PropertyModel(org.apache.wicket.model.PropertyModel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) XMLGregorianCalendar(javax.xml.datatype.XMLGregorianCalendar) ObjectReferenceType(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType) ArrayList(java.util.ArrayList) List(java.util.List) VisibleEnableBehaviour(com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour) AttributeAppender(org.apache.wicket.behavior.AttributeAppender)

Example 88 with AbstractReadOnlyModel

use of org.apache.wicket.model.AbstractReadOnlyModel in project midpoint by Evolveum.

the class LimitationsEditorDialog method createLimitationsLabelModel.

private IModel<String> createLimitationsLabelModel(final ListItem<PropertyLimitationsTypeDto> item) {
    return new AbstractReadOnlyModel<String>() {

        @Override
        public String getObject() {
            StringBuilder sb = new StringBuilder();
            PropertyLimitationsTypeDto dto = item.getModelObject();
            sb.append("#").append(item.getIndex() + 1).append(" - ");
            List<LayerType> layers = new ArrayList<>();
            if (dto.isModel()) {
                layers.add(LayerType.MODEL);
            }
            if (dto.isPresentation()) {
                layers.add(LayerType.PRESENTATION);
            }
            if (dto.isSchema()) {
                layers.add(LayerType.SCHEMA);
            }
            sb.append(StringUtils.join(layers, ", "));
            sb.append(":");
            if (dto.getLimitationObject().getAccess() != null) {
                List<String> accesses = new ArrayList<>();
                PropertyAccessType access = dto.getLimitationObject().getAccess();
                if (BooleanUtils.isTrue(access.isRead())) {
                    accesses.add(getString("LimitationsEditorDialog.label.read"));
                }
                if (BooleanUtils.isTrue(access.isAdd())) {
                    accesses.add(getString("LimitationsEditorDialog.label.add"));
                }
                if (BooleanUtils.isTrue(access.isModify())) {
                    accesses.add(getString("LimitationsEditorDialog.label.modify"));
                }
                sb.append(StringUtils.join(accesses, ", "));
            }
            return sb.toString();
        }
    };
}
Also used : AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) PropertyLimitationsTypeDto(com.evolveum.midpoint.web.component.wizard.resource.dto.PropertyLimitationsTypeDto) LayerType(com.evolveum.midpoint.xml.ns._public.common.common_3.LayerType) ArrayList(java.util.ArrayList) PropertyAccessType(com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyAccessType)

Example 89 with AbstractReadOnlyModel

use of org.apache.wicket.model.AbstractReadOnlyModel in project midpoint by Evolveum.

the class LimitationsEditorDialog method initLayout.

public void initLayout(WebMarkupContainer content) {
    Form form = new Form(ID_MAIN_FORM);
    form.setOutputMarkupId(true);
    content.add(form);
    ListView repeater = new ListView<PropertyLimitationsTypeDto>(ID_REPEATER, model) {

        @Override
        protected void populateItem(final ListItem<PropertyLimitationsTypeDto> item) {
            WebMarkupContainer linkContainer = new WebMarkupContainer(ID_LIMITATIONS_LINK);
            linkContainer.setOutputMarkupId(true);
            linkContainer.add(new AttributeModifier("href", createCollapseItemId(item, true)));
            item.add(linkContainer);
            Label linkLabel = new Label(ID_LIMITATIONS_LABEL, createLimitationsLabelModel(item));
            linkContainer.add(linkLabel);
            AjaxLink delete = new AjaxLink(ID_LIMITATION_DELETE) {

                @Override
                public void onClick(AjaxRequestTarget target) {
                    deleteLimitationPerformed(target, item);
                }
            };
            delete.add(WebComponentUtil.visibleIfFalse(readOnlyModel));
            linkContainer.add(delete);
            WebMarkupContainer limitationBody = new WebMarkupContainer(ID_BODY);
            limitationBody.setOutputMarkupId(true);
            limitationBody.setMarkupId(createCollapseItemId(item, false).getObject());
            if (changeState != ChangeState.SKIP) {
                limitationBody.add(new AttributeModifier("class", new AbstractReadOnlyModel<String>() {

                    @Override
                    public String getObject() {
                        if (changeState == ChangeState.FIRST && item.getIndex() == 0) {
                            return "panel-collapse collapse in";
                        } else if (changeState == ChangeState.LAST && item.getIndex() == (getModelObject().size() - 1)) {
                            return "panel-collapse collapse in";
                        } else {
                            return "panel-collapse collapse";
                        }
                    }
                }));
            }
            limitationBody.add(WebComponentUtil.enabledIfFalse(readOnlyModel));
            item.add(limitationBody);
            initLimitationBody(limitationBody, item);
        }
    };
    repeater.setOutputMarkupId(true);
    form.add(repeater);
    initButtons(form);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) ListView(org.apache.wicket.markup.html.list.ListView) Form(org.apache.wicket.markup.html.form.Form) Label(org.apache.wicket.markup.html.basic.Label) ListItem(org.apache.wicket.markup.html.list.ListItem) AttributeModifier(org.apache.wicket.AttributeModifier) AjaxLink(org.apache.wicket.ajax.markup.html.AjaxLink) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Example 90 with AbstractReadOnlyModel

use of org.apache.wicket.model.AbstractReadOnlyModel in project midpoint by Evolveum.

the class SchemaHandlingStep method initObjectTypeEditor.

private void initObjectTypeEditor(WebMarkupContainer editor) {
    Label editorLabel = new Label(ID_EDITOR_NAME, new AbstractReadOnlyModel<Object>() {

        @Override
        public String getObject() {
            ResourceObjectTypeDefinitionTypeDto selected = schemaHandlingDtoModel.getObject().getSelectedObjectTypeDto();
            return selected != null ? selected.getObjectType().getDisplayName() : "";
        }
    });
    editorLabel.setOutputMarkupId(true);
    editor.add(editorLabel);
    DropDownChoice editorKind = new DropDownChoice<>(ID_EDITOR_KIND, new PropertyModel<ShadowKindType>(schemaHandlingDtoModel, getExpression(ResourceObjectTypeDefinitionType.F_KIND)), WebComponentUtil.createReadonlyModelFromEnum(ShadowKindType.class), new EnumChoiceRenderer<ShadowKindType>(this));
    editorKind.add(new UpdateNamesBehaviour());
    parentPage.addEditingEnabledBehavior(editorKind);
    editor.add(editorKind);
    TextField editorIntent = new TextField<>(ID_EDITOR_INTENT, new PropertyModel<String>(schemaHandlingDtoModel, getExpression(ResourceObjectTypeDefinitionType.F_INTENT)));
    editorIntent.add(new UpdateNamesBehaviour());
    parentPage.addEditingEnabledBehavior(editorIntent);
    editor.add(editorIntent);
    TextField editorDisplayName = new TextField<>(ID_EDITOR_DISPLAY_NAME, new PropertyModel<String>(schemaHandlingDtoModel, getExpression(ResourceObjectTypeDefinitionType.F_DISPLAY_NAME)));
    editorDisplayName.add(new UpdateNamesBehaviour());
    parentPage.addEditingEnabledBehavior(editorDisplayName);
    editor.add(editorDisplayName);
    TextArea editorDescription = new TextArea<>(ID_EDITOR_DESCRIPTION, new PropertyModel<String>(schemaHandlingDtoModel, getExpression(ResourceObjectTypeDefinitionType.F_DESCRIPTION)));
    parentPage.addEditingEnabledBehavior(editorDescription);
    editor.add(editorDescription);
    final CheckBox editorDefault = new CheckBox(ID_EDITOR_DEFAULT, new PropertyModel<Boolean>(schemaHandlingDtoModel, getExpression(ResourceObjectTypeDefinitionType.F_DEFAULT)));
    editorDefault.add(new EmptyOnChangeAjaxFormUpdatingBehavior() {

        @Override
        protected void onUpdate(AjaxRequestTarget target) {
            Boolean newValue = editorDefault.getModelObject();
            if (Boolean.TRUE.equals(newValue)) {
                SchemaHandlingDto dto = schemaHandlingDtoModel.getObject();
                ResourceObjectTypeDefinitionTypeDto selected = dto.getSelectedObjectTypeDto();
                ShadowKindType selectedKind = fillDefault(selected.getObjectType().getKind());
                for (ResourceObjectTypeDefinitionTypeDto currentObjectTypeDto : dto.getObjectTypeDtoList()) {
                    ShadowKindType currentKind = fillDefault(currentObjectTypeDto.getObjectType().getKind());
                    if (currentObjectTypeDto != selected && currentKind == selectedKind && Boolean.TRUE.equals(currentObjectTypeDto.getObjectType().isDefault())) {
                        currentObjectTypeDto.getObjectType().setDefault(false);
                    }
                }
            }
            parentPage.refreshIssues(target);
        }
    });
    parentPage.addEditingEnabledBehavior(editorDefault);
    editor.add(editorDefault);
    AjaxSubmitLink editorDependency = new AjaxSubmitLink(ID_EDITOR_BUTTON_DEPENDENCY) {

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            dependencyEditPerformed(target);
        }
    };
    addDisabledClassModifier(editorDependency);
    editor.add(editorDependency);
    AutoCompleteSettings autoCompleteSettings = new AutoCompleteSettings();
    autoCompleteSettings.setShowListOnEmptyInput(true);
    autoCompleteSettings.setMaxHeightInPx(200);
    AutoCompleteTextField<String> editorObjectClass = new AutoCompleteTextField<String>(ID_EDITOR_OBJECT_CLASS, new PropertyModel<String>(schemaHandlingDtoModel, SchemaHandlingDto.F_OBJECT_CLASS_NAME), autoCompleteSettings) {

        @Override
        protected Iterator<String> getChoices(String input) {
            return getObjectClassChoices(input);
        }
    };
    editorObjectClass.add(new UpdateNamesBehaviour());
    editorObjectClass.add(createObjectClassValidator(new AbstractReadOnlyModel<List<QName>>() {

        @Override
        public List<QName> getObject() {
            return schemaHandlingDtoModel.getObject().getObjectClassList();
        }
    }));
    parentPage.addEditingEnabledBehavior(editorObjectClass);
    editorObjectClass.setConvertEmptyInputStringToNull(true);
    editor.add(editorObjectClass);
    MultiValueTextEditPanel editorAttributes = new MultiValueTextEditPanel<ResourceAttributeDefinitionType>(ID_EDITOR_ATTRIBUTES, new PropertyModel<List<ResourceAttributeDefinitionType>>(schemaHandlingDtoModel, getExpression(ResourceObjectTypeDefinitionType.F_ATTRIBUTE)), new PropertyModel<ResourceAttributeDefinitionType>(schemaHandlingDtoModel, SchemaHandlingDto.F_SELECTED_ATTRIBUTE), false, true, parentPage.getReadOnlyModel()) {

        @Override
        protected IModel<String> createTextModel(final IModel<ResourceAttributeDefinitionType> model) {
            return new Model<String>() {

                @Override
                public String getObject() {
                    if (model == null || model.getObject() == null) {
                        return null;
                    }
                    ResourceAttributeDefinitionType attribute = model.getObject();
                    return formatItemInfo(attribute, attribute.getRef(), attribute.getDisplayName(), attribute.getInbound(), attribute.getOutbound());
                }
            };
        }

        @Override
        protected ResourceAttributeDefinitionType createNewEmptyItem() {
            return createEmptyAttributeObject();
        }

        @Override
        protected void performAddValueHook(AjaxRequestTarget target, ResourceAttributeDefinitionType added) {
            parentPage.refreshIssues(target);
        }

        @Override
        protected void editPerformed(AjaxRequestTarget target, ResourceAttributeDefinitionType object) {
            editAttributePerformed(target, object);
        }

        @Override
        protected boolean buttonsDisabled() {
            return !isAnySelected();
        }

        @Override
        protected void performRemoveValueHook(AjaxRequestTarget target, ListItem<ResourceAttributeDefinitionType> item) {
            resetThirdRowContainer(target);
            parentPage.refreshIssues(target);
        }
    };
    editorAttributes.setOutputMarkupId(true);
    editor.add(editorAttributes);
    MultiValueTextEditPanel editorAssociations = new MultiValueTextEditPanel<ResourceObjectAssociationType>(ID_EDITOR_ASSOCIATIONS, new PropertyModel<List<ResourceObjectAssociationType>>(schemaHandlingDtoModel, getExpression(ResourceObjectTypeDefinitionType.F_ASSOCIATION)), new PropertyModel<ResourceObjectAssociationType>(schemaHandlingDtoModel, SchemaHandlingDto.F_SELECTED_ASSOCIATION), false, true, parentPage.getReadOnlyModel()) {

        @Override
        protected IModel<String> createTextModel(final IModel<ResourceObjectAssociationType> model) {
            return new Model<String>() {

                @Override
                public String getObject() {
                    ResourceObjectAssociationType association = model.getObject();
                    if (association == null) {
                        return null;
                    }
                    return formatItemInfo(association, association.getRef(), association.getDisplayName(), association.getInbound(), association.getOutbound());
                }
            };
        }

        @Override
        protected ResourceObjectAssociationType createNewEmptyItem() {
            return createEmptyAssociationObject();
        }

        @Override
        protected void performAddValueHook(AjaxRequestTarget target, ResourceObjectAssociationType added) {
            parentPage.refreshIssues(target);
        }

        @Override
        protected void editPerformed(AjaxRequestTarget target, ResourceObjectAssociationType object) {
            editAssociationPerformed(target, object);
        }

        @Override
        protected boolean buttonsDisabled() {
            return !isAnySelected();
        }

        @Override
        protected void performRemoveValueHook(AjaxRequestTarget target, ListItem<ResourceObjectAssociationType> item) {
            resetThirdRowContainer(target);
            parentPage.refreshIssues(target);
        }
    };
    editorAssociations.setOutputMarkupId(true);
    editor.add(editorAssociations);
    //        DropDownChoice editorAssignmentPolicyRef = new DropDownChoice<>(ID_EDITOR_ASSIGNMENT_POLICY,
    //                new PropertyModel<AssignmentPolicyEnforcementType>(schemaHandlingDtoModel,
    //						getExpression(ResourceObjectTypeDefinitionType.F_ASSIGNMENT_POLICY_ENFORCEMENT)),
    //                WebComponentUtil.createReadonlyModelFromEnum(AssignmentPolicyEnforcementType.class),
    //                new EnumChoiceRenderer<AssignmentPolicyEnforcementType>(this));
    //		parentPage.addEditingEnabledBehavior(editorAssignmentPolicyRef);
    //        editor.add(editorAssignmentPolicyRef);
    AjaxSubmitLink editorIteration = new AjaxSubmitLink(ID_EDITOR_BUTTON_ITERATION) {

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            iterationEditPerformed(target);
        }
    };
    addDisabledClassModifier(editorIteration);
    editor.add(editorIteration);
    AjaxSubmitLink editorProtected = new AjaxSubmitLink(ID_EDITOR_BUTTON_PROTECTED) {

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            protectedEditPerformed(target);
        }
    };
    addDisabledClassModifier(editorProtected);
    editor.add(editorProtected);
    AjaxSubmitLink editorActivation = new AjaxSubmitLink(ID_EDITOR_BUTTON_ACTIVATION) {

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            activationEditPerformed(target);
        }
    };
    addDisabledClassModifier(editorActivation);
    editor.add(editorActivation);
    AjaxSubmitLink editorCredentials = new AjaxSubmitLink(ID_EDITOR_BUTTON_CREDENTIALS) {

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            credentialsEditPerformed(target);
        }
    };
    addDisabledClassModifier(editorCredentials);
    editor.add(editorCredentials);
    Label kindTooltip = new Label(ID_T_KIND);
    kindTooltip.add(new InfoTooltipBehavior());
    editor.add(kindTooltip);
    Label intentTooltip = new Label(ID_T_INTENT);
    intentTooltip.add(new InfoTooltipBehavior());
    editor.add(intentTooltip);
    Label defaultTooltip = new Label(ID_T_DEFAULT);
    defaultTooltip.add(new InfoTooltipBehavior());
    editor.add(defaultTooltip);
    Label dependencyTooltip = new Label(ID_T_DEPENDENCY);
    dependencyTooltip.add(new InfoTooltipBehavior());
    editor.add(dependencyTooltip);
    Label objectClassTooltip = new Label(ID_T_OBJECT_CLASS);
    objectClassTooltip.add(new InfoTooltipBehavior());
    editor.add(objectClassTooltip);
    Label attributesTooltip = new Label(ID_T_ATTRIBUTES);
    attributesTooltip.add(new InfoTooltipBehavior());
    editor.add(attributesTooltip);
    Label associationsTooltip = new Label(ID_T_ASSOCIATIONS);
    associationsTooltip.add(new InfoTooltipBehavior());
    editor.add(associationsTooltip);
    Label assignmentPolicyRefTooltip = new Label(ID_T_ASSIGNMENT_POLICY_REF);
    assignmentPolicyRefTooltip.add(new InfoTooltipBehavior());
    editor.add(assignmentPolicyRefTooltip);
    Label iterationTooltip = new Label(ID_T_ITERATION);
    iterationTooltip.add(new InfoTooltipBehavior());
    editor.add(iterationTooltip);
    Label protectedTooltip = new Label(ID_T_PROTECTED);
    protectedTooltip.add(new InfoTooltipBehavior());
    editor.add(protectedTooltip);
    Label activationTooltip = new Label(ID_T_ACTIVATION);
    activationTooltip.add(new InfoTooltipBehavior());
    editor.add(activationTooltip);
    Label credentialsTooltip = new Label(ID_T_CREDENTIALS);
    credentialsTooltip.add(new InfoTooltipBehavior());
    editor.add(credentialsTooltip);
}
Also used : AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) Label(org.apache.wicket.markup.html.basic.Label) AjaxSubmitLink(org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink) MultiValueTextEditPanel(com.evolveum.midpoint.web.component.form.multivalue.MultiValueTextEditPanel) EmptyOnChangeAjaxFormUpdatingBehavior(com.evolveum.midpoint.web.page.admin.configuration.component.EmptyOnChangeAjaxFormUpdatingBehavior) AutoCompleteTextField(org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextField) ResourceObjectTypeDefinitionTypeDto(com.evolveum.midpoint.web.component.wizard.resource.dto.ResourceObjectTypeDefinitionTypeDto) AutoCompleteTextField(org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextField) List(java.util.List) ArrayList(java.util.ArrayList) IModel(org.apache.wicket.model.IModel) QName(javax.xml.namespace.QName) AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) InfoTooltipBehavior(com.evolveum.midpoint.web.util.InfoTooltipBehavior) SchemaHandlingDto(com.evolveum.midpoint.web.component.wizard.resource.dto.SchemaHandlingDto) AutoCompleteSettings(org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteSettings) IModel(org.apache.wicket.model.IModel) AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) Model(org.apache.wicket.model.Model) NonEmptyLoadableModel(com.evolveum.midpoint.gui.api.model.NonEmptyLoadableModel) PropertyModel(org.apache.wicket.model.PropertyModel) PrismObject(com.evolveum.midpoint.prism.PrismObject) ListItem(org.apache.wicket.markup.html.list.ListItem)

Aggregations

AbstractReadOnlyModel (org.apache.wicket.model.AbstractReadOnlyModel)105 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)60 Label (org.apache.wicket.markup.html.basic.Label)59 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)54 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)41 ArrayList (java.util.ArrayList)34 AjaxLink (org.apache.wicket.ajax.markup.html.AjaxLink)29 ListItem (org.apache.wicket.markup.html.list.ListItem)29 IModel (org.apache.wicket.model.IModel)26 ListView (org.apache.wicket.markup.html.list.ListView)25 List (java.util.List)23 AttributeAppender (org.apache.wicket.behavior.AttributeAppender)23 AttributeModifier (org.apache.wicket.AttributeModifier)21 PropertyModel (org.apache.wicket.model.PropertyModel)20 Model (org.apache.wicket.model.Model)16 InfoTooltipBehavior (com.evolveum.midpoint.web.util.InfoTooltipBehavior)13 TextField (org.apache.wicket.markup.html.form.TextField)11 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)10 Form (org.apache.wicket.markup.html.form.Form)9 IColumn (org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn)8