Examples of AbstractAction


Examples of javax.swing.AbstractAction

    if (canBeProjectTask) {
      result = new JCheckBox (language.getText("projectTask"));
      projectTaskCheckBox1 = result;
    }
    else if (canBeMilestone) {
      mileStoneCheckBox1 = new JCheckBox(new AbstractAction(language.getText("meetingPoint")) {
        public void actionPerformed(ActionEvent arg0) {
          enableMilestoneFriendlyControls(!isBilan());
        }
      });
      result = mileStoneCheckBox1;
View Full Code Here

Examples of javax.swing.AbstractAction

        table.getActionMap().put("properties", myPropertiesAction);
        table.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), "delete");
        table.getActionMap().put("delete", myDeleteAssignmentAction);
        table.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(GPAction.getKeyStroke("newArtifact.shortcut")
                , "newHuman");
        table.getActionMap().put("newHuman", new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        prj.newHumanResource();
      }
        });
        if (!prj.isOnlyViewer) {
View Full Code Here

Examples of org.apache.fop.render.intermediate.extensions.AbstractAction

    /** {@inheritDoc} */
    public void addResolvedAction(AbstractAction action) throws IFException {
        assert action.isComplete();
        assert action.hasID();
        AbstractAction noted = (AbstractAction)incompleteActions.remove(action.getID());
        if (noted != null) {
            completeActions.add(action);
        } else {
            //ignore as it was already complete when it was first used.
        }
View Full Code Here

Examples of org.jamesii.gui.application.action.AbstractAction

        IconManager.getIcon(IconIdentifier.DELETE_SMALL, "Delete entry");

    // add variable on the current level

    IAction addVariableAction =
        new AbstractAction("variables.variable.add", "Add variable",
            addVariableIcon, new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addVariableAction.setEnabled(true);

    // add sub level

    IAction addLevelAction =
        new AbstractAction("variables.sublevel.add", "Add sub level",
            addLevelIcon, new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addLevelAction.setEnabled(true);

    // add optimization

    IAction addOptimizationAction =
        new AbstractAction("variables.optimization.add", "Add optimization",
            addOptimizationIcon, new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addOptimizationAction.setEnabled(true);

    // remove variable / sub level / optimization

    IAction addORemoveAction =
        new AbstractAction("variables.delete", "Delete entry", deleteIcon,
            new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addORemoveAction.setEnabled(true);

    return result;
  }
View Full Code Here

Examples of org.springframework.webflow.action.AbstractAction

  public void testStateExceptionHandlingExceptionInEndState() {
    FlowBuilder builder = new AbstractFlowBuilder() {
      public void buildStates() throws FlowBuilderException {
        State state = new EndState(getFlow(), "end");
        state.getEntryActionList().add(new AbstractAction() {
          protected Event doExecute(RequestContext context) throws Exception {
            throw new NullPointerException("failing");
          }
        });
        new TransitionableState(getFlow(), "showError") {
View Full Code Here

Examples of org.xadoop.servlet.actions.AbstractAction

    if (actionStr != null) {
      boolean isLoginAction = actionStr.equals(LoginAction.ACTIONNAME);
      if (isLoggedIn || isLoginAction) {
        ServletContext ctx = req.getSession().getServletContext();
        HashMap<String, AbstractAction> am = getActionMap(ctx);
        AbstractAction action = am.get(actionStr);
        if (action == null) {
          msg = "Action " + actionStr + " unknown!";
        } else {
          AbstractResult result = action.execute(req);

          // if everything was okay
          // send reload (retaining get parameters)
          if (result.wasSuccessful()) {
            String parameters = GetRequest.reconstructParameters(req, "&");
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.