• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Fire Property Changes to keep views in sync of model

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi -

my model classes are getting generated using jaxb.
so the situation is like -

class A {
List<B> fields = new ArrayList<B>();
...
}

class B {
List<C> fields = new ArrayList<C>();
...
}

and so on for Class C, D, E, etc.
The UI displays this data in JFace viewers like TableViewer, ComboViewer.

UI has the ability to allow add/remove/modify the data.

What is the best way to keep the UI and model in sync if I don't want to add code to the classes generated by jaxb.

thanks!
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you try explaining that again? I cannot figure out what you mean.
 
Saloon Keeper
Posts: 15524
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your can probably do this by adding custom listeners to your UI classes that update your generated models. I don't think you can generate classes that implement specific interfaces.
 
reply
    Bookmark Topic Watch Topic
  • New Topic