Examples of addActionListener()


Examples of nextapp.echo2.app.RadioButton.addActionListener()

            RadioButton radioButton = new RadioButton("RadioButton #" + i);
            radioButton.setGroup(buttonGroup);
            radioButton.setStyleName("Default");
            componentSamplerColumn.add(radioButton);
            if (launchModals && i == 1) {
                radioButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        getApplicationInstance().getDefaultWindow().getContent().add(createComponentSamplerModalTestWindow());
                    }
                });
            }
View Full Code Here

Examples of nextapp.echo2.app.SelectField.addActionListener()

        }
        componentSamplerColumn.add(listBox);

        SelectField selectField = new SelectField(ListBoxTest.NUMBERS);
        if (launchModals) {
            selectField.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    getApplicationInstance().getDefaultWindow().getContent().add(createComponentSamplerModalTestWindow());
                }
            });
        }
View Full Code Here

Examples of nextapp.echo2.app.Table.addActionListener()

        table.setSelectionEnabled(true);
        table.setSelectionBackground(new Color(0xffcfaf));
        table.setRolloverEnabled(true);
        table.setRolloverBackground(new Color(0xafefff));
        if (launchModals) {
            table.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    getApplicationInstance().getDefaultWindow().getContent().add(createComponentSamplerModalTestWindow());
                }
            });
        }
View Full Code Here

Examples of nextapp.echo2.app.TextArea.addActionListener()

        });
        controlsColumn.addButton("Add ActionListener", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                textField.addActionListener(actionListener);
                passwordField.addActionListener(actionListener);
                textArea.addActionListener(actionListener);
            }
        });
        controlsColumn.addButton("Remove ActionListener", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                textField.removeActionListener(actionListener);
View Full Code Here

Examples of nextapp.echo2.app.TextField.addActionListener()

                }
            }
        });
        controlsColumn.addButton("Add ActionListener", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                textField.addActionListener(actionListener);
                passwordField.addActionListener(actionListener);
                textArea.addActionListener(actionListener);
            }
        });
        controlsColumn.addButton("Remove ActionListener", new ActionListener() {
View Full Code Here

Examples of nextapp.echo2.app.button.ButtonModel.addActionListener()

        ActionHandler buttonActionListener = new ActionHandler();
        ActionHandler modelActionListener = new ActionHandler();
        Button button = new Button("Test");
        ButtonModel model = button.getModel();
        button.addActionListener(buttonActionListener);
        model.addActionListener(modelActionListener);
        assertEquals(0, buttonActionListener.eventCount);
        assertEquals(0, modelActionListener.eventCount);
        button.doAction();
        assertEquals(1, buttonActionListener.eventCount);
        assertEquals(1, modelActionListener.eventCount);
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.gui.BSMapMenuItem.addActionListener()

            for (int j=0; j<maps.length; j++) {
                // adds menuItem for map
                String label = maps[j].getName();
                if (label.length() >= 4) label = label.substring(0, label.length()-4);
                JMenuItem menuItem = new BSMapMenuItem(label, maps[j].getName(), dirs[i].getName());
                menuItem.addActionListener( new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        loadMapForItem((BSMapMenuItem)e.getSource());
                    }
                });
                submenu.add(menuItem);
View Full Code Here

Examples of nu.lazy8.util.help.HelpedButton.addActionListener()

    jPanel1.add(button1);

    JButton button4 = new HelpedButton(Translator.getTranslation("OK"),
        "ok", "dataconn", view);

    button4.addActionListener(
      new java.awt.event.ActionListener() {
        //{{{ +actionPerformed(java.awt.event.ActionEvent) : void
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          buttonOK();
        }//}}}
View Full Code Here

Examples of nz.govt.natlib.meta.ui.ImageButton.addActionListener()

    });
    jPanel1.setLayout(borderLayout1);
    jLabel1.setText("Message Priority:");
    close.setMnemonic('C');
    close.setText("Close");
    close.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(ActionEvent e) {
        close_actionPerformed(e);
      }
    });
    jPanel3.setBorder(titledBorder3);
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.SelectableTextField.addActionListener()

          initialType != null ? absMagEqns.get(initialType) : "",
          true, false, Kind.LINE);

      final SelectableTextField typesField = new SelectableTextField(
          "Variable Type", types, initialType);
      typesField.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
          // Update the abs mag equation when the variable type
          // selection changes.
          absMagEqns.get(typesField.getValue());
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.