[Schmitzm-commits] r49 - trunk/src/schmitzm/geotools/gui
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Apr 17 14:50:03 CEST 2009
Author: mojays
Date: 2009-04-17 14:50:03 +0200 (Fri, 17 Apr 2009)
New Revision: 49
Modified:
trunk/src/schmitzm/geotools/gui/FeatureTablePane.java
Log:
FeatureTablePane:
- new constructor with TableModel
Modified: trunk/src/schmitzm/geotools/gui/FeatureTablePane.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/FeatureTablePane.java 2009-04-17 12:49:33 UTC (rev 48)
+++ trunk/src/schmitzm/geotools/gui/FeatureTablePane.java 2009-04-17 12:50:03 UTC (rev 49)
@@ -117,8 +117,20 @@
* oder nicht ({@code false})
*/
public FeatureTablePane(FeatureCollection fc, Style style, boolean geomPreview) {
+ this(null,fc,style,geomPreview);
+ }
+
+ /**
+ * Erzeugt einen neue Komponente.
+ * @param fc angezeigte Features
+ * @param style Style, in dem die Features in der Karte dargestellt werden
+ * @param geomPreview bestimmt, ob ein Preview-Bereich angezeigt wird ({@code true})
+ * oder nicht ({@code false})
+ */
+ public FeatureTablePane(FeatureCollectionTableModel model, FeatureCollection fc, Style style, boolean geomPreview) {
super();
this.featureStyle = style;
+ this.featuresTableModel = (model != null) ? model : new FeatureCollectionTableModel();
initGUI( geomPreview );
@@ -176,8 +188,7 @@
}
// Tabelle fuer FeatureCollection
- featuresTableModel = new FeatureCollectionTableModel();
- featuresTable = new JTable(featuresTableModel);
+ featuresTable = new JTable(featuresTableModel);
featuresTable.setAutoResizeMode( JTable.AUTO_RESIZE_OFF );
featuresTable.setColumnSelectionAllowed(false);
featuresTable.setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION );
More information about the Schmitzm-commits
mailing list