Examples of ICommand


Examples of org.puremvc.java.multicore.interfaces.ICommand

   *            an <code>INotification</code>
   */
  public void executeCommand(INotification note) {
    //No reflexion in GWT
    //ICommand commandInstance = (ICommand) commandClassRef.newInstance();
    ICommand commandInstance = (ICommand) this.commandMap.get(note.getName());
    if(commandInstance!=null){
      commandInstance.initializeNotifier(multitonKey);
      commandInstance.execute(note);
    }
  }
View Full Code Here

Examples of org.salamanca.commands.ICommand

                "Intruduzca el nombre del nuevo usuario");
        if (name != null && name.length() > 0) {
            User user = new User();
            user.setName(name);
            user.setRole(getRole());
            ICommand insertar = CommandFactory.createInsertarUsuario(user);
            try {
                insertar.execute();
            } catch (MessageException ex) {
                JOptionPane.showMessageDialog(this, ex.getMessage());
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this, "Entrada no valida");
            }
View Full Code Here

Examples of org.serviceconnector.cmd.ICommand

  /**
   * Instantiates a new service connector command factory.
   */
  public ServiceConnectorCommandFactory() {
    ICommand attachCommand = new AttachCommand();
    this.addCommand(attachCommand.getKey(), attachCommand);
    ICommand detachCommand = new DetachCommand();
    this.addCommand(detachCommand.getKey(), detachCommand);
    ICommand inspectCommand = new InspectCommand();
    this.addCommand(inspectCommand.getKey(), inspectCommand);
    ICommand manageCommand = new ManageCommand();
    this.addCommand(manageCommand.getKey(), manageCommand);
    ICommand clnCreateSessionCommand = new ClnCreateSessionCommand();
    this.addCommand(clnCreateSessionCommand.getKey(), clnCreateSessionCommand);
    ICommand clnDeleteSessionCommand = new ClnDeleteSessionCommand();
    this.addCommand(clnDeleteSessionCommand.getKey(), clnDeleteSessionCommand);
    ICommand cscCreateSessionCommand = new CscCreateSessionCommand();
    this.addCommand(cscCreateSessionCommand.getKey(), cscCreateSessionCommand);
    ICommand cscDeleteSessionCommand = new CscDeleteSessionCommand();
    this.addCommand(cscDeleteSessionCommand.getKey(), cscDeleteSessionCommand);
    ICommand registerServerCommand = new RegisterServerCommand();
    this.addCommand(registerServerCommand.getKey(), registerServerCommand);
    ICommand checkRegistrationCommand = new CheckRegistrationCommand();
    this.addCommand(checkRegistrationCommand.getKey(), checkRegistrationCommand);
    ICommand deRegisterServerCommand = new DeRegisterServerCommand();
    this.addCommand(deRegisterServerCommand.getKey(), deRegisterServerCommand);
    ICommand clnEchoCommand = new EchoCommand();
    this.addCommand(clnEchoCommand.getKey(), clnEchoCommand);
    ICommand clnExecuteCommand = new ClnExecuteCommand();
    this.addCommand(clnExecuteCommand.getKey(), clnExecuteCommand);
    ICommand cscExecuteCommand = new CscExecuteCommand();
    this.addCommand(cscExecuteCommand.getKey(), cscExecuteCommand);
    // publish subscribe commands
    ICommand clnSubscribeCommand = new ClnSubscribeCommand();
    this.addCommand(clnSubscribeCommand.getKey(), clnSubscribeCommand);
    ICommand clnUnsubscribeCommand = new ClnUnsubscribeCommand();
    this.addCommand(clnUnsubscribeCommand.getKey(), clnUnsubscribeCommand);
    ICommand clnChangeSubscriptionCommand = new ClnChangeSubscriptionCommand();
    this.addCommand(clnChangeSubscriptionCommand.getKey(), clnChangeSubscriptionCommand);
    ICommand cscSubscribeCommand = new CscSubscribeCommand();
    this.addCommand(cscSubscribeCommand.getKey(), cscSubscribeCommand);
    ICommand cscUnsubscribeCommand = new CscUnsubscribeCommand();
    this.addCommand(cscUnsubscribeCommand.getKey(), cscUnsubscribeCommand);
    ICommand cscChangeSubscriptionCommand = new CscChangeSubscriptionCommand();
    this.addCommand(cscChangeSubscriptionCommand.getKey(), cscChangeSubscriptionCommand);
    ICommand cscAbortSubscriptionCommand = new CscAbortSubscriptionCommand();
    this.addCommand(cscAbortSubscriptionCommand.getKey(), cscAbortSubscriptionCommand);
    ICommand receivePublicationCommand = new ReceivePublicationCommand();
    this.addCommand(receivePublicationCommand.getKey(), receivePublicationCommand);
    ICommand publishCommand = new PublishCommand();
    this.addCommand(publishCommand.getKey(), publishCommand);
    // file commands
    ICommand fileUploadCommand = new FileUploadCommand();
    this.addCommand(fileUploadCommand.getKey(), fileUploadCommand);
    ICommand fileDownloadCommand = new FileDownloadCommand();
    this.addCommand(fileDownloadCommand.getKey(), fileDownloadCommand);
    ICommand fileListCommand = new FileListCommand();
    this.addCommand(fileListCommand.getKey(), fileListCommand);
  }
View Full Code Here

Examples of palmed.ui.ICommand

        final CopyPasteManager copyPaste = new CopyPasteManager( textBox_ );
        final Toolbar toolbar = new Toolbar( this, textBox_ );
        toolbar.add( exit_, "/icons/system-log-out.png" );
        toolbar.add( new NewCommand( manager ), "/icons/document-new.png" );
        toolbar.add( new OpenCommand( display_, fileBrowser, openListener ), "/icons/document-open.png" );
        final ICommand saveAsCommand = new SaveAsCommand( display_, fileBrowser, overwriteListener );
        toolbar.add( new SaveCommand( manager, saveAsCommand ), "/icons/document-save-as.png" );
        toolbar.add( saveAsCommand, "/icons/document-save.png" );
        toolbar.add( new CloseCommand( display_, manager, result ), "/icons/process-stop.png" );
        toolbar.add( new PreviousCommand( manager ), "/icons/go-previous.png" );
        toolbar.add( new NextCommand( manager ), "/icons/go-next.png" );
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.