Examples of CommandListener


Examples of fi.jumi.core.ipc.api.CommandListener

    public void launcher_tells_daemon_to_runTests_and_daemon_replies() throws Exception {
        SuiteConfiguration expectedSuiteConfiguration = new SuiteConfigurationBuilder()
                .addJvmOptions("-some-options")
                .freeze();

        executor.execute(new CommandsDirectoryObserver(daemonDir, executor, actorThread, new CommandListener() {
            @Override
            public void runTests(SuiteConfiguration suiteConfiguration, ActorRef<SuiteListener> suiteListener) {
                // this happens on daemon side
                assertThat(suiteConfiguration, is(expectedSuiteConfiguration));
                suiteListener.tell().onSuiteStarted();
View Full Code Here

Examples of javax.microedition.lcdui.CommandListener

                ResourceConstants.SR_SUSPEND_ALERT_MSG, null);

            AlertTimer.start();


            CommandListener ignoring = new CommandListener() {
                public void commandAction(Command c, Displayable d) {}
            };

            suspendAlert = new SystemAlert(getDisp(token), title,
                message, null, AlertType.WARNING);
View Full Code Here

Examples of javax.microedition.lcdui.CommandListener

        choice.append(Resources.get(Resources.SINGLE_ENTRY), null);
    }

    protected void setData(String option) {
        if (parentScreen instanceof CommandListener) {
            CommandListener commandListener = (CommandListener)parentScreen;
            String title = getTitle();
            if (option.equals(Resources.get(Resources.ALL_RECURRENCES))) {
                if (title.equals(Resources.get(Resources.EDIT_RECURRENCE))) {
                    commandListener.commandAction(Commands.getEditAllCommand(), this);
                }
                else if (title.equals(Resources.get(Resources.DELETE_RECURRENCE))) {
                    commandListener.commandAction(Commands.getDeleteAllCommand(), this);
                }
            }
            else if (option.equals(Resources.get(Resources.SINGLE_ENTRY))) {
                if (title.equals(Resources.get(Resources.EDIT_RECURRENCE))) {
                    commandListener.commandAction(Commands.getEditSingleCommand(), this);
                }
                else if (title.equals(Resources.get(Resources.DELETE_RECURRENCE))) {
                    commandListener.commandAction(Commands.getDeleteSingleCommand(), this);
                }
            }
        }
    }
View Full Code Here

Examples of javax.microedition.lcdui.CommandListener

                                                                            getCallWithChoice(),
                                                                            getPauseCharTextField(),
                                                                            getGVNumberTextField() });
            changeSettingsMenu.addCommand(getSaveSettingsCmd());
            changeSettingsMenu.addCommand(getBackCmd());
            changeSettingsMenu.setCommandListener(new CommandListener() {

                public void commandAction(Command command, Displayable displayable) {
                    if(command == saveSettingsCmd)
                    {
                        try {
View Full Code Here

Examples of javax.microedition.lcdui.CommandListener

    public static Form getChangeSettingsMenu() {
        if (changeSettingsMenu == null) {
            changeSettingsMenu = new Form("Change Settings", new Item[] { getUsernameTextField(), getPasswordTextField(), getCallFromTextField(), getIntervalTextField() });//GEN-BEGIN:|233-getter|1|233-postInit
            changeSettingsMenu.addCommand(getSaveSettingsCmd());
            changeSettingsMenu.addCommand(getBackCmd());
            changeSettingsMenu.setCommandListener(new CommandListener() {

                public void commandAction(Command command, Displayable displayable) {
                    if(command == saveSettingsCmd)
                    {
                        try {
View Full Code Here

Examples of javax.microedition.lcdui.CommandListener

   
   
    // private stuff
   
    private void doDismiss() {
        CommandListener commandListener = getCommandListener();
        if (commandListener == null) {
            switchToNextDisplayable(); // @deprecated - works only if
                                       // appropriate setters were called and no command listener
                                       // was assigned to this component
        } else {
            commandListener.commandAction(DISMISS_COMMAND,this);
        }
    }
View Full Code Here

Examples of javax.microedition.lcdui.CommandListener

    }
   
    // private stuff   
    // private stuff
    private void doAction() {
        CommandListener cl = getCommandListener();
        if (cl != null) {
            if ((task != null) && task.hasFailed()) {
                cl.commandAction(FAILURE_COMMAND,this);
            } else {
                // task didn't failed - success !!!
                cl.commandAction(SUCCESS_COMMAND,this);
            }
        } else {
            // old behavior - now deprecated
            if ((task != null) && task.hasFailed() && (failureDisplayble != null))  {
                switchToDisplayable(getDisplay(), failureAlert, failureDisplayble);
View Full Code Here

Examples of ketUI.CommandListener

        // TODO: Only return the string if command responder worked as expected.
        return string;
        */
        //- Ket.out.println(" --- TEST: Normal command --- ");
        //- document.getKeyboardEventHandler().normal(string);
        CommandListener cl = document.getCommandListener();
        if (cl!=null) {
          cl.ketCommand(string);
        } else {
          Ket.out.println("[no command listener: '"+string+"']");
        }
        return string;

View Full Code Here

Examples of net.fortytwo.twitlogic.services.twitter.CommandListener

                // Create an agent to listen for commands.
                // Also take the opportunity to memoize users we're following.
                TwitLogicAgent agent = new TwitLogicAgent(client);
                Handler<Tweet> statusHandler
                        = userRegistry.createUserRegistryFilter(
                        new CommandListener(agent, baseStatusHandler));

                Set<User> users = new HashSet<User>();
                Set<String> terms = new HashSet<String>();
                terms.add("earthquake");
                client.processFilterStream(users, terms, null, statusHandler, d, 0);
View Full Code Here

Examples of org.beryl.gui.swing.CommandListener

    super.setProperty(name, value);
  }

  public void addListener(String event, final String name, final GUIEventListener listener) throws GUIException {
    if ("command".equals(event)) {
      console.addCommandListener(new CommandListener() {
        public void onCommand(CommandEvent e) {
          listener.eventOccured(new GUIEvent(Console.this, name, e));
        }
      });
    } else {
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.