• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to manage interface objects that have multiple dependencies on each other  RSS feed

 
Jon Swanson
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone suggest where to look to address this sort of problem. I have an interface built from six objects,

table1 | graph 1
-----------------------------------
table 2 | table 3
-----------------------------------
graph 2 | graph 3

what's been requested is the following sort of workflow-

a spinner is changed which is a part off the graph 2 panel

as a result, the data in table 2, plus the new value of the spinner is used to rebuild graph 1 and graph 3

the data used to rebuild graph 3 is used along with the the data in table 2 to rebuild graph 3

The direction I am trying to work in is to have a control program that oversees the operations, especially since some of the operations are order dependent, i.e., a cell in table 1 changes, which requires changes other cells in table 1 and then the data from table 1 is used to rebuild the data in table 2 which is used along with the data in graph1 and graph 2 to rebuild graph 2.

FYI I am not able to change the specifications.

I'm unclear on how to allow this controller program to access elements from all the other classes, know when things I need to worry about change and how to tell the other classes, OK, I am done mucking about, I need you all to update with the data as it now stands. I was hoping to keep the table data in the table, since the user can add and delete rows. Though it doesn't seem very OO to have some other program updating this data. I assume I need to have my controller be a table listener, but other than hand it reference to the tablel object, I'm not sure how to get it to get/update the values.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!