gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] gmEditArea


From: sjtan
Subject: [Gnumed-devel] gmEditArea
Date: 23 May 2003 10:35:30 +1000

 well, I did like the simple old script better: it was so much easier to
automatically parse and create handler skeletons for.

I suppose you could do it the Delphi way, i.e. have a data aware text ,
combo box, check box, which connects to a field in the table. 
And manually go through the gmEditArea and change the instantiations of
the components. To save time for future changes, why not have a globally
accessible wxComponent Factory object(s) on the guiBroker , and use it's
create(TextCtrl, ComboBox, CheckBox)  method to instantiate the gui
components, then if you'd prefer to put in  object domain model aware
components instead of 2-tier data-aware components, it would be easy
just to substitute the factory(ies) in the guiBroker at config time.


Another way is to design your own java style Model View components,
where the model is a defined (empty) interface that allows different
implementations , and the textComponent has an interface which can be
called by the model. Then put the model implementation instantiations
as entries into the "Model" broker at config time. 

Fowler suggested a more coarse grained approach to Model View , where 
each editArea implementation subclasses a particular interface, and
there is a corresponding model interface which is like a domain facade
for that particular use case. (it's in his web book UML for Programmers,
where he belittles UML and promotes refactoring : ah , the politics of
programming  ;)   ) .



 



 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]