Package org.springframework.richclient.application.config

Examples of org.springframework.richclient.application.config.ApplicationObjectConfigurer.configure()


   
    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);       
    }
   
    /**
     * Tests if a command subclass can use an additional condition when enable is enabled or not
View Full Code Here


      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
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.