Announcement Announcement Module
Collapse
No announcement yet.
How to write complex View Class? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 11:57 AM.

  • #2
    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.

    Comment


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

      Comment


      • #4
        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.

        Comment

        Working...
        X