Examples of asContentPaneFor()


Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

    private static void layoutDialog(KongaDialog dlg, UiProvider content) {
        BorderLayoutBuilder cp = new BorderLayoutBuilder();
        cp.center(content).south(createButtonPanel(dlg));
        cp.setBorder(Empty.border(10));
        cp.asContentPaneFor(dlg);
    }

    private static JComponent createButtonPanel(KongaDialog dlg) {
        JPanel buttons = dlg.getButtonPanel(KongaDialog.CLOSE_ONLY, 0);
        // Bug #1594389: Without this, the focus seems to end up somewhere
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

        private void layoutComponents() {
            JPanel buttons = getButtonPanel(OK_CANCEL, 15);
            buttons.setBorder(Empty.border(15, 0, 10, 0));
            BorderLayoutBuilder cp = new BorderLayoutBuilder();
            cp.center(getInputPanel()).south(buttons).setBorder(Empty.border(10, 10, 5, 10));
            cp.asContentPaneFor(this);
        }

        private JComponent getInputPanel() {
            JPanel p = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.setUseSmallSizedIconsForActions(true);
        buttons.addAllWithSpace(10, stopAction, continueAction).glue().add(cancelButton);
        layout.south(buttons);
        layout.setBorder(Empty.border(10));
        layout.asContentPaneFor(dialog);
        dialog.pack();
        dialog.setLocationRelativeTo(null);
        dialog.setResizable(false);
        dialog.manageLocation();
        dialog.setDefaultButton(stopAction);
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

        }

        private void layoutComponents() {
            BorderLayoutBuilder cp = new BorderLayoutBuilder(list);
            cp.north(PackageResources.SavePrompt.CAPTION).south(buttons).withEmptyBorder(10, 10, 10, 10);
            cp.asContentPaneFor(this);
        }
    }
   
}
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

   
    private static void layoutDialog(KongaDialog dlg, UiProvider content, KongaDialog.ButtonMode mode) {
        BorderLayoutBuilder cp = new BorderLayoutBuilder(content);
        cp.withEmptyBorder(10, 10, 10, 10);
        cp.south(createButtonPanel(dlg, mode));
        cp.asContentPaneFor(dlg);
    }

    private static JComponent createButtonPanel(KongaDialog dlg, KongaDialog.ButtonMode mode) {
        JPanel buttons = dlg.getButtonPanel(mode, 10);
        buttons.setBorder(Empty.border(10, 0, 10, 0));
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

    private KongaDialog createDialog() {
        ConnectLaunchScreen ui = new ConnectLaunchScreen(view, wizardTypes);
        final KongaDialog dialog = new KongaDialog(view.getWindow().getFrame(),
                        JitterbitConnectNames.JITTERBIT_CONNECT, true);
        BorderLayoutBuilder layout = layoutDialog(dialog, ui);
        layout.asContentPaneFor(dialog);
        dialog.setCancelOnEscape(true);
        ui.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

        layout.center("The test stopped at a breakpoint, but the server did not provide the location of the " +
            "breakpoint. This is a bug.");
        layout.west(CommonIcons.ERROR_24);
        layout.south(layoutButtons(resume, stop, dialog.createCloseButton()));
        layout.setBorder(Empty.border(10));
        layout.asContentPaneFor(dialog);
        dialog.pack();
        dialog.setResizable(false);
    }

    private static JButton createButton(Action a) {
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

        BoxBuilder buttons = BoxBuilder.horizontal();
        Action testAction = pad.getUi().getTestAction();
        buttons.add(testAction).glue().add(new KongaButton(closeAction));
        layout.south(buttons);
        layout.setBorder(Empty.border(10));
        layout.asContentPaneFor(frame);
        frame.pack();
        frame.setLocationRelativeTo(appWin.getFrame());
        installEscapeKey(frame);
        UiUtils.makeDefaultButton(layout.container(), testAction);
        return frame;
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

        private KongaDialog createDialog() {
            KongaDialog dialog = new KongaDialog(UiUtils.getActiveWindow(), getString("Move.ConflictDialog.Title"));
            BorderLayoutBuilder content = new BorderLayoutBuilder(0, 10);
            content.northToSouth(createCaption(), selector, getButtons(dialog));
            content.setBorder(Empty.border(10));
            content.asContentPaneFor(dialog);
            dialog.pack();
            dialog.setResizable(false);
            dialog.manageLocation(DialogConflictResolver.class);
            dialog.setOkButtonAsDefault();
            return dialog;
View Full Code Here

Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.asContentPaneFor()

    private void createContentPane(KongaDialog dialog) {
        BorderLayoutBuilder cp = new BorderLayoutBuilder(0, 5);
        cp.north(PackageResources.PropertiesDialog.CAPTION).center(selector);
        addDialogButtons(dialog, cp);
        cp.setBorder(Empty.border(10, 10, 20, 10));
        cp.asContentPaneFor(dialog);
    }
   
    private void addDialogButtons(KongaDialog dialog, BorderLayoutBuilder cp) {
        JPanel buttons = dialog.getButtonPanel(KongaDialog.CLOSE_ONLY, 0);
        buttons.setBorder(Empty.border(10, 0, 0, 0));
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.