Page 1 of 1

TreeTable

PostPosted: Tue Nov 20, 2018 12:27 pm
by lucdep
Hi,

Could VisionX also show TreeTables instead of only Trees?
How could I link such a Tree component to an ltree field in PostgreSQL?

Luc

Re: TreeTable

PostPosted: Tue Nov 20, 2018 1:13 pm
by Support@SIB
TreeTable isn't a supported component of JVx, the framework behind VisionX. Sure, you can use a Swing TreeTable implementation or any other Swing components available in the net. The same for vaadin components/AddOns.

In this case, you have to use custom components as described here: User defined Components or Wrapping custom components.

But if you use custom components, you have to write Java Code. VisionX supports custom components but you can't change any properties.

It depends what you plan, but if you want custom components for different technologies, you should create your own factory and define the component as interfaces. Best, start reading our JVx reference series.

Short story: VisionX doesn't have a TreeTable integration.

How to bind ltree?

If the used TreeTable supports this datatype, it will be an easy task, but this datatype is a Postgres only datatype/module and not database independent. It's always possible to fill a tree manually, but what should happen if you change a value...

With VisionX and JVx, we keep away all this sync problems from the developer.