Examples of Action


Examples of com.werken.werkz.Action

        while (i.hasNext())
        {
            final ObjectOrdering o = (ObjectOrdering) i.next();

            Action a = new DefaultAction()
            {
                public void performAction()
                {
                    _orderedObjects.add(o.getObject());
                }
View Full Code Here

Examples of cu.ftpd.commands.site.actions.Action

        siteCommandHandler.registerAction("approve", new Approve(requestLog));
        siteCommandHandler.registerAction("request", new cu.ftpd.modules.requests.actions.Request(requestLog));


        siteCommandHandler.registerAction("requests", new Requests(requestLog));
        Action req = new ReqFilled(requestLog);
        siteCommandHandler.registerAction("reqfilled", req);
        siteCommandHandler.registerAction("fillrequest", req);
    }
View Full Code Here

Examples of de.nameless.gameEngine.util.StateMachine.Action

 
  private void setupStatMachines(){
   
    MoveAttackSM = new StateMachine();
   
    selectUnitAction = new Action("selectUnitAction");   
    deSelectUnitAction = new Action("deSelectUnitAction");   
    moveUnitAction = new Action("moveUnitAction");   
    attackUnitAction = new Action("attackUnitAction");   
   
    startState = new State("Start")
    unitSelected = new State("unitSelected");
    unitMovedState = new State("unitMoved");   
   
View Full Code Here

Examples of de.odysseus.calyxo.control.Action

        if (className == null) {
          clazz = pluginContext.getDefaultActionClass();
        } else {
          clazz = context.getClassLoader().loadClass(className);
        }
        Action action = (Action)clazz.newInstance();
        action.init(actionConfig, context);
        Command command = chain(actionConfig.getFilterConfigs(), action);
        ActionCommand item = new ActionCommand(actionConfig, command);
        commands.put(actionConfig.getPath(), item);
      }
    }
View Full Code Here

Examples of de.willuhn.jameica.gui.Action

    addItem(new UmsatzItem(i18n.tr("Als neue �berweisung anlegen..."),new AuslandsUeberweisungNew(),"stock_next.png"));
    addItem(ContextMenuItem.SEPARATOR);
    addItem(new UmsatzBookedItem(i18n.tr("als \"gepr�ft\" markieren..."),new UmsatzMarkChecked(Umsatz.FLAG_CHECKED,true),"emblem-default.png","ALT+G"));
    addItem(new UmsatzBookedItem(i18n.tr("als \"ungepr�ft\" markieren..."),new FlaggableChange(Umsatz.FLAG_CHECKED,false),"edit-undo.png","CTRL+ALT+G"));
    addItem(ContextMenuItem.SEPARATOR);
    addItem(new UmsatzItem(i18n.tr("Drucken..."),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        new Print().handleAction(new PrintSupportUmsatzList(context));
      }
    },"document-print.png"));
    addItem(new UmsatzItem(i18n.tr("Exportieren..."),new UmsatzExport(),"document-save.png"));
    addItem(new ContextMenuItem(i18n.tr("Importieren..."),new UmsatzImport()
    {

      public void handleAction(Object context) throws ApplicationException
      {
        super.handleAction(konto != null ? konto : context);
      }
     
    }
    ,"document-open.png"));
   
    // BUGZILLA 512 / 1115
    addItem(ContextMenuItem.SEPARATOR);
    addItem(new UmsatzBookedItem(i18n.tr("Kategorie zuordnen..."),new UmsatzAssign(),"x-office-spreadsheet.png","ALT+K"));
    addItem(new CheckedSingleContextMenuItem(i18n.tr("Kategorie bearbeiten..."),new UmsatzTypNew(),"document-open.png")
    {
      public boolean isEnabledFor(Object o)
      {
        // Wen es ein Umsatz ist, dann nur aktivieren, wenn der Umsatz eine Kategorie hat
        if (o instanceof Umsatz)
        {
          try
          {
            return ((Umsatz)o).getUmsatzTyp() != null;
          }
          catch (RemoteException re)
          {
            Logger.error("unable to check umsatztyp",re);
          }
        }
       
        // Ansonsten wie gehabt
        return super.isEnabledFor(o);
      }
     
    });
    addItem(new ContextMenuItem(i18n.tr("Neue Kategorie anlegen..."),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        // BUGZILLA 926
        UmsatzTyp ut = null;
View Full Code Here

Examples of douyu.mvc.Action

      if (!modifiers.contains(Modifier.PUBLIC) || modifiers.contains(Modifier.STATIC))
        return this;

      HttpMethod[] httpMethods = null;

      Action action = e.getAnnotation(Action.class);
      if (action != null) {
        httpMethods = action.httpMethods();
      }
      if (httpMethods == null || httpMethods.length == 0) {
        httpMethods = controller.httpMethods();
      }
      StringBuilder methods = new StringBuilder("checkHttpMethods(");
View Full Code Here

Examples of easysm.datatypes.Action

    State source = new State(cPine, true);
    State target = new State(cTupe, false);
    CondReactInfo condReactInfo = new CondReactInfo(null, null);
    CondReact cr = new CondReact(condReactInfo);
    Expr cond = new Expr("cond");
    Action react = new Action("react");
    cr.changeRemCond(cond);
    cr.changeRemReact(react);
    EventInfo eInfo = new EventInfo(cGino, null);
    Event e = new Event(eInfo);
    Transition t = Generator.generateTransition(source, target, e, cr);
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.actions.Action

     * correct type. Errors are display if the message does not have an action or the
     * type is not supported (not message, presence, or poll-presence).
     */
    @Override
    public void handleNewMessage(JSONObject jo) {
        Action action;
        String actionString = "";

        try {
            actionString = jo.getString("action");
        } catch (JSONException e) {
            System.err.println("Message does not have action.");
            e.printStackTrace();
        }

        if (actionString.equalsIgnoreCase(Message.action)) {
            action = new Message(jo);
            action.process(this);
        } else if (actionString.equalsIgnoreCase(Presence.action)) {
            try {
                action = new Presence(jo);
                action.process(this);
            } catch (Exception e) {
                e.printStackTrace();
            }
        } else if (actionString.equalsIgnoreCase(PollPresence.action)) {
            action = new PollPresence(jo);
            action.process(this);
        } else {
            System.err.println("Message action type not supported: " + actionString);
        }
    }
View Full Code Here

Examples of flash.swf.Action

  public void visit(ActionHandler handler, int startIndex, int endIndex)
  {
    endIndex = (endIndex < 0) ? size-1 : endIndex;
    for (int j=startIndex; j <= endIndex; j++)
    {
      Action a = actions[j];
      if (a.code != sactionLabel && a.code != sactionLineRecord)
      {
        // don't call this for labels
                if (offsets != null)
            handler.setActionOffset(offsets[j], a);
                else
                    handler.setActionOffset(j, a);
      }
      a.visit(handler);
    }
    }
View Full Code Here

Examples of foo.domaintest.action.Action

  /** Execute a GET or POST request by injecting and running the appropriate {@link Action}. */
  @Override
  public void service(HttpServletRequest request, HttpServletResponse response) throws IOException {
    // The poorly named method getRequestURI gives the path.
    RegisteredAction registeredAction = DELEGATOR.getRegisteredAction(request.getRequestURI());
    Action action = registeredAction.getAction();
    String origin = request.getHeader(ORIGIN);
    String method = request.getMethod();
    if (!(("GET".equals(request.getMethod()) && action instanceof GetAction)
        || ("POST".equals(request.getMethod()) && action instanceof PostAction)
        || ("OPTIONS".equals(method) && origin != null))) {
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.