Package org.jvnet.flamingo.common

Examples of org.jvnet.flamingo.common.JCommandButton


                I18n.COMMON.getString("AppView.ExtrasBand"),
                new EmptyResizableIcon(22));
        extrasBand.setResizePolicies(
                CoreRibbonResizePolicies.getCorePoliciesRestrictive(extrasBand));

        JCommandButton cbtnSettings = new JCommandButton(
                I18n.COMMON.getString("Action.Settings"),
                ViewHelpers.createResizableIcon(new ImageIcon(getClass().getResource(
                                        ViewHelpers.ICONS22 + "settings.png"))));
        cbtnSettings.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                onSettings();
            }
        });
        cbtnSettings.setActionKeyTip("E");
        extrasBand.addCommandButton(cbtnSettings, RibbonElementPriority.TOP);

        return extrasBand;
    }
View Full Code Here


                I18n.COMMON.getString("AppView.HelpBand"),
                new EmptyResizableIcon(22));
        helpBand.setResizePolicies(
                CoreRibbonResizePolicies.getCorePoliciesRestrictive(helpBand));

        JCommandButton cbtnHelp = new JCommandButton(
                I18n.COMMON.getString("AppView.Help"),
                ViewHelpers.createResizableIcon(new ImageIcon(getClass().getResource(
                                        ViewHelpers.ICONS22 + "help.png"))));
        cbtnHelp.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                onHelp();
            }
        });
        cbtnHelp.setActionKeyTip("H");
        helpBand.addCommandButton(cbtnHelp, RibbonElementPriority.TOP);

        JCommandButton cbtnAbout = new JCommandButton(
                I18n.COMMON.getString("AppView.Help.About"),
                ViewHelpers.createResizableIcon(new ImageIcon(getClass().getResource(
                                        ViewHelpers.ICONS22 + "about.png"))));
        cbtnAbout.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                onAbout();
            }
        });
        cbtnAbout.setActionKeyTip("A");
        helpBand.addCommandButton(cbtnAbout, RibbonElementPriority.TOP);

        return helpBand;
    }
View Full Code Here

TOP

Related Classes of org.jvnet.flamingo.common.JCommandButton

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.