Hi,
OK, seems you already explored the code.
I feel like what you want to achieve is a bit different from
a AttributeTablePanel which is a component containing a
table (JTable) not ComboBoxes.
AttributeTablePanel is quite complex. It contains a special table
(with a geometry column), it is also synchronized with the layer
(see layerListener in LayerTableModel), it is editable, ...
If your plugin must have many of the AttributeTablePanel features,
it is a good idea to start from there.
Or maybe you just want to take the panel (with layer title and colored
column on the left, and replace the JTable by your combo boxes).
Most plugins opening a new frame use JInternalFrame. The one
containing OneLayerAttributeTab is built directly in the
ViewAttributePlugIn.
Your plugin could create a JInternalFrame containing a JPanel looking
like AttributeTablePanel but probably simpler. This panel will contain
your combo boxes, and as it will also have a reference to the layer,
you will be able to fill your combo boxes with the layer data.
(you'll find many plugins showing how to iterate over a FeatureCollection
to gather attributes...)
Michaël
But you may find it confortable to start from here to see how to get
features from a Layer
hello Micha,
what i want is to add a plugin that adds via a popupmenu a frame
containing
AttributeTablePanel in a OneLayerAttributeTab.
this AttributeTAblePanel will contain 3 comboBox each one will be
populated by records of a specific column of the selected layer.
and im thinking on adapting the code of the class LAyerTableModel.java
especially the method : initColumns(layer) where i can define 3
combobox and get the features i need.
am not sure if am on the right way.
Plz guide me.
thanks.
--
*Asma OUQALLI*
Élève ingénieur : 3ème Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
Ecole Hassania des Travaux Publics.
Mobile : +212 672 48 23 15.
Email : asma.ouqa...@gmail.com <mailto:asma.ouqa...@gmail.com>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel