Results 1 to 4 of 4

Thread: How to write complex View Class?

  1. #1
    Join Date
    May 2006
    Posts
    16

    Default How to write complex View Class?

    Hello all,I am newbie of spring rcp,I have a question:
    I have a complex view Class named MyView extends AbstractView,there are many part need write independence Class(Many Inner class will make MyView code very long and complex) such as MyPanel... ,how can I use methods of AbstractView in MyPanel,and How use Spring IOC to MyPanel?

    Thanks.
    Last edited by likebean; Feb 13th, 2009 at 10:57 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    As I understand it, your view is made up of different components, which are aware of the view they're in.
    If I had a use case like this, I'd design the parts of the view as widgets (see the Widget class in the trunk), and glue them together in another widget through Spring's IOC. This would reduce the coupling between the components and increase coherence and reusability of the individual parts.
    The view would then be a simple WidgetView that shows the widget.
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

  3. #3
    Join Date
    May 2006
    Posts
    16

    Default

    Thanks,But can not find Widget in Spring RCP 1.0 release.

  4. #4
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    Widget is a concept which will be included in the next release. If you want to check it out, check out the trunk in subversion and create a build for the 1.1.0-SNAPSHOT.
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

Posting Permissions

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