Sunday, September 27, 2020

Hierarchical data with Editor

Hi,
My use case is to edit an hierachical list of node and group of nodes.
Starting from a root group, user can create/delete groups and create/delete/edit nodes inside group.
The Node have dynamic types. Type and the corresponding data is choosen at creation time.

Node is a leaf in the hierachy. Only 1 node can be edited at a time, all others are just displayed.


The model is :

// abstract for Node and Group of Node
class Abstractbean
{
String id;
String name;
}

class Node extends Abstractbean {
enum typeNode
NodeData data
}
class Group extends Abstractbean
{
List<Abstractbean> listNodes;
//examples of type of data
class NodeDataType1 implements NodeData
{
String model;
..
}
class NodeDataType2 implements NodeData
{
Date model;
..
}




Do you think that Editor framework is a good choice for such an use case ?
Thanks in advance for any hints

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/d39da4f2-0775-4cb9-a143-cfb67f78064en%40googlegroups.com.

No comments:

Post a Comment