org.gvsig.fmap.mapcontrol.dal.feature.swing.table
Class ConfigurationTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.gvsig.fmap.mapcontrol.dal.feature.swing.table.ConfigurationTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class ConfigurationTableModel
- extends AbstractTableModel
TableModel to configure a ConfigurableFeatureTableModel.
Allows to set Feature attributes as visible or not, and to set aliases for
the Feature attribute names.
- Author:
- Cèsar Ordiñana
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationTableModel
public ConfigurationTableModel(ConfigurableFeatureTableModel configurable)
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
setValueAt
public void setValueAt(Object value,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt in interface TableModel- Overrides:
setValueAt in class AbstractTableModel
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable in interface TableModel- Overrides:
isCellEditable in class AbstractTableModel
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass in interface TableModel- Overrides:
getColumnClass in class AbstractTableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
getVisibilityColumn
public static int getVisibilityColumn()
acceptChanges
public void acceptChanges()
- Make current changes in configuration (visible columns and aliases)
as definitive.
cancelChanges
public void cancelChanges()
- Cancel current changes in configuration (visible columns and aliases)
and return to previous status.
Copyright © 2004-2013 gvSIG. All Rights Reserved.