Package org.jvnet.flamingo.ribbon

Examples of org.jvnet.flamingo.ribbon.RibbonApplicationMenuEntryPrimary


    /**
     * Ribbon Application Menu settings
     */
    protected void configureApplicationMenu() {
        RibbonApplicationMenuEntryPrimary amEntryDashboard = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "dashboard.png"))),
                I18n.CUSTOMERS.getString("Action.Dashboard"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        onOpenDashboard();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryDashboard.setActionKeyTip("D");

        RibbonApplicationMenuEntryPrimary amEntryCustomers = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "customer.png"))),
                I18n.CUSTOMERS.getString("Action.Customers"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        onOpenCustomers();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryCustomers.setActionKeyTip("C");

        RibbonApplicationMenuEntryPrimary amEntryCategories = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "category.png"))),
                I18n.CUSTOMERS.getString("Action.Categories"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        onOpenCategories();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryCategories.setActionKeyTip("A");

        RibbonApplicationMenuEntryPrimary amEntryCountries = new RibbonApplicationMenuEntryPrimary(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS22 + "country.png"))),
                I18n.CUSTOMERS.getString("Action.Countries"),
                new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        onOpenCountries();
                    }
                }, CommandButtonKind.ACTION_ONLY);
        amEntryCountries.setActionKeyTip("O");

        RibbonApplicationMenuEntryFooter amEntryExit = new RibbonApplicationMenuEntryFooter(
                ViewHelpers.createResizableIcon(
                        new ImageIcon(getClass().getResource(ViewHelpers.ICONS16 + "exit.png"))),
                I18n.COMMON.getString("Action.Exit"),
View Full Code Here

TOP

Related Classes of org.jvnet.flamingo.ribbon.RibbonApplicationMenuEntryPrimary

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.