Package org.jitterbit.integration.client.ui.interchange.entity.operation.page

Examples of org.jitterbit.integration.client.ui.interchange.entity.operation.page.EntitySelectionControl


        addInputField(selector.getTargetField());
        return selector;
    }

    private EntitySelectionControl createTransformationSelector() {
        final EntitySelectionControl selector = new EntitySelectionControl(operationPage, EntityType.Transformation,
                        null, PackageResources.Transformation.LABEL, true);
        selector.setToolTip(PackageResources.Transformation.TOOLTIP);
        selector.asSelectionSource().addSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                model.setTransformation((Transformation) selector.getSelectedEntity());
            }
        });
        model.addPropertyChangeListener(new PropertyChangeListener() {

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                String name = evt.getPropertyName();
                if (name.equals(TransformationChainModel.TRANSFORMATION)) {
                    selector.setSelectedEntity((Transformation) evt.getNewValue());
                } else if (name.equals(TransformationChainModel.TRANSFORMATION_FILTER)) {
                    selector.setNewFilter((EntityFilter) evt.getNewValue());
                }
            }
        });
        addInputField(selector.asInputFieldForChangeDetection());
        return selector;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.operation.page.EntitySelectionControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.