Package org.pushingpixels.flamingo.api.common

Examples of org.pushingpixels.flamingo.api.common.JCommandToggleButton


    }

    private JCommandToggleButton createAndAddToggleButton(ARibbonContributor parent,
                                                          CommandToggleButtonGroup alignGroup,
                                                          ExecutionMode executionMode) {
        JCommandToggleButton toggleButton = new JCommandToggleButton("", getIcon(makeIconFileName(executionMode)));
        toggleButton.setActionRichTooltip(createRichTooltip(getTitleForExecutionMode(executionMode)));
        toggleGroup.add(toggleButton);
        parent.addChild(toggleButton, getDefaultProps(RibbonElementPriority.MEDIUM));
        return toggleButton;
    }
View Full Code Here


        band.addFlowComponent(styleComboWrapper);

        JCommandButtonStrip styleStrip = new JCommandButtonStrip();

        AFreeplaneAction action = context.getBuilder().getMode().getAction("BoldAction");
        final JCommandToggleButton boldButton = RibbonActionContributorFactory.createCommandToggleButton(action);
        addDefaultToggleHandler(context, action, boldButton);       
        styleStrip.add(boldButton);

        action = context.getBuilder().getMode().getAction("ItalicAction");
        final JCommandToggleButton italicButton = RibbonActionContributorFactory.createCommandToggleButton(action);
        addDefaultToggleHandler(context, action, italicButton);
        styleStrip.add(italicButton);
       
        action = context.getBuilder().getMode().getAction("NodeColorAction");
        JCommandButton button = RibbonActionContributorFactory.createCommandButton(action);
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.api.common.JCommandToggleButton

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.