Search in sources :

Example 1 with LimitationsEditorDialog

use of com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.LimitationsEditorDialog 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 2 with LimitationsEditorDialog

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

the class ResourceAssociationEditor method limitationsEditPerformed.

private void limitationsEditPerformed(AjaxRequestTarget target) {
    LimitationsEditorDialog window = (LimitationsEditorDialog) get(ID_MODAL_LIMITATIONS);
    window.show(target);
}
Also used : LimitationsEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.LimitationsEditorDialog)

Example 3 with LimitationsEditorDialog

use of com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.LimitationsEditorDialog 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 LimitationsEditorDialog

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

the class ResourceAttributeEditor method limitationsEditPerformed.

private void limitationsEditPerformed(AjaxRequestTarget target) {
    LimitationsEditorDialog window = (LimitationsEditorDialog) get(ID_MODAL_LIMITATIONS);
    window.show(target);
}
Also used : LimitationsEditorDialog(com.evolveum.midpoint.web.component.wizard.resource.component.schemahandling.modal.LimitationsEditorDialog)

Aggregations

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