Examples of DialogForTesting


Examples of net.sourceforge.marathon.DialogForTesting

    @Before public void setUp() throws Exception {
        WindowMonitor.getInstance();
        scriptListener = new ScriptListenerMock();
        recorder = new ScriptRecorder(scriptListener);
        dialog = new DialogForTesting(this.getClass().getName());
        listener = new RecordingEventListener(recorder, null, ScriptModelServerPart.getModelServerPart(),
                WindowMonitor.getInstance());
        dialog.getResolver().setRecording(true);
        listener.startListening(dialog.getResolver());
        i1 = Indent.getIndent();
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

    /*
     * root { child1 { child2 { child21 child22 }
     */
    @Before
    public void setUp() throws Exception {
        dialog = new DialogForTesting(this.getClass().getName());
        DefaultMutableTreeNode root = getTreeNode(T("root", T("child1", T("child2", T("child21", "child22")))));
        dialog.addTree("tree.name", root);
        jtree = dialog.getTree();
        tree = new MTree(jtree, "tree.name", new ComponentFinder(Boolean.FALSE,
                WindowMonitor.getInstance().getNamingStrategy(), new ResolversProvider(),
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

        System.setProperties(properties);
    }

    @Before
    public void setUp() throws Exception {
        dialog = new DialogForTesting(getName());
        dialog.setBounds(300, 200, 100, 100);
        plainEditor = new JEditorPane("text/plain", S1);
        htmlEditor = new JEditorPane("text/html", getHTML(S1, false));
        dialog.getContentPane().add(plainEditor);
        dialog.pack();
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

        properties.remove(Constants.PROP_PROJECT_SCRIPT_MODEL);
        System.setProperties(properties);
    }

    @Before public void setUp() throws Exception {
        tabDialog = new DialogForTesting(this.getClass().getName());
        tabDialog.addTabbedPane("tabbedpaneicons.name", Icons.COLLAPSEALL_ENABLED, Icons.COPY_ENABLED);
        tabDialog.show();
        tabPane = new MTabbedPane(tabDialog.getTabbedPaneWithIcons(), "tabbedpaneicons.name", tabDialog.getResolver(),
                WindowMonitor.getInstance());
    }
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

        System.setProperties(properties);
    }

    @Before
    public void setUp() throws Exception {
        dialog = new DialogForTesting(getName());
        dialog.setBounds(300, 200, 100, 100);
        dialog.addList("list.name", new String[] { "item0", "item1", "item2", "item3" });
        dialog.pack();
        dialog.show();
    }
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

            protected void keyPressed(MComponent component, KeyEvent e, boolean isMenuActive) {
                events.append("key pressed on " + getName(component));
            }
        };
        listener.startListening(new ComponentFinder(Boolean.FALSE, WindowMonitor.getInstance().getNamingStrategy(), new ResolversProvider(), ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()));
        dialog = new DialogForTesting(this.getClass().getName());
        dialog.addButton("button.name", "button.name");
        dialog.addTextField("text.name", "");
        dialog.addComboBox("combo.name", new String[] { "choiceA", "choiceB", "choiceC" });
        dialog.show();
        waitForIt();
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

        System.setProperties(properties);
    }

    @Before
    public void setUp() throws Exception {
        dialog = new DialogForTesting(getName());
        dialog.setBounds(300, 200, 100, 100);
        dialog.addComboBox("name", new String[] { "a", "b", "c" });
        mComboBox = new MComboBox(dialog.getComboBox(), "foo.bar", dialog.getResolver(), WindowMonitor.getInstance());
        dialog.show();
    }
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

        System.setProperties(properties);
    }

    @Before
    public void setUp() throws Exception {
        dialog = new DialogForTesting(this.getClass().getName());
        dialog.addButton("name", "text");
        events = new MessageList();
        eventQueue = new RecordingEventQueue(null, null, null, ScriptModelServerPart.getModelServerPart(),
                WindowMonitor.getInstance()) {
            public ContextMenuWindow showPopup(Component c, Point point) {
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

        properties.remove(Constants.PROP_PROJECT_SCRIPT_MODEL);
        System.setProperties(properties);
    }

    @Before public void setUp() throws Exception {
        dialog = new DialogForTesting(this.getClass().getName());
        dialog.addButton("button.name", "I dare you");
        tableData = new Object[][] { { "Value1A", "Value1B", "Value1C", Boolean.FALSE },
                { "Value2A", "Value2B", "Value2C", Boolean.TRUE }, };
        tableData = new Object[88000][4];
        for (int i = 1; i <= 88000; i++) {
View Full Code Here

Examples of net.sourceforge.marathon.DialogForTesting

        label.addMouseListener(new MouseAdapter() {
            public void mousePressed(MouseEvent e) {
                System.out.println(".mousePressed()");
            }
        });
        dialog = new DialogForTesting(this.getClass().getName());
        dialog.getContentPane().add(label);
        dialog.show();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.