[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Customizing table view
|
The TableView is constructed from the FeatureTableControl class
mainly. You may be able to use that class. If you have the time
perhaps you can provide a patch that allows the column names be
controlled by a strategy instead of directly coming from the feature's
attribute names. This should be a very simple patch to the
FeatureTableControl class. If you want to be fancy you have the
strategy be introduced through an extension point and set through a
preference.
The simplest fix would be to:
Add a set Column Name provider method on FeatureTableControll and add
a getTable method to the TableView.
Thinking on that... Is there no way that you can change the
FeatureType of the data being displayed? That may or may not be easier.
Jesse
On 26-Aug-08, at 2:32 PM, Janne Nivala wrote:
Hi all,
I'd like to customize the table view in uDig (trunk). I'd like to:
- set custom captions (=labels/headers) for table columns rather
than using what WFS provides. Just overriding captions in
net.refractions.udig.ui.FeatureTableControl.createAttributeColumns()
does not work as captions seem to be used for referencing data source.
- set custom tooltips if setting captions isn't feasible
- disable showing some of the columns (people wouldn't want to see
all WFS attributes). Setting width to 0 is enough, too.
What would be the most feasible way to accomplish this? It would be
best to extend existing code/effort as much as possible rather than
duplicating it.
Janne
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel