Package org.springframework.richclient.command.config

Examples of org.springframework.richclient.command.config.CommandConfigurer.configure()


      }

    };
    CommandConfigurer commandConfigurer = (CommandConfigurer) ApplicationServicesLocator.services().getService(
        CommandConfigurer.class);
    commandConfigurer.configure(addCommand);
    return addCommand;
  }

  /**
   * Returns an actionCommand removing a column.
View Full Code Here


      }

    };
    CommandConfigurer commandConfigurer = (CommandConfigurer) ApplicationServicesLocator.services().getService(
        CommandConfigurer.class);
    commandConfigurer.configure(removeCommand);
    return removeCommand;
  }

  @Override
  protected boolean onFinish() {
View Full Code Here

       
        //no configurer has been set, confirming that this doesn't throw an exception
        factoryBean.configureIfNecessary(command);
       
        CommandConfigurer configurer = (CommandConfigurer) EasyMock.createMock(CommandConfigurer.class);
        EasyMock.expect(configurer.configure(command)).andReturn(command);
       
        EasyMock.replay(configurer);
       
        factoryBean.setCommandConfigurer(configurer);
        factoryBean.configureIfNecessary(command);       
View Full Code Here

        control.add(renderer);

        // configure commands
        CommandConfigurer configurer = (CommandConfigurer) ApplicationServicesLocator.services().getService(
                CommandConfigurer.class);
        configurer.configure(selectCommand);
        configurer.configure(clearCommand);

        JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 0));

        buttonPanel.add(selectCommand.createButton());
View Full Code Here

        // configure commands
        CommandConfigurer configurer = (CommandConfigurer) ApplicationServicesLocator.services().getService(
                CommandConfigurer.class);
        configurer.configure(selectCommand);
        configurer.configure(clearCommand);

        JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 0));

        buttonPanel.add(selectCommand.createButton());
        if (nullable) {
View Full Code Here

    textField.setEditable( false );
    control.add( textField );

    // configure commands
    CommandConfigurer configurer = ( CommandConfigurer ) ApplicationServicesLocator.services().getService( CommandConfigurer.class );
    configurer.configure( openDialogCommand );
    configurer.configure( clearCommand );

    JPanel buttonPanel = new JPanel( new FlowLayout( FlowLayout.LEADING, 0, 0 ) );

    buttonPanel.add( openDialogCommand.createButton() );
View Full Code Here

    control.add( textField );

    // configure commands
    CommandConfigurer configurer = ( CommandConfigurer ) ApplicationServicesLocator.services().getService( CommandConfigurer.class );
    configurer.configure( openDialogCommand );
    configurer.configure( clearCommand );

    JPanel buttonPanel = new JPanel( new FlowLayout( FlowLayout.LEADING, 0, 0 ) );

    buttonPanel.add( openDialogCommand.createButton() );
    if ( nullable ) {
View Full Code Here

    //    JPanel buttonPanel = getComponentFactory().createPanel( new VerticalLayout( UIConstants.ONE_SPACE ) );
    JPanel buttonPanel = getComponentFactory().createPanel( new VerticalLayout() );
    for ( Iterator<Collection<? extends ActionCommand>> it = commands.iterator(); it.hasNext(); ) {
      Collection<? extends ActionCommand> commandsCollection = it.next();
      for ( ActionCommand command : commandsCollection ) {
        commandConfigurer.configure( command );

        CommandFaceDescriptor face = new CommandFaceDescriptor();
        configurer.configure( face, command.getId() + '.' + COMMANDS_FACE_ID );
        command.setFaceDescriptor( COMMANDS_FACE_ID, face );
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.