Package org.jitterbit.integration.client.ui.script.builder

Examples of org.jitterbit.integration.client.ui.script.builder.ScriptBuilderUi$TestAction


        prepareTagGeneric(tag);
        verifyGenericProperties(tag, "xhtml", new String[]{"value"});
    }

    private void prepareTagGeneric(DoubleSelectTag tag) {
        TestAction testAction = (TestAction) action;
        Region antwerp = new Region("Antwerp", "AN");
        Region gent = new Region("Gent", "GN");
        Region brugge = new Region("Brugge", "BRG");
        ArrayList belgiumRegions = new ArrayList();
        belgiumRegions.add(antwerp);
        belgiumRegions.add(gent);
        belgiumRegions.add(brugge);
        Country belgium = new Country("Belgium", "BE", belgiumRegions);

        Region paris = new Region("Paris", "PA");
        Region bordeaux = new Region("Bordeaux", "BOR");
        ArrayList franceRegions = new ArrayList();
        franceRegions.add(paris);
        franceRegions.add(bordeaux);
        Country france = new Country("France", "FR", franceRegions);

        Collection collection = new ArrayList(2);
        collection.add("AN");
        testAction.setCollection(collection);

        tag.setList("collection");

        List countries = new ArrayList();
        countries.add(belgium);
        countries.add(france);

        testAction.setList2(countries);

        tag.setValue("'FR'");
        tag.setDoubleValue("'BOR'");

        tag.setList("list2");
View Full Code Here


        List right = new ArrayList();
        right.add("Right1");
        right.add("Right2");

        TestAction testaction = (TestAction) action;
        testaction.setCollection(left);
        testaction.setList2(right);

        OptionTransferSelectTag tag = new OptionTransferSelectTag();
        tag.setPageContext(pageContext);

        tag.setName("collection");
View Full Code Here

        rightVal.add("Right1");
        rightVal.add("Right2");
        rightVal.add("Right3");


        TestAction testaction = (TestAction) action;
        testaction.setCollection(left);
        testaction.setList2(right);
        testaction.setCollection2(leftVal);
        testaction.setList3(rightVal);


        OptionTransferSelectTag tag = new OptionTransferSelectTag();
        tag.setPageContext(pageContext);
View Full Code Here

        rightVal.add("Right1");
        rightVal.add("Right2");
        rightVal.add("Right3");


        TestAction testaction = (TestAction) action;
        testaction.setCollection(left);
        testaction.setList2(right);
        testaction.setCollection2(leftVal);
        testaction.setList3(rightVal);


        OptionTransferSelectTag tag = new OptionTransferSelectTag();
        tag.setPageContext(pageContext);
View Full Code Here

        rightVal.add("Right1");
        rightVal.add("Right2");
        rightVal.add("Right3");


        TestAction testaction = (TestAction) action;
        testaction.setCollection(left);
        testaction.setList2(right);
        testaction.setCollection2(leftVal);
        testaction.setList3(rightVal);


        OptionTransferSelectTag tag = new OptionTransferSelectTag();
        tag.setPageContext(pageContext);
View Full Code Here

        rightVal.add("Right1");
        rightVal.add("Right2");
        rightVal.add("Right3");


        TestAction testaction = (TestAction) action;
        testaction.setCollection(left);
        testaction.setList2(right);
        testaction.setCollection2(leftVal);
        testaction.setList3(rightVal);


        OptionTransferSelectTag tag = new OptionTransferSelectTag();
        tag.setPageContext(pageContext);
View Full Code Here

        rightVal.add("Right1");
        rightVal.add("Right2");
        rightVal.add("Right3");


        TestAction testaction = (TestAction) action;
        testaction.setCollection(left);
        testaction.setList2(right);
        testaction.setCollection2(leftVal);
        testaction.setList3(rightVal);


        OptionTransferSelectTag tag = new OptionTransferSelectTag();
        tag.setPageContext(pageContext);
View Full Code Here

        return model;
    }

    private ScriptBuilderUi createScriptBuilder(IntegrationProject project, ScriptModeSelector modeSelector,
                    Node target, String expression) {
        ScriptBuilderUi scriptBuilder = new ScriptBuilderUi(scriptModel, modeSelector);
        scriptBuilder.setSourceTree(sourceTreeLayout);
        scriptBuilder.setFunctionSelector(DefaultSelectorsBuilder.buildFunctionSelector());
        scriptBuilder.setProjectItemSelector(DefaultSelectorsBuilder.buildProjectItemSelector(scriptModel));
        scriptBuilder.setDataElementSelector(DefaultSelectorsBuilder.buildDataElementSelector(project));
        scriptBuilder.setPluginSelector(createPluginSelector());
        scriptBuilder.setDebugUi(createScriptTestUi(target));
        scriptBuilder.setExpression(checkEmptyExpression(expression));
        scriptBuilder.setDefaultCaretPosition();
        configureCompletionContext(scriptBuilder);
        return scriptBuilder;
    }
View Full Code Here

            }
            return null;
        }

        private void replaceDisplayedExpression(String newExpression, ScriptPage page) {
            ScriptBuilderUi ui = page.getScriptBuilder();
            ExpressionArea area = ui.getExpressionArea();
            area.requestFocus();
            int caretPosition = area.getCaretPosition();
            // TODO: ExpressionArea.setText blanks out the undo-redo history.
            // We don't want to do that here.
            area.setText(newExpression);
View Full Code Here

            @Override
            public void handle(TestResult result) {
                showResult(result);
            }
        });
        ScriptBuilderUi ui = factory.createScriptBuilder(script, modeSelector,
                        interchangeDebugService.getPlatformDebugService());
        configureCompletionContext(des, ui);
        if (latestExpression != null) {
            ui.setExpression(latestExpression);
        }
        ui.getDebugUi().getModel().setDebugMessage("");
        ui.setPostDisplayDelay(6); // HACK: Workaround for bug 3220365
        return ui;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.script.builder.ScriptBuilderUi$TestAction

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.