Package org.apache.jmeter.gui.action

Examples of org.apache.jmeter.gui.action.ActionRouter


    }

    @Override
    public void keyPressed(KeyEvent e) {
        if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.DUPLICATE)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.DUPLICATE));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.ALT_UP_ARROW)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.MOVE_UP));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.ALT_DOWN_ARROW)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.MOVE_DOWN));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.ALT_LEFT_ARROW)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.MOVE_LEFT));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.ALT_RIGHT_ARROW)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.MOVE_RIGHT));
            e.consume();
        }
    }
View Full Code Here


    public void mouseExited(MouseEvent ev) {
    }

    public void keyPressed(KeyEvent e) {
        if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
        } else if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
        } else if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
// If the following lines are included, then pressing the DUPLICATE key results in calling the action twice.
// Without the code below, it still works.
// Odd, the other keypresses do need to be handled above or they do not work at all...
//        } else if (KeyStrokes.matches(e,KeyStrokes.DUPLICATE)) {
//            ActionRouter actionRouter = ActionRouter.getInstance();
View Full Code Here

    public void mouseExited(MouseEvent ev) {
    }

    public void keyPressed(KeyEvent e) {
        if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
        } else if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
        } else if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
// If the following lines are included, then pressing the DUPLICATE key results in calling the action twice.
// Without the code below, it still works.
// Odd, the other keypresses do need to be handled above or they do not work at all...
//        } else if (KeyStrokes.matches(e,KeyStrokes.DUPLICATE)) {
//            ActionRouter actionRouter = ActionRouter.getInstance();
View Full Code Here

    public void mouseExited(MouseEvent ev) {
    }

    public void keyPressed(KeyEvent e) {
        if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
        }
        if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
        }
        if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
        }
    }
View Full Code Here

        public void actionPerformed(ActionEvent e)
        {
          reinitialize();
        }
      };
      ActionRouter ar = ActionRouter.getInstance();
      ar.addPostActionListener( addToTree, listener );
      ar.addPostActionListener( remove, listener );
    }
    catch ( ClassNotFoundException e )
    {
    }
    modulesPanel.add( nodes );
View Full Code Here

    }

    @Override
    public void keyPressed(KeyEvent e) {
        if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
            e.consume();
        } else if (KeyStrokes.matches(e,KeyStrokes.DUPLICATE)) {
            ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.DUPLICATE));
            e.consume();
        }
    }
View Full Code Here

  public void mouseExited(MouseEvent ev) {
  }

  public void keyPressed(KeyEvent e) {
    if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
      ActionRouter actionRouter = ActionRouter.getInstance();
      actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
    }
    if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
      ActionRouter actionRouter = ActionRouter.getInstance();
      actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
    }
    if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
      ActionRouter actionRouter = ActionRouter.getInstance();
      actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
    }
  }
View Full Code Here

  public void mouseExited(MouseEvent ev) {
  }

  public void keyPressed(KeyEvent e) {
    if (KeyStrokes.matches(e,KeyStrokes.COPY)) {
      ActionRouter actionRouter = ActionRouter.getInstance();
      actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.COPY));
    }
    if (KeyStrokes.matches(e,KeyStrokes.PASTE)) {
      ActionRouter actionRouter = ActionRouter.getInstance();
      actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.PASTE));
    }
    if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
      ActionRouter actionRouter = ActionRouter.getInstance();
      actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
    }
  }
View Full Code Here

        } else if (KeyStrokes.matches(e, KeyStrokes.ALT_RIGHT_ARROW)) {
            actionName = ActionNames.MOVE_RIGHT;
        }
       
        if (actionName != null) {
            final ActionRouter actionRouter = ActionRouter.getInstance();
            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), actionName));
            e.consume();
        }
    }
View Full Code Here

                public void actionPerformed(ActionEvent e)
                {
                    reinitialize();
                }
            };
            ActionRouter ar = ActionRouter.getInstance();
            ar.addPostActionListener(addToTree, listener);
            ar.addPostActionListener(remove, listener);
        }
        catch (ClassNotFoundException e)
        {
        }
        modulesPanel.add(nodes);
View Full Code Here

TOP

Related Classes of org.apache.jmeter.gui.action.ActionRouter

Copyright © 2018 www.massapicom. 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.