Package org.springframework.richclient.application.config

Examples of org.springframework.richclient.application.config.ApplicationObjectConfigurer


    }
   
    private void registerCommandFaceDescriptor(String faceId, AbstractCommand command)
    {
        CommandFaceDescriptor face = new CommandFaceDescriptor();
        ApplicationObjectConfigurer configurer = (ApplicationObjectConfigurer)ApplicationServicesLocator.services().getService(ApplicationObjectConfigurer.class);
        configurer.configure(face, faceId);
        command.setFaceDescriptor(faceId, face);       
    }
View Full Code Here


      return;
    }

    //todo fix spring
    CommandConfigurer commandConfigurer = getService( CommandConfigurer.class );
    ApplicationObjectConfigurer configurer = getService( ApplicationObjectConfigurer.class );
    ButtonFactory bf = getToolBarButtonFactory();
    CommandsBarButtonConfigurer commandsBarButtonConfigurer = new CommandsBarButtonConfigurer();


    //Now create the button panel
    //    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 );

        buttonPanel.add( command.createButton( COMMANDS_FACE_ID, bf, commandsBarButtonConfigurer ) );
      }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.application.config.ApplicationObjectConfigurer

Copyright © 2018 www.massapicom. 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.