• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem about TableModel

 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two classes are included in my design : View and Model. View display all panels and components, Model deal with all option of Data object.
My problem is : where should the objects of the classes which deal with option of some components be putted(TableModel ... e.g.) , View or Model?
Who could give me any advise?
[ October 23, 2002: Message edited by: HiBob Chu ]
 
Thomas Fly
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this will help: Exceptions Handling
 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have saw your that post, but it doesn't solve
my problem ,
My question focus on the relative between View and
Model instead of between remote and local.
My ideal is put the TableModel and other such model objects into View Class enven though their
name is as *Model, because that I think Model should do the data generating work, and the data
can be display in many forms which provided by many different Views, the TableMode and other
such classes are closer to View class, so they
should be putted into View.
Am I right? Any comment will be wellcome!
 
ilwyvd illtvd
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I designed the table for remote and local both,
the model used by remote or local depends on your
data,you can get your data from local or remote
from your dataaccesor class
 
Jim Bedenbaugh
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HiBob,
In using the MVC pattern, my Model held the data, but changes requested by the View were captured by the Controller and passed to the Model.
Sun seemed to like my implementation just fine.
 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jim:
I think your way is better than any other I can image. But there is still a little uncomfortable: the classes' name include "Model"(TableModel e.g.),does it mean that they are a kind of Model ? :roll:
OK, I couldn't take out better one than yours.
Thanks above everyone a lot !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic