Examples of JCommandToggleButton


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

 
  public static JCommandToggleButton createCommandToggleButton(final AFreeplaneAction action) {
    String title = ActionUtils.getActionTitle(action);
    ResizableIcon icon = ActionUtils.getActionIcon(action);
   
    final JCommandToggleButton button = new JCommandToggleButton(title, icon);
   
    updateRichTooltip(button, action, null);
    button.addActionListener(new RibbonActionListener(action));
    button.setFocusable(false);
    return button;
  }
View Full Code Here

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

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

        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
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.