Package org.jitterbit.ui.widget.button

Examples of org.jitterbit.ui.widget.button.KongaButton


        btns.add(createShowEditorStackButton());
        return btns;
    }

    private KongaButton createShowEditorStackButton() {
        final KongaButton b = new KongaButton(showEditorStackAction);
        Action keyActivator = new AbstractAction() {
           
            @Override
            public void actionPerformed(ActionEvent e) {
                b.doClick();
            }
        };
        keyActivator.putValue(Action.ACCELERATOR_KEY, KeyUtils.getAltDown(KeyEvent.VK_DOWN));
        ActionKeyBinding.install(keyActivator, b, JComponent.WHEN_IN_FOCUSED_WINDOW);
        return b;
View Full Code Here


        LabelDecorator decorator = TextStyles.DefaultTextSmall.asLabelDecorator(null);
        return new DottedTextLabel(decorator);
    }

    private JButton createCancelButton() {
        JButton b = new KongaButton(ProcessConsoleIcons.STOP).makeToolbarButton();
        b.setToolTipText(Strings.get("Job.DefaultDisplayer.Cancel.ToolTip"));
        b.addActionListener(new ActionListener() {

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

    public WizardDisplayerActionSupport(Wizard wizard) {
        this.wizard = wizard;
        goBack = WizardActions.getPreviousPageAction(wizard);
        goNext = WizardActions.getNextPageAction(wizard);
        goNextButton = new KongaButton(goNext);
        save = WizardActions.getSaveAction(wizard);
        saveButton = new KongaButton(save);
        cancel = WizardActions.getCancelAction(wizard);
        cancel.setEnabled(true);
    }
View Full Code Here

        controlPanel.decorate(canvas);
    }

    private List<JButton> createButtonsForDialog() {
        List<JButton> buttons = new ArrayList<JButton>();
        buttons.add(new KongaButton(goBack));
        buttons.add(goNextButton);
        buttons.add(saveButton);
        buttons.add(new KongaButton(cancel));
        if (helpButton != null) {
            buttons.add(helpButton);
        }
        return buttons;
    }
View Full Code Here

    private static final Border rollOverIconButtonBorder = new LineBorder(Color.LIGHT_GRAY);

    private final JButton button;

    public ActionBasedApplicationWindowQuickLauncher(Action action) {
        button = new KongaButton(action).setUseMediumActionIcon(true);
        button.setText(null);
        button.setContentAreaFilled(false);
        button.setBorder(normalIconButtonBorder);
        button.addMouseListener(new MouseAdapter() {
View Full Code Here

            row.withEmptyBorder(0, 0, 10, 10);
            row.addToParent(panel, BorderLayout.SOUTH);
        }

        private JButton createApplyButton() {
            JButton btn = new KongaButton("&Apply");
            btn.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {
                    doApply();
                }
            });
            btn.setToolTipText("Save the settings in the current page");
            btn.setEnabled(false);
            return btn;
        }
View Full Code Here

            page.apply();
            applyButton.setEnabled(false);
        }

        private JButton createRestoreDefaultsButton() {
            JButton btn = new KongaButton("Restore Defaults");
            btn.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {
                    page.restoreDefaults();
                }
            });
            btn.setToolTipText("Restore the default settings in the current page");
            return btn;
        }
View Full Code Here

   
    private JComponent createUpperButtonPanel() {
        BoxBuilder b = BoxBuilder.horizontal();
        b.glue();
        if (disposeHandler != null) {
            disposeButton = new KongaButton(disposeHandler);
            b.add(disposeButton).strut(10);
        }
        detailsAction = new DetailsAction();
        b.add(new KongaButton(detailsAction));
        return b.container();
    }
View Full Code Here

   
    private JComponent createLowerButtonPanel() {
        stackTraceAction = new StackTraceAction();
        Box b = Box.createHorizontalBox();
        b.add(Box.createHorizontalStrut(Icons.EMPTY_ICON.getIconWidth() + 5));
        b.add(new KongaButton(copyToClipboardAction));
        if (SupportActionFactory.isEnabled()) {
            b.add(Box.createHorizontalStrut(10));
            b.add(new KongaButton(SupportActionFactory.newAction()));
        }
        b.add(Box.createHorizontalGlue());
        b.add(new KongaButton(stackTraceAction));
        return b;
    }
View Full Code Here

    private JComponent layoutDefiner(TextDocumentDefiner definer) {
        if (viewStructureTreeAction == null) {
            return definer.getUi();
        }
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 5).setOpaque(false);
        KongaButton viewStructureButton = new KongaButton(viewStructureTreeAction);
        layout.center(definer.getUi()).south(InvisiblePanel.newPanel(viewStructureButton));
        return layout.container();
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.button.KongaButton

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.