Examples of addActionListener()


Examples of fr.soleil.comete.swing.IconButton.addActionListener()

    // assertThat((String) listenerTest.getNotification("stateChange"))
    // .isEqualTo("VALID");

    final ActionListenerImpl ali = new ActionListenerImpl();
    final IconButton button = abb.getIconButton();
    button.addActionListener(ali);
    final JButton b = (JButton) this.tth.findFirstComponent(JButton.class,
        this.jf1);
    this.tth.click(b);
    Sleeper.SECONDS.sleep(3);
    assertThat(ali.getNotifyCount()).isEqualTo(1);
View Full Code Here

Examples of fr.soleil.comete.swing.StringButton.addActionListener()

    @Override
    protected StringButton initWidget() {
        StringButton button = super.initWidget();
        // remove actionlistener for actionPerformed not to be called automatically
        button.removeActionListener(button);
        button.addActionListener(this);
        return button;
    }

    @Override
    protected void initKey() {
View Full Code Here

Examples of fr.soleil.salsa.client.view.component.ValueMenuItem.addActionListener()

            List<SimpleNode> secondLevelMenus = sn.getChildren();
            for (SimpleNode subMenuNode : secondLevelMenus) {
                ValueMenuItem smi = new ValueMenuItem();
                smi.setValue(subMenuNode.getValue());
                smi.setText(subMenuNode.getLabel());
                smi.addActionListener(menuActionListener);
                category.add(smi);
            }
            suggestionPopup.add(category);
        }
    }
View Full Code Here

Examples of framework.IPlaneUpdateObject.addActionListener()

                this.add(tmp);
                for (int i = 0; i < functions.length; i++) {
                    if (!functions[i].equals("Pilot") && !functions[i].equals("-no function-")) {
                        final int k = i;
                        tmp = new JMenuItem(functions[i]);
                        tmp.addActionListener(new ActionListener() {

                            public void actionPerformed(ActionEvent e) {
                                String oC = selectedPlane.getActiveController();
                                String nC = functions[k];
                                selectedPlane.setActiveController(nC);
View Full Code Here

Examples of geogebra.gui.TitlePanel.addActionListener()

    ActionListener kernelChangedListener = new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        kernelChanged = true;
      }
    };
    tp.addActionListener(kernelChangedListener);
    tp.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));

    tabbedPane = new JTabbedPane();
    tabbedPane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    tabbedPane.addTab(app.getMenu("General"), createGeneralSettingsTab());
View Full Code Here

Examples of instantbach.gui.tab.progression.SymbolButton.addActionListener()

        //for each available symbol..
        for (int i = 0; i < availableSymbols.size(); i++) {

            Symbol symbol = availableSymbols.get(i);
            SymbolButton button = new SymbolButton(symbol);
            button.addActionListener(this);
            buttonList.add(button);

            c.gridx = col;
            c.gridy = row;
            panel.add(button, c);
View Full Code Here

Examples of jSimMacs.display.JSimMenuItem.addActionListener()

   * Add a RemoteProject to the Run and Analyze Menu
   * @param remoteProject
   */
  public void addRemoteProjectRunMenu(RemoteProject remoteProject) {
    JSimMenuItem remoteRunProjectItem = new JSimMenuItem(remoteProject);
    remoteRunProjectItem.addActionListener(this);
    JSimMenuItem remoteAnalyzeProjectItem = new JSimMenuItem(remoteProject,
        true);
    remoteAnalyzeProjectItem.addActionListener(this);
    remoteRunMenu.add(remoteRunProjectItem);
    remoteAnalyzeMenu.add(remoteAnalyzeProjectItem);
View Full Code Here

Examples of java.awt.Button.addActionListener()

    selectionPanel = new Panel();
    selectionPanel.setLayout(new BorderLayout());
    selectionPanel.add(new Label("Demo", Label.CENTER), BorderLayout.NORTH);

    Button fullScreen = new Button("Fullscreen");
    fullScreen.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent event) {
        toggleFullscreen();
      }
    });
View Full Code Here

Examples of java.awt.Menu.addActionListener()

      e = mimeTypes.keys();

      while(e.hasMoreElements()) {
    String major = (String)e.nextElement();
    Menu imenu = new Menu(major);
    imenu.addActionListener(this);
    minor = (String[]) mimeTypes.get(major);
    for(int i=0; i<minor.length; i++) {
        item = new MenuItem(minor[i]);
        addMenuListener(item, major + "/" + minor[i]);
        imenu.add(item);
View Full Code Here

Examples of java.awt.MenuItem.addActionListener()

    for (int i = 0; i < TEMPLATE_PATHS.size(); i++) {
      String mE = TEMPLATE_DESCRIPTIONS.get(i);
      final String path = TEMPLATE_PATHS.get(i);
     
      MenuItem m = new MenuItem(mE);
      m.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent ee) {
          try {
            InputStream inR = this.getClass().getClassLoader()
            .getResourceAsStream(path);
            m_mainKFPerspective.addTab("Untitled");
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.