Examples of CommandEvent


Examples of com.samskivert.swing.event.CommandEvent

            return new ActionEvent(CommandButton.this,
                                   ActionEvent.ACTION_PERFORMED, actionCommand,
                                   proto.getWhen(), proto.getModifiers());
        } else {
            // if we found an arg somewhere, create a CommandEvent
            return new CommandEvent(CommandButton.this, actionCommand, arg,
                                    proto.getWhen(), proto.getModifiers());
        }
    }
View Full Code Here

Examples of com.samskivert.swing.event.CommandEvent

     */
    public static void postAction (
        Component source, String command, Object argument)
    {
        // slip things onto the event queue for later
        CommandEvent event = new CommandEvent(source, command, argument);
        EventQueue.invokeLater(new ActionInvoker(event));
    }
View Full Code Here

Examples of com.samskivert.swing.event.CommandEvent

     * @return true if the controller knew how to handle the action, false
     * otherwise.
     */
    public boolean handleAction (Component source, String command, Object arg)
    {
        return handleAction(new CommandEvent(source, command, arg));
    }
View Full Code Here

Examples of com.samskivert.swing.event.CommandEvent

            if (_activeItem.command != null) {
                Object itemArg = _activeItem.argument;
                Object arg = (itemArg == null) ? _argument : itemArg;

                // notify our listeners that the action is posted
                final CommandEvent evt = new CommandEvent(
                    _host.getComponent(), _activeItem.command, arg);
                _actlist.apply(new ObserverList.ObserverOp<ActionListener>() {
                    public boolean apply (ActionListener obs) {
                        obs.actionPerformed(evt);
                        return true;
View Full Code Here

Examples of com.sk89q.worldedit.event.platform.CommandEvent

        // code of WorldEdit expects it
        String[] split = new String[args.length + 1];
        System.arraycopy(args, 0, split, 1, args.length);
        split[0] = cmd.getName();

        CommandEvent event = new CommandEvent(wrapCommandSender(sender), Joiner.on(" ").join(split));
        getWorldEdit().getEventBus().post(event);

        return true;
    }
View Full Code Here

Examples of hamsam.protocol.aim.command.CommandEvent

            }

            synchronized (buffer) {

                if (cmd != null) {
                    buffer.add(new CommandEvent(cmd));
                    buffer.notify();
                }
            }
        }
    }
View Full Code Here

Examples of net.minecraftforge.event.CommandEvent

                return 0;
            }

            if (icommand.canCommandSenderUseCommand(sender))
            {
                CommandEvent event = new CommandEvent(icommand, sender, args);
                if (MinecraftForge.EVENT_BUS.post(event))
                {
                    if (event.exception != null)
                    {
                        throw event.exception;
View Full Code Here

Examples of org.beryl.gui.swing.CommandEvent

        TableRow selection[] = (TableRow[]) model.getValue("table.value");
        for (int i = 0; i < selection.length; i++) {
          new PersonEditor(selection[i]);
        }
      } else if (name.equals("consoleCommand")) {
        CommandEvent event = (CommandEvent) e.getSwingEvent();
        event.getSource().appendText(getString("test.console.command"));
        event.getSource().appendText(event.getCommand(), boldAttribute);
        event.getSource().appendText(getString("test.console.notfound")+"\n");
      } else if (name.equals("login")) {
        log.debug(
          "Login has been clicked. username ["
            + model.getValue("username")
            + "], password ["
View Full Code Here

Examples of org.openhab.core.drools.event.CommandEvent

  }

  public void receiveCommand(String itemName, Command command) {
    try {
      Item item = itemRegistry.getItem(itemName);
      eventQueue.add(new CommandEvent(item, command));
    } catch (ItemNotFoundException e) {}
  }
View Full Code Here

Examples of rabbit.data.store.model.CommandEvent

                                  DataStore.COMMAND_STORE);
  }

  @Override
  protected CommandEvent createEvent(DateTime dateTime) {
    return new CommandEvent(dateTime, createExecutionEvent("adnk2o385"));
  }
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.