public class DefaultFeatureTableModel extends AbstractTableModel implements FeatureTableModel, ComplexObserver
listenerList
CHANGE_SELECTION
Constructor and Description |
---|
DefaultFeatureTableModel(FeaturePagingHelper featurePager) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
public DefaultFeatureTableModel(FeaturePagingHelper featurePager)
public FeaturePagingHelper getFeaturePager()
getFeaturePager
in interface FeatureTableModel
public FeatureQuery getFeatureQuery()
getFeatureQuery
in interface FeatureTableModel
public FeatureType getFeatureType()
getFeatureType
in interface FeatureTableModel
public FeatureStore getFeatureStore()
getFeatureStore
in interface FeatureTableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public int getOriginalColumnCount()
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public FeatureAttributeDescriptor getColumnDescriptor(int columnIndex)
getColumnDescriptor
in interface FeatureTableModel
protected FeatureAttributeDescriptor getInternalColumnDescriptor(int columnIndex)
public String getOriginalColumnName(int column)
getOriginalColumnName
in interface FeatureTableModel
public void setColumnVisible(String name, boolean visible)
setColumnVisible
in interface FeatureTableModel
public void setFeatureType(FeatureType featureType)
protected String[] getHiddenColumnNames()
public void setAllVisible()
setAllVisible
in interface FeatureTableModel
public void setColumnOrder(String name, boolean ascending) throws BaseException
setColumnOrder
in interface FeatureTableModel
BaseException
public int getRowCount()
getRowCount
in interface TableModel
public boolean isColumnVisible(String name)
isColumnVisible
in interface FeatureTableModel
public String getColumnAlias(String name)
getColumnAlias
in interface FeatureTableModel
public void setColumnAlias(String name, String alias)
setColumnAlias
in interface FeatureTableModel
public int getOriginalColumnIndex(int columnIndex)
getOriginalColumnIndex
in interface FeatureTableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public Feature getFeatureAt(int rowIndex)
getFeatureAt
in interface FeatureTableModel
protected EditableFeature setFeatureValue(Feature feature, int columnIndex, Object value)
public void acceptChanges()
public void cancelChanges()
public String getColumnFormattingPattern(int column)
getColumnFormattingPattern
in interface FeatureTableModel
public String getColumnFormattingPattern(String columnName)
getColumnFormattingPattern
in interface FeatureTableModel
public void setColumnFormattingPattern(String columnName, String pattern)
setColumnFormattingPattern
in interface FeatureTableModel
public Locale getLocaleOfData()
getLocaleOfData
in interface FeatureTableModel
public void setLocaleOfData(Locale locale)
setLocaleOfData
in interface FeatureTableModel
public boolean isSelectionLocked()
isSelectionLocked
in interface FeatureTableModel
public boolean isSelectionUp()
isSelectionUp
in interface FeatureTableModel
public void setSelectionUp(boolean selectionUp)
setSelectionUp
in interface FeatureTableModel
public void update(Observable observable, Object notification)
Observer
Observable
object is changed and this
Observer
has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer
and other Observer
s listening to the same
Observable
.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver
and prepare this method
implementation to handle receiving DefaultComplexNotification
instances
as well as direct notification objects.
public FeatureSelection getFeatureSelection()
getFeatureSelection
in interface FeatureTableModel
public void setFeatureSelection(FeatureSelection selection)
setFeatureSelection
in interface FeatureTableModel
public void addChangeListener(ActionListener listener)
addChangeListener
in interface FeatureTableModel
public void fireChangeListeners(ActionEvent event)
public int getSelectionCount()
getSelectionCount
in interface FeatureTableModel