public class SimpleAttributeTableModel extends Object implements TableModel
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
attributeAlias |
protected String[] |
attributeNames |
protected List<FeatureServiceFeature> |
featureList |
protected Map<String,FeatureServiceAttribute> |
featureServiceAttributes |
protected List<TableModelListener> |
listener |
protected List<String> |
orderedFeatureServiceAttributes |
protected List<FeatureServiceFeature> |
removedFeatures |
protected AttributeTableRuleSet |
tableRuleSet |
| Constructor and Description |
|---|
SimpleAttributeTableModel(List<String> orderedFeatureServiceAttributes,
Map<String,FeatureServiceAttribute> featureServiceAttributes,
List<FeatureServiceFeature> propertyContainer,
AttributeTableRuleSet tableRuleSet)
Creates a new CustomTableModel object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(FeatureServiceFeature feature)
The feature must be of the same type as the other features in the model.
|
void |
addFeatures(List<FeatureServiceFeature> features)
The feature must be of the same type as the other features in the model.
|
void |
addRemovedFeature(FeatureServiceFeature feature)
DOCUMENT ME!
|
void |
addTableModelListener(TableModelListener l) |
void |
clearRemovedFeatures()
DOCUMENT ME!
|
protected void |
fireContentsChanged()
DOCUMENT ME!
|
protected void |
fireContentsChanged(TableModelEvent e)
DOCUMENT ME!
|
protected void |
fireTableStructureChanged(TableModelEvent e)
DOCUMENT ME!
|
String |
getColumnAttributeName(int columnIndex)
Returns the attribute name of the given column.
|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount()
DOCUMENT ME!
|
String |
getColumnName(int columnIndex) |
String |
getColumnNameByAttributeName(String name)
DOCUMENT ME!
|
FeatureServiceFeature |
getFeatureServiceFeature(int row)
DOCUMENT ME!
|
FeatureServiceFeature |
getFeatureServiceFeatureById(int id)
DOCUMENT ME!
|
List<FeatureServiceFeature> |
getFeatureServiceFeatures()
Returns all features of this model.
|
com.vividsolutions.jts.geom.Geometry |
getGeometryFromRow(int row)
DOCUMENT ME!
|
List<FeatureServiceFeature> |
getRemovedFeature()
DOCUMENT ME!
|
int |
getRowByFeature(FeatureServiceFeature feature)
DOCUMENT ME!
|
int |
getRowCount()
DOCUMENT ME!
|
Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
hideColumn(int col)
Hides the given column.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isNumeric(int col)
Checks, if the given column has a numeric type.
|
void |
moveRowUp(FeatureServiceFeature[] propToMove)
DOCUMENT ME!
|
void |
moveRowUp(int index)
DOCUMENT ME!
|
void |
moveRowUp(int index,
boolean fireEvent)
DOCUMENT ME!
|
void |
removeFeatureServiceFeature(FeatureServiceFeature feature)
Removes the given feature from the model.
|
void |
removeTableModelListener(TableModelListener l) |
void |
setColumnName(int col,
String name)
Set the name of the given column.
|
void |
setNewFeatureList(List<FeatureServiceFeature> propertyContainer)
DOCUMENT ME!
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
void |
showColumns()
Shows all column.
|
protected String[] attributeAlias
protected String[] attributeNames
protected Map<String,FeatureServiceAttribute> featureServiceAttributes
protected List<FeatureServiceFeature> featureList
protected List<TableModelListener> listener
protected AttributeTableRuleSet tableRuleSet
protected List<FeatureServiceFeature> removedFeatures
public SimpleAttributeTableModel(List<String> orderedFeatureServiceAttributes, Map<String,FeatureServiceAttribute> featureServiceAttributes, List<FeatureServiceFeature> propertyContainer, AttributeTableRuleSet tableRuleSet)
orderedFeatureServiceAttributes - DOCUMENT ME!featureServiceAttributes - DOCUMENT ME!propertyContainer - DOCUMENT ME!tableRuleSet - DOCUMENT ME!public void addFeature(FeatureServiceFeature feature)
feature - DOCUMENT ME!public void addFeatures(List<FeatureServiceFeature> features)
features - DOCUMENT ME!public void setNewFeatureList(List<FeatureServiceFeature> propertyContainer)
propertyContainer - DOCUMENT ME!public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic void moveRowUp(int index)
index - DOCUMENT ME!public void moveRowUp(FeatureServiceFeature[] propToMove)
propToMove - index DOCUMENT ME!public void moveRowUp(int index,
boolean fireEvent)
index - DOCUMENT ME!fireEvent - DOCUMENT ME!public com.vividsolutions.jts.geom.Geometry getGeometryFromRow(int row)
row - DOCUMENT ME!public boolean isNumeric(int col)
col - the column to checkpublic FeatureServiceFeature getFeatureServiceFeature(int row)
row - DOCUMENT ME!public FeatureServiceFeature getFeatureServiceFeatureById(int id)
id - row DOCUMENT ME!public int getRowByFeature(FeatureServiceFeature feature)
feature - DOCUMENT ME!public void removeFeatureServiceFeature(FeatureServiceFeature feature)
feature - the feature to removepublic List<FeatureServiceFeature> getFeatureServiceFeatures()
public String getColumnName(int columnIndex)
getColumnName in interface TableModelpublic String getColumnNameByAttributeName(String name)
name - DOCUMENT ME!public String getColumnAttributeName(int columnIndex)
columnIndex - the attribute name of this column will be returnedpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelpublic Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelpublic void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModelpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModelpublic void hideColumn(int col)
col - the column to hidepublic void showColumns()
public void setColumnName(int col,
String name)
col - the column numbername - the new name to setpublic void addRemovedFeature(FeatureServiceFeature feature)
feature - DOCUMENT ME!public List<FeatureServiceFeature> getRemovedFeature()
public void clearRemovedFeatures()
protected void fireContentsChanged()
protected void fireContentsChanged(TableModelEvent e)
e - DOCUMENT ME!protected void fireTableStructureChanged(TableModelEvent e)
e - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.