Examples of BasicFinder


Examples of abbot.finder.BasicFinder

      });
    // Wait for confirm dialog to be shown
    tester.waitForFrameShowing(new AWTHierarchy(), preferences.getLocalizedString(
        HomePane.class, "confirmDeleteCatalogSelection.title"));
    // Find displayed dialog box
    JDialog confirmDeleteCatalogSelectionDialog = (JDialog)new BasicFinder().find(frame,
        new ClassMatcher (JDialog.class, true));
    // Click on Ok in dialog box
    final JOptionPane optionPane = (JOptionPane)TestUtilities.findComponent(
        confirmDeleteCatalogSelectionDialog, JOptionPane.class);
    tester.invokeAndWait(new Runnable() {
View Full Code Here

Examples of abbot.finder.BasicFinder

        method.
    */
    protected void fixtureSetUp() throws Throwable {
        hierarchy = createHierarchy();

        finder = new BasicFinder(hierarchy);
        // FIXME kind of a hack, but Script is the only implementation of
        // Resolver we've got at the moment.
        resolver = new Script(hierarchy);
    }
View Full Code Here

Examples of abbot.finder.BasicFinder

*/
public class Interpreter extends bsh.Interpreter {
    public Interpreter(Resolver r) {
        setClassLoader(r.getContextClassLoader());
        try {
            set("finder", new BasicFinder(r.getHierarchy()));
            set("resolver", r);
            set("script", r);
            InputStream is = getClass().getResourceAsStream("init.bsh");
            eval(new BufferedReader(new InputStreamReader(is)));
        }
View Full Code Here

Examples of abbot.finder.BasicFinder

        class FieldMatcher implements Matcher {
            public boolean matches( Component c ) {
                return c instanceof JFormattedTextField;
            }
        }
        BasicFinder finder = new BasicFinder();
       
        Matcher m = new FieldMatcher();
        JFormattedTextField f = null;
        try {
            f = (JFormattedTextField) finder.find( c, m );
        } catch (ComponentNotFoundException ex) {
            ex.printStackTrace();
        } catch (MultipleComponentsFoundException ex) {
            ex.printStackTrace();
        }
View Full Code Here

Examples of abbot.finder.BasicFinder

        class FieldMatcher implements Matcher {
            public boolean matches( Component c ) {
                return c instanceof JSlider;
            }
        }
        BasicFinder finder = new BasicFinder();
       
        Matcher m = new FieldMatcher();
        JSlider f = null;
        try {
            f = (JSlider) finder.find( c, m );
        } catch (ComponentNotFoundException ex) {
            ex.printStackTrace();
        } catch (MultipleComponentsFoundException ex) {
            ex.printStackTrace();
        }
View Full Code Here

Examples of abbot.finder.BasicFinder

        class FieldMatcher implements Matcher {
            public boolean matches( Component c ) {
                return c instanceof JTextField && staticName.equals( c.getName() );
            }
        }
        BasicFinder finder = new BasicFinder();
       
        Matcher m = new FieldMatcher();
        JTextField f = null;
        try {
            f = (JTextField) finder.find( editor, m );
        } catch (ComponentNotFoundException ex) {
            ex.printStackTrace();
        } catch (MultipleComponentsFoundException ex) {
            ex.printStackTrace();
        }
View Full Code Here

Examples of abbot.finder.BasicFinder

        class FieldMatcher implements Matcher {
            public boolean matches( Component c ) {
                return c instanceof JButton && staticName.equals( c.getName() );
            }
        }
        BasicFinder finder = new BasicFinder();
        Matcher m = new FieldMatcher();
        JButton btn = null;
        try {
            btn = (JButton) finder.find( editor, m );
        } catch (ComponentNotFoundException ex) {
            ex.printStackTrace();
        } catch (MultipleComponentsFoundException ex) {
            ex.printStackTrace();
        }
View Full Code Here

Examples of abbot.finder.BasicFinder

        class FieldMatcher implements Matcher {
            public boolean matches( Component c ) {
                return c instanceof JButton && staticName.equals( c.getName() );
            }
        }
        BasicFinder finder = new BasicFinder();
        Matcher m = new FieldMatcher();
        JButton btn = null;
        try {
            btn = (JButton) finder.find( editor, m );
        } catch (ComponentNotFoundException ex) {
            ex.printStackTrace();
        } catch (MultipleComponentsFoundException ex) {
            ex.printStackTrace();
        }
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.