Package org.jitterbit.ui

Examples of org.jitterbit.ui.QuickFrame


        });
    }

    public void run() {
        final HttpPropertiesPanel panel = new HttpPropertiesPanel(new HttpProperties(), "");
        QuickFrame frame = new QuickFrame(panel.getUi(), getClass().getName());
        frame.addKeyBinding("print", KeyUtils.F5, new AbstractAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                System.out.println(panel.getDefinedProperties());
            }
        });
        frame.publish();
    }
View Full Code Here


    @Override
    public void run() {
        ui = new WizardSectionsUi(sections);
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 20).north(ui).center("Wizard goes here");
        setIndex(0);
        QuickFrame frame = new QuickFrame(layout, "Wizard Sections");
        frame.addKeyBinding("next", KeyUtils.RIGHT, new AbstractAction() {
           
            @Override
            public void actionPerformed(ActionEvent e) {
                int nextIndex = index + 1;
                setIndex(Math.min(nextIndex, sections.length - 1));
            }
        });
        frame.addKeyBinding("previous", KeyUtils.LEFT, new AbstractAction() {
           
            @Override
            public void actionPerformed(ActionEvent e) {
                int nextIndex = index - 1;
                setIndex(Math.max(0, nextIndex));
            }
        });
        frame.publish();
    }
View Full Code Here

public class ExtendedAttributesSelectorUiDisplayTest implements Runnable {

    @Override
    public void run() {
        final ExtendedAttributesSelectorUi ui = new ExtendedAttributesSelectorUi();
        QuickFrame frame = new QuickFrame(ui, "Extended Attributes");
        frame.addKeyBinding("status", KeyUtils.F5, new AbstractAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                System.out.println("Valid: " + ui.isValid());
            }
        });
        frame.publish();
    }
View Full Code Here

            public void handle(CreateXsdResult result) {
                System.out.println(result == null ? "null" : result.getMainXsd());
            }
        });
        XmlToXsdController.install(ui);
        QuickFrame frame = QuickFrame.show(ui, "XML to XSD");
        ui.setWaitService(frame);
    }
View Full Code Here

            public void handle(CreateXsdResult result) {
                System.out.println(result == null ? "null" : result.getMainXsd());
            }
        });
        JsonToXsdController.install(ui);
        QuickFrame frame = QuickFrame.show(ui, "JSON to XSD");
        ui.setWaitService(frame);
    }
View Full Code Here

        });
    }

    public void start() {
        final FileFilterOptionsPanel panel = new FileFilterOptionsPanel(new FileFilterOptions());
        QuickFrame frame = new QuickFrame(panel.getUi(), getClass().getSimpleName());
        frame.addKeyBinding("print", KeyUtils.F5, new AbstractAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                System.out.println(panel.getOptions());
            }
        });
        frame.publish();
    }
View Full Code Here

        });
    }

    public void run() {
        final EntityListSelector<Source> selector = createSelector();
        QuickFrame frame = createFrame(selector);
        frame.publish();
    }
View Full Code Here

        selector.setSelectedEntity(sources.get(2));
        return selector;
    }
   
    private QuickFrame createFrame(final EntitySelector<Source> selector) {
        QuickFrame frame = new QuickFrame(createFrameUi(selector), getClass().getSimpleName());
        addKeyBindings(frame, selector);
        return frame;
    }
View Full Code Here

    private SelectionAction deleteAction;
   
    @Override
    public void run() {
        final EntityTreeSelector<Source> selector = createSelector();
        QuickFrame frame = createFrame(selector);
        frame.publish();
    }
View Full Code Here

        return selector;
    }
   
   
    private QuickFrame createFrame(final EntitySelector<Source> selector) {
        QuickFrame frame = new QuickFrame(createFrameUi(selector), getClass().getSimpleName());
        addKeyBindings(frame, selector);
        return frame;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.QuickFrame

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.