public class ConfigurableFeatureTableModel extends FeatureTableModel
FeatureTableModel.Bitmask| Constructor and Description |
|---|
ConfigurableFeatureTableModel(FeatureStore featureStore,
FeatureQuery featureQuery) |
ConfigurableFeatureTableModel(FeatureStore featureStore,
FeatureQuery featureQuery,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptChanges()
Make current changes in configuration (visible columns and aliases)
as definitive.
|
void |
cancelChanges()
Cancel current changes in configuration (visible columns and aliases)
and return to previous status.
|
protected java.lang.String |
getAliasForColumn(java.lang.String name)
Returns the alias for the name of a column.
|
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
FeatureAttributeDescriptor |
getDescriptorForColumn(int columnIndex)
Returns the descriptor of a Feature attribute for a table column.
|
protected java.lang.Object |
getFeatureValue(Feature feature,
int columnIndex)
Returns the value of a Feature attribute, at the given position.
|
java.lang.String |
getFormattingPattern(int column) |
java.lang.String |
getFormattingPattern(java.lang.String columnName) |
protected java.lang.String[] |
getHiddenColumnNames() |
java.util.Locale |
getLocaleOfData() |
int |
getOriginalColumnCount() |
int |
getOriginalColumnIndex(int columnIndex)
Returns the original position of a column.
|
java.lang.String |
getOriginalColumnName(int column)
Returns the original name of the column, ignoring the alias.
|
protected void |
initialize()
Initialize the TableModel
|
protected void |
initializeFormattingPattern(java.lang.String columnName) |
protected void |
initializeFormattingPatterns() |
protected void |
initializeVisibleColumns()
Initializes the table visible columns.
|
boolean |
isVisible(java.lang.String name)
Returns if a column is visible.
|
void |
orderByColumn(java.lang.String name,
boolean ascending) |
void |
setAlias(java.lang.String name,
java.lang.String alias)
Sets the alias for a column.
|
void |
setAllVisible()
Changes all columns to be visible.
|
void |
setFeatureType(FeatureType featureType)
Sets the FeatureType to show in the table.
|
protected EditableFeature |
setFeatureValue(Feature feature,
int columnIndex,
java.lang.Object value)
Sets the value of an Feature attribute at the given position.
|
void |
setFormattingPattern(java.lang.String columnName,
java.lang.String pattern) |
void |
setLocaleOfData(java.util.Locale locale) |
void |
setVisible(java.lang.String name,
boolean visible)
Sets the visibility of a table column.
|
void |
setVisibleColumns(java.util.List<java.lang.String> names)
Sets the current visible columns list, in the original order.
|
dispose, doDispose, fireTableChanged, getFeatureAt, getFeatureQuery, getFeatureStore, getFeatureType, getHelper, getRowCount, getValueAt, internalGetFeatureDescriptorForColumn, isCellEditable, isSelectionLocked, setSelectionUp, setValueAt, update, updatePaginHelperWithHiddenColumsaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic ConfigurableFeatureTableModel(FeatureStore featureStore, FeatureQuery featureQuery) throws BaseException
BaseExceptionFeatureTableModel.FeatureTableModel(FeatureStore, FeatureQuery)public ConfigurableFeatureTableModel(FeatureStore featureStore, FeatureQuery featureQuery, int pageSize) throws BaseException
public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelgetColumnCount in class FeatureTableModelpublic int getOriginalColumnCount()
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class FeatureTableModelpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class FeatureTableModelpublic FeatureAttributeDescriptor getDescriptorForColumn(int columnIndex)
FeatureTableModelgetDescriptorForColumn in class FeatureTableModelpublic java.lang.String getOriginalColumnName(int column)
column - the original index of the columnpublic void setVisible(java.lang.String name,
boolean visible)
columnIndex - the index of the column to updatevisible - if the column will be visible or notpublic void setFeatureType(FeatureType featureType)
FeatureTableModelsetFeatureType in class FeatureTableModelfeatureType - the FeatureType of the Featurespublic void setVisibleColumns(java.util.List<java.lang.String> names)
names - the names of the columns to set as visibleprotected java.lang.String[] getHiddenColumnNames()
getHiddenColumnNames in class FeatureTableModelpublic void setAllVisible()
public void setAlias(java.lang.String name,
java.lang.String alias)
name - the name of the columnalias - the alias for the columnpublic void orderByColumn(java.lang.String name,
boolean ascending)
throws BaseException
BaseExceptionprotected void initialize()
FeatureTableModelinitialize in class FeatureTableModelpublic boolean isVisible(java.lang.String name)
name - the name of the columnprotected void initializeVisibleColumns()
protected java.lang.String getAliasForColumn(java.lang.String name)
name - of the columnpublic int getOriginalColumnIndex(int columnIndex)
columnIndex - the current visible column indexprotected java.lang.Object getFeatureValue(Feature feature, int columnIndex)
FeatureTableModelgetFeatureValue in class FeatureTableModelfeature - the feature to get the value fromcolumnIndex - the Feature attribute positionprotected EditableFeature setFeatureValue(Feature feature, int columnIndex, java.lang.Object value)
FeatureTableModelsetFeatureValue in class FeatureTableModelfeature - the feature to updatecolumnIndex - the attribute positionvalue - the value to setpublic void acceptChanges()
public void cancelChanges()
protected void initializeFormattingPatterns()
protected void initializeFormattingPattern(java.lang.String columnName)
public java.lang.String getFormattingPattern(int column)
public java.lang.String getFormattingPattern(java.lang.String columnName)
public void setFormattingPattern(java.lang.String columnName,
java.lang.String pattern)
public java.util.Locale getLocaleOfData()
public void setLocaleOfData(java.util.Locale locale)