Examples of addActionListener()


Examples of org.primefaces.component.menuitem.MenuItem.addActionListener()

        submenu.setLabel("Operations");

        // menu items
        item = new MenuItem();
        item.setValue("Save");
        item.addActionListener(FacesUtil.createMethodActionListener("#{positionedMenuController.save}", Void.class,
                new Class[] { ActionEvent.class }));
        item.setUpdate("growl");
        submenu.getChildren().add(item);

        item = new MenuItem();
View Full Code Here

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

    for (int i = 0; i < cont.getComponentCount(); i++) {
      Component comp = cont.getComponent(i);
      if (comp instanceof AbstractCommandButton) {
        AbstractCommandButton acb = (AbstractCommandButton) comp;
        acb.setText(resourceBundle.getString("Click.text"));
        acb.addActionListener(new CounterActionListener());
      }
      if (comp instanceof Container) {
        scan((Container) comp);
      }
    }
View Full Code Here

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

        strip.setDisplayState(CommandButtonDisplayState.BIG);
        JCommandButton button = new JCommandButton(NbBundle.getMessage(DataTableTopComponent.class, "DataTableTopComponent.addColumnButton.text"), ImageWrapperResizableIcon.getIcon(ImageUtilities.loadImage("org/gephi/desktop/datalab/resources/table-insert-column.png", true), new Dimension(16, 16)));
        button.setCommandButtonKind(JCommandButton.CommandButtonKind.ACTION_ONLY);
        button.setDisplayState(CommandButtonDisplayState.BIG);
        if (classDisplayed == ClassDisplayed.NODE) {
            button.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent e) {
                    showAddColumnUI(AddColumnUI.Mode.NODES_TABLE);
                }
            });
View Full Code Here

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

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

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

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

Examples of org.pushingpixels.flamingo.internal.ui.ribbon.JRibbonTaskToggleButton.addActionListener()

      final JRibbonTaskToggleButton taskToggleButton = new JRibbonTaskToggleButton(
          task);
      taskToggleButton.setKeyTip(task.getKeyTip());
      // wire listener to select the task when the button is
      // selected
      taskToggleButton.addActionListener(new ActionListener() {
        @Override
                public void actionPerformed(ActionEvent e) {
          SwingUtilities.invokeLater(new Runnable() {
            @Override
                        public void run() {
View Full Code Here

Examples of org.richfaces.component.UICommandLink.addActionListener()

          "Mayor que");
     
      clGE.getChildren().add(giGE);
     
      // setPropertyBean (ge = greater or equal,...)
      clGE.addActionListener(setPropertyActionListener(
            valueExpressionOperadors,
            "ge",
            String.class));
     
      panelGrid2.getChildren().add(clGE);
View Full Code Here

Examples of org.spoutcraft.launcher.skin.components.DynamicButton.addActionListener()

      userImage.setRepaintCallback(userButton);

      userButton.setBounds((FRAME_WIDTH - 90) * (i + 1) / (users + 1), (FRAME_HEIGHT - 110) / 2 , 90, 90);
      contentPane.add(userButton);
      userButton.setActionCommand(IMAGE_LOGIN_ACTION);
      userButton.addActionListener(this);
      setIcon(userButton.getRemoveIcon(), "remove.png", 16);
      userButton.getRemoveIcon().addActionListener(this);
      userButton.getRemoveIcon().setActionCommand(REMOVE_USER);
      userButton.getRemoveIcon().setBorder(BorderFactory.createEmptyBorder());
      userButton.getRemoveIcon().setContentAreaFilled(false);
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.figures.BorderedContainerFigure.addActionListener()

    if (part instanceof ActivityDiagramPart) {
      ActivityDiagramPart diagramPart = (ActivityDiagramPart) part;
      direction = diagramPart.getDirection();
    }
    BorderedContainerFigure figure = new BorderedContainerFigure(createHeaderFigure(direction), direction);
    figure.addActionListener(this);
    return figure;
  }

  protected abstract Label createHeaderFigure(int direction);
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.