From: Norbert H. <rue...@se...> - 2001-08-07 08:26:30
|
Hi, at the moment I try to do a little topic map editing tool. I asked myself what would be the best way to handle the topic map data for a gui. My first thought was to use the topic map directly as a model for the components. But there arise several problems: - except the ScopedObject I need a own model for every topic map object - a gui editing panel should have a submit/cancel action. while every factory method which creats topic map objects (e.g. createTopic()) is inserting the Objects immediately into the topic map it's really hard to cancel creation of a new topic map object. - textfields don't have explicit models. So it's hard to display topic map objects. (ok, this could be done using my own textfield) The alternative I'm trying at the moment is to read data from topic map objects into Collections which the gui is using/modifying. But thats a way the application faces itself with tons of nested loops in order to get the data out of a topic map object and afterwards back in again. Any suggestions? I know the topic map is supposed to be used as a data model. This is pointed out in the docu. But don't know how. thanks in advance, NoB |