Element Table Representation

Sometimes it is necessary to display an array of elements in another way than with foldout elements. These two classes permit the creation of a table representation of your data. It has been inspired by java/SWT tables.

The following interfaces and classes are only proof of concepts. They lack a complete implementation of the different supportable datatypes.

The first class is actually an interface implementing a description of a table model.

The second class does the actual table drawing. The Pressed* delegates are not implemented as finally intended because the Remove button handling does not yet take the index parameter of the element to remove.

Here's an example of a table model implementation (not complete):

And the usage (C#):

There are still things missing such as selecting a single row to remove it (easily feasible via a selection button in the first column), but you get the idea...

The result will look like this: