Results 1 to 2 of 2

Thread: Spring RCP Updating Table Content

  1. #1
    Join Date
    Mar 2012
    Posts
    2

    Default Spring RCP Updating Table Content

    Hello all

    I am very new to Spring RCP and created a view with a table like this tutorial.

    Now i want to update the content thought replacing the datastore i registered in the bean definition.

    PHP Code:
        <bean id="MarketView" class="org.springframework.richclient.application.support.DefaultViewDescriptor">    
            <
    property name="viewClass" value="simple.MainView" />
            <
    property name="viewProperties">
                <
    map>
                    <
    entry key="marketDataStore" value-ref="marketDataStore" />
                </
    map>
            </
    property>
        </
    bean>

        <
    bean id="marketDataStore" class="domain.MarketDataStore" /> 
    How can i access the datastore defined in bean definition ?

    thanks and greetings
    hetzge

  2. #2

    Default

    Something like this?

    mainView.setMarketDataStore(new MarketDataStore());

    And to access the data store:

    mainView.getMarketDataStore();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •