Examples of ActionListener


Examples of charva.awt.event.ActionListener

    public void postActionEvent(ActionEvent ae_) {
  if (_actionListeners != null) {
      for (Enumeration<ActionListener> e = _actionListeners.elements();
        e.hasMoreElements(); ) {

    ActionListener al = (ActionListener) e.nextElement();
    al.actionPerformed(ae_);
      }
  }
    }
View Full Code Here

Examples of com.ardor3d.extension.ui.event.ActionListener

        tfName.setLayoutData(GridLayoutData.WrapAndGrow);
        final UILabel lPassword = new UILabel("Password");
        final UIPasswordField tfPassword = new UIPasswordField();
        tfPassword.setLayoutData(GridLayoutData.WrapAndGrow);
        final UIButton btLogin = new UIButton("login");
        btLogin.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                System.out.println("login as user: " + tfName.getText() + " password: " + tfPassword.getText());
            }
        });
        pLogin.add(lHeader);
View Full Code Here

Examples of com.codename1.ui.events.ActionListener

    RequestToken requestToken = rtr.getToken();
   
    // Use the request token to retrieve an access token for the authorizing user.
    final ObservableWebBrowser wb = new ObservableWebBrowser();
    AccessTokenRequest atr = new AccessTokenRequest(serviceProvider, signer, requestToken);
    atr.addReceiveTokenListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        Log.p("onAccessToken()", Log.DEBUG);
        AccessToken at = (AccessToken)evt.getSource();
        onReceiveAccessToken(at);
        onSaveAccessToken(at);
        onAuthenticated();
        onDisposeLogin(backForm, wb);
      }
    });
    atr.addDeniedListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        onDisposeLogin(backForm, wb);
      }
    });
View Full Code Here

Examples of com.eclipsesource.tabris.ui.ActionListener

    assertTrue( action.wasExecuted() );
  }

  @Test
  public void testSelectionEventNotifiesListeners() {
    ActionListener listener = mock( ActionListener.class );
    mockUI( listener );

    control.notifyListeners( SWT.Selection, new Event() );

    TestAction action = ( TestAction )actionDescriptor.getAction();
View Full Code Here

Examples of com.jme3.input.controls.ActionListener

    singles.getGameController().initialize(cam,settings);
    singles.getGameController().doLogin();

    inputManager.setCursorVisible(true);
   
        inputManager.addListener(new ActionListener() {
     
      @Override
      public void onAction(String name, boolean isPressed, float tpf) {
        if(name.equals("print_scenegraph") && !isPressed){
          printHierarchy(rootNode, "");
View Full Code Here

Examples of com.sun.dtv.lwuit.events.ActionListener

        disableCommand = new Command("Disable Virtual Keyboard");
        addCommand(disableCommand);
        enableCommand = new Command("Enable Virtual Keyboard");
        cancelCommand = new Command("Cancel");
        addCommand(cancelCommand);
        setCommandListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                if (e.getCommand() == okCommand) {
                    saveAndExit();
                } else if (e.getCommand() == disableCommand) {
                    removeComponent(keyboardComponent);
View Full Code Here

Examples of java.awt.event.ActionListener

    add(mNewExclusionBtn, cc.xy(4, 1));
    add(mEditExclusionBtn, cc.xy(4, 3));
    add(mDeleteExclusionBtn, cc.xy(4, 5));
   
    mNewExclusionBtn.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent event) {

        WizardHandler handler = new WizardHandler(parent, new ExcludeWizardStep(favorite));
        Exclusion exclusion = (Exclusion) handler.show();
        if (exclusion != null) {
          ((DefaultListModel) mExclusionsList.getModel()).addElement(exclusion);
          mWasAdded = true;
        }

      }
    });

    mEditExclusionBtn.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        Exclusion oldExclusion = (Exclusion) mExclusionsList.getSelectedValue();
        WizardHandler handler = new WizardHandler(parent, new ExcludeWizardStep(favorite, oldExclusion));
        Exclusion newExclusion = (Exclusion) handler.show();
        if (newExclusion != null) {
          int inx = mExclusionsList.getSelectedIndex();
          ((DefaultListModel) mExclusionsList.getModel()).setElementAt(newExclusion, inx);
          mWasEditedOrDeleted = true;
        }
      }
    });

    mDeleteExclusionBtn.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        Exclusion exclusion = (Exclusion) mExclusionsList.getSelectedValue();
        if (exclusion != null) {
          ((DefaultListModel) mExclusionsList.getModel()).removeElement(exclusion);
          mWasEditedOrDeleted = true;
View Full Code Here

Examples of java.awt.event.ActionListener

        catch(Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }

        start.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                startSender();
            }
        });

        stop.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                try {
                    TotOrderRequest req=new TotOrderRequest(TotOrderRequest.STOP, 0, 0, 0);
                    byte[] buf=req.toBuffer();
                    channel.send(
                            new Message(
                                    null,
                                    null,
                                    buf));
                }
                catch(Exception ex) {
                }
            }
        });

        clear.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                canvas.clear();
            }
        });

        get_state.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                try {
                    boolean rc=channel.getState(null, 3000);
                    if(rc == false)
                        error("State could not be retrieved !");
                }
                catch(Throwable t) {
                    error("exception fetching state: " + t);
                }
            }
        });

        quit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                channel.disconnect();
                channel.close();
                System.exit(0);
            }
View Full Code Here

Examples of java.awt.event.ActionListener

        file.addSeparator();
        file.add(quitm);


        quitm.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        System.exit(1);
                    }
                });
        return ret;
View Full Code Here

Examples of java.awt.event.ActionListener

    panelDeleted.add(new JScrollPane(list), BorderLayout.CENTER);

    JPanel btnPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    JButton ok = new JButton(Localizer.getLocalization(Localizer.I18N_OK));
    ok.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent e) {
        setVisible(false);
      }
View Full Code Here
TOP
Copyright © 2015 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.