Examples of actionPerformed()


Examples of javax.swing.Action.actionPerformed()

    // Delete new catalog piece of furniture
    final Action deleteAction = homeView.getActionMap().get(HomePane.ActionType.DELETE);
    assertTrue("Delete action isn't enable", deleteAction.isEnabled());
    tester.invokeLater(new Runnable() {
        public void run() {
          deleteAction.actionPerformed(null);
        }
      });
    // Wait for confirm dialog to be shown
    tester.waitForFrameShowing(new AWTHierarchy(), preferences.getLocalizedString(
        HomePane.class, "confirmDeleteCatalogSelection.title"));
View Full Code Here

Examples of javax.swing.Action.actionPerformed()

      Object selectedItem = e.getItem();
      String cmd = (String)selectionMap.get(selectedItem);
      if (cmd != null) {
        Action action = getAction(cmd);
        if (action != null) {
    action.actionPerformed(new ActionEvent(e.getSource(), e.getID(), cmd));
        }
      }
    }
  }
      });
View Full Code Here

Examples of javax.swing.Action.actionPerformed()

                    MailTreeNode mtn = null;
                    net.suberic.pooka.FolderInfo fi = storeInfo.getChild("INBOX");
                    if (fi != null) {
                      FolderNode fn = fi.getFolderNode();
                      Action openAction = fn.getAction("file-open");
                      openAction.actionPerformed(new java.awt.event.ActionEvent(this, 0, "file-open"));
                      mtn = fn;
                    } else {
                      mtn = storeInfo.getStoreNode();
                    }
                    if (mtn != null) {
View Full Code Here

Examples of javax.swing.Action.actionPerformed()

          if (textActions[i].getValue(Action.NAME).equals(name))
            selectedAction = textActions[i];
        }

        if (selectedAction != null) {
          selectedAction.actionPerformed(e);
        }
      }
    }
  }
View Full Code Here

Examples of javax.swing.Action.actionPerformed()

        public void hyperlinkUpdate(HyperlinkEvent e) {
          if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            if (e.getDescription().equals("StartTutorial")) {
              startTutorial.actionPerformed(null);
            } else if (e.getDescription().equals("StopTutorial")) {
              stopTutorial.actionPerformed(null);
            } else {
              try {
                tutorialArea.setPage(e.getURL());
              } catch (IOException e1) {
                MessageCenter.getInstance().getLogger().error(
View Full Code Here

Examples of javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.actionPerformed()

        document.setAsynchronousLoadPriority(-1)// synchronous loading
        pane.setText("<p>test</p>");
        final int pos = document.getLength() - 1;
        pane.setCaretPosition(pos);

        action.actionPerformed(new ActionEvent(pane, 0, null));
        Element e = document.getCharacterElement(pos + 1);
        assertEquals(HTML.Tag.HR, getHTMLTagByElement(e));
        assertNotNull(e);
        HTML.Tag parentTag = getHTMLTagByElement(e.getParentElement());
        assertTrue(HTML.Tag.P.equals(parentTag) || HTML.Tag.IMPLIED.equals(parentTag));
View Full Code Here

Examples of jscicalc.button.CalculatorButton.actionPerformed()

      char c = keyEvent.getKeyChar();
      if( c == java.awt.event.KeyEvent.VK_ENTER )
    c = '=';
      CalculatorButton b = calculatorPanel.keyMap().get( c );
      if( b != null )
    b.actionPerformed( null );
      else if( c == java.awt.event.KeyEvent.VK_BACK_SPACE && !shift )
    calculatorPanel.buttons().elementAt( 30 ).actionPerformed( null );
  }
    }
   
View Full Code Here

Examples of net.sf.jportlet.portlet.application.PortletProxy.actionPerformed()

        PortletRequestImpl    req = new PortletRequestImpl( proxy, request, serviceFactory );
        PortletResponseImpl   resp = new PortletResponseImpl( proxy, req, response );
        HttpServletRequest    hreq = req.getHttpRequest(  );
        String                action = uri.getAction(  );
        ActionEventImpl       event = new ActionEventImpl( action, req, resp );
        proxy.actionPerformed( event );

        /* Get the URI where to move*/
        PortletURI nextURI = event.getNextURI(  );
        String     nextUri;
        if ( nextURI != null )
View Full Code Here

Examples of net.sourceforge.ganttproject.action.ZoomInAction.actionPerformed()

            bZoomIn.setText(language.getText("widenChart"));
            bZoomIn.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent arg0) {
                    run(new Runnable() {
                        public void run() {
                            zoomIn.actionPerformed(null);
                            updateSourceImage();
                            bZoomOut.setEnabled(zoomManager.canZoomOut());
                            bZoomIn.setEnabled(zoomManager.canZoomIn());
                        }
                    });
View Full Code Here

Examples of net.sourceforge.ganttproject.action.ZoomOutAction.actionPerformed()

            bZoomOut.setText(language.getText("narrowChart"));
            bZoomOut.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent arg0) {
                    run(new Runnable() {
                        public void run() {
                            zoomOut.actionPerformed(null);
                            updateSourceImage();
                            bZoomOut.setEnabled(zoomManager.canZoomOut());
                            bZoomIn.setEnabled(zoomManager.canZoomIn());
                        }
                    });
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.