Search in sources :

Example 1 with MappingEditorDialog

use of com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog in project midpoint by Evolveum.

the class ResourceCredentialsEditor method initModals.

private void initModals(NonEmptyModel<Boolean> readOnlyModel) {
    ModalWindow inboundEditor = new MappingEditorDialog(ID_MODAL_INBOUND, null, readOnlyModel) {

        @Override
        public void updateComponents(AjaxRequestTarget target) {
            target.add(ResourceCredentialsEditor.this.get(ID_INBOUND));
        }
    };
    add(inboundEditor);
    ModalWindow outboundEditor = new MappingEditorDialog(ID_MODAL_OUTBOUND, null, readOnlyModel) {

        @Override
        public void updateComponents(AjaxRequestTarget target) {
            target.add(ResourceCredentialsEditor.this.get(ID_OUTBOUND_LABEL), ResourceCredentialsEditor.this.get(ID_OUTBOUND_BUTTON));
        }
    };
    add(outboundEditor);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) MappingEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog) ModalWindow(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow)

Example 2 with MappingEditorDialog

use of com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog in project midpoint by Evolveum.

the class ResourceAssociationEditor method initModals.

private void initModals(NonEmptyModel<Boolean> readOnlyModel) {
    ModalWindow limitationsEditor = new LimitationsEditorDialog(ID_MODAL_LIMITATIONS, new PropertyModel<List<PropertyLimitationsType>>(getModel(), "limitations"), readOnlyModel);
    add(limitationsEditor);
    ModalWindow inboundEditor = new MappingEditorDialog(ID_MODAL_INBOUND, null, readOnlyModel) {

        @Override
        public void updateComponents(AjaxRequestTarget target) {
            target.add(ResourceAssociationEditor.this.get(ID_INBOUND), parentStep.getAssociationList());
        }
    };
    add(inboundEditor);
    ModalWindow outboundEditor = new MappingEditorDialog(ID_MODAL_OUTBOUND, null, readOnlyModel) {

        @Override
        public void updateComponents(AjaxRequestTarget target) {
            target.add(ResourceAssociationEditor.this.get(ID_OUTBOUND_LABEL), ResourceAssociationEditor.this.get(ID_BUTTON_OUTBOUND), parentStep.getAssociationList());
        }
    };
    add(outboundEditor);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) LimitationsEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.LimitationsEditorDialog) MappingEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog) ArrayList(java.util.ArrayList) List(java.util.List) ModalWindow(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow)

Example 3 with MappingEditorDialog

use of com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog in project midpoint by Evolveum.

the class ResourceAttributeEditor method initModals.

private void initModals(NonEmptyModel<Boolean> readOnlyModel) {
    ModalWindow limitationsEditor = new LimitationsEditorDialog(ID_MODAL_LIMITATIONS, new PropertyModel<List<PropertyLimitationsType>>(getModel(), "limitations"), readOnlyModel);
    add(limitationsEditor);
    ModalWindow inboundEditor = new MappingEditorDialog(ID_MODAL_INBOUND, null, readOnlyModel) {

        @Override
        public void updateComponents(AjaxRequestTarget target) {
            target.add(ResourceAttributeEditor.this.get(ID_INBOUND), parentStep.getAttributeList());
        }
    };
    add(inboundEditor);
    ModalWindow outboundEditor = new MappingEditorDialog(ID_MODAL_OUTBOUND, null, readOnlyModel) {

        @Override
        public void updateComponents(AjaxRequestTarget target) {
            target.add(ResourceAttributeEditor.this.get(ID_OUTBOUND_LABEL), ResourceAttributeEditor.this.get(ID_BUTTON_OUTBOUND), parentStep.getAttributeList());
        }
    };
    add(outboundEditor);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) LimitationsEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.LimitationsEditorDialog) MappingEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog) List(java.util.List) ArrayList(java.util.ArrayList) ModalWindow(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow)

Example 4 with MappingEditorDialog

use of com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog in project midpoint by Evolveum.

the class ResourceActivationEditor method initModals.

private void initModals(NonEmptyModel<Boolean> readOnlyModel) {
    ModalWindow mappingEditor = new MappingEditorDialog(ID_MODAL_MAPPING, null, readOnlyModel) {

        @Override
        public void updateComponents(AjaxRequestTarget target) {
            target.add(ResourceActivationEditor.this);
        }
    };
    add(mappingEditor);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) MappingEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog) ModalWindow(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow)

Example 5 with MappingEditorDialog

use of com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog in project midpoint by Evolveum.

the class ResourceAssociationEditor method inboundEditPerformed.

private void inboundEditPerformed(AjaxRequestTarget target, MappingType mapping) {
    MappingEditorDialog window = (MappingEditorDialog) get(ID_MODAL_INBOUND);
    window.updateModel(target, mapping, true);
    window.show(target);
}
Also used : MappingEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog)

Aggregations

MappingEditorDialog (com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.MappingEditorDialog)11 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)4 ModalWindow (org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow)4 LimitationsEditorDialog (com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.LimitationsEditorDialog)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2