Package org.pushingpixels.flamingo.api.common

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


                    JCommandMenuButton button;
                    for (final AttributeColumn column : availableColumns) {

                        button = new JCommandMenuButton(column.getTitle(), ImageWrapperResizableIcon.getIcon(ImageUtilities.loadImage("org/gephi/desktop/datalab/resources/column.png"), new Dimension(16, 16)));
                        button.addActionListener(new ActionListener() {

                            public void actionPerformed(ActionEvent e) {
                                DataLaboratoryHelper.getDefault().executeAttributeColumnsManipulator(acm, table, column);
                            }
                        });
View Full Code Here


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

        AFreeplaneAction action = new ExecuteScriptAction(scriptName, title, scriptPath, executionMode,
            metaData.cacheContent(), metaData.getPermissions());
        ResizableIcon icon = ActionUtils.getActionIcon(action);
        final JCommandMenuButton scriptEntry = new JCommandMenuButton(title, icon);
        scriptEntry.setActionRichTooltip(createRichTooltip(title, metaData));
        scriptEntry.addActionListener(action);
        scriptEntry.setFocusable(false);
        scriptEntry.setEnabled(metaData.getExecutionModes().contains(executionMode));
        return scriptEntry;
    }
View Full Code Here

        String name = ((WoPeDRecentFile) v.get(idx)).getName();
        String path = ((WoPeDRecentFile) v.get(idx)).getPath();

        JCommandMenuButton recentMenuItem = new JCommandMenuButton(
            name, new file_recent());
        recentMenuItem.addActionListener(new recentFileListener(path));

        m_recentMenu.addMenuButton(recentMenuItem);
      }
    } else {
      JCommandMenuButton emptyItem = new JCommandMenuButton(
View Full Code Here

              samplepath = "/" + ze.getName();
              name = ze.getName().substring(
                  ze.getName().lastIndexOf("/") + 1);
              JCommandMenuButton sampleItem = new JCommandMenuButton(
                  name, new help_smaplenets());
              sampleItem
                  .addActionListener(new sampleFileListener(
                      samplepath));

              m_sampleMenu.addMenuButton(sampleItem);
            }
View Full Code Here

                JCommandMenuButton sampleItem = new JCommandMenuButton(
                    sampleDir.listFiles()[idx].getName(),
                    new help_smaplenets());
                String name = sampleDir.listFiles()[idx]
                    .getAbsolutePath();
                sampleItem
                    .addActionListener(new sampleFileListener(
                        name));

                m_sampleMenu.addMenuButton(sampleItem);
              }
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.