Package org.pushingpixels.flamingo.api.common

Examples of org.pushingpixels.flamingo.api.common.JCommandToggleButton.addActionListener()


              }
            });
        JCommandToggleButton jrb = new JCommandToggleButton(null,
            finalIcon);
        jrb.setName("Group " + groupIndex + ", index " + i);
        jrb.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            System.out.println("Invoked action on " + deco);
          }
        });
        this.addButtonToLastGroup(jrb);
View Full Code Here


  protected JCommandToggleButton createToggleButton(
      CommandButtonDisplayState state, String title) {
    JCommandToggleButton mainButton = new JCommandToggleButton(title);
    mainButton
        .setExtraText(resourceBundle.getString("SelectAll.textExtra"));
    mainButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println(stamp() + ": Main selection");
      }
    });
    mainButton.setDisplayState(state);
View Full Code Here

    JCommandToggleButton mainButton = new JCommandToggleButton(
        new edit_paste());
    mainButton.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    mainButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println(stamp() + ": Main selection");
      }
    });
    mainButton.setDisplayState(state);
View Full Code Here

    mainButton.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    mainButton
        .setExtraText(resourceBundle.getString("SelectAll.textExtra"));
    mainButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println(stamp()
            + ": button activated, selection state is "
            + mainButton.getActionModel().isSelected());
      }
View Full Code Here

    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;
  }
 
  public static JCommandMenuButton createCommandMenuButton(final AFreeplaneAction 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.