|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--org.fopps.ui.EnhancedTableModel
|
+--org.fopps.ui.feature.AttachmentTableModel
Table model for file attachments.
| Field Summary | |
static java.lang.Class[] |
COLUMN_CLASSES
|
static java.lang.String[] |
COLUMN_NAMES
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
AttachmentTableModel()
|
|
AttachmentTableModel(Feature feature)
|
|
| Method Summary | |
int |
compareRowsByColumn(int row1,
int row2,
int column)
All subclasses have to overwrite this method in order to fetch the values from the unsorted array. |
java.lang.Class |
getColumnClass(int columnIndex)
Returns Object.class regardless of columnIndex. |
int |
getColumnCount()
Returns the number of columns in the model. |
java.lang.String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ... |
Feature |
getFeature()
|
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object |
getRowObject(int pRow)
Returns the objects that represents the data of the whole row. |
java.lang.Object |
getValueAt(int aRow,
int aColumn)
Translates the row with respect to current table sorting and returns the value of the given cell. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns false. |
void |
modelChanged(ModelEvent ev)
Invoked on model changes. |
void |
setFeature(Feature pFeature)
|
void |
setValueAt(java.lang.Object aValue,
int aRow,
int aColumn)
Sets the value of a cell |
| Methods inherited from class org.fopps.ui.EnhancedTableModel |
checkModel, compare, compareRowsByColumn, fireTableDataChanged, getCellClass, getObjectColumn, n2sort, reallocateIndexes, shuttlesort, sort, sortByColumn, sortByColumn, swap, translateRow |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, 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 |
| Field Detail |
public static final java.lang.String[] COLUMN_NAMES
public static final java.lang.Class[] COLUMN_CLASSES
| Constructor Detail |
public AttachmentTableModel()
public AttachmentTableModel(Feature feature)
| Method Detail |
public Feature getFeature()
public void setFeature(Feature pFeature)
public java.lang.Object getValueAt(int aRow,
int aColumn)
getValueAt in interface javax.swing.table.TableModelgetValueAt in class EnhancedTableModelTableModel.getValueAt(int,int)
public int compareRowsByColumn(int row1,
int row2,
int column)
EnhancedTableModel
compareRowsByColumn in class EnhancedTableModelrow1 - Row of the first item for comparisonrow2 - Row of the second item for comparisoncolumn - to sort by
EnhancedTableModel.compareRowsByColumn(int,int,int)public java.lang.String getColumnName(int column)
column cannot be found,
returns an empty string.
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queried
column
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - the row being queriedcolumnIndex - the column being queried
public java.lang.Class getColumnClass(int columnIndex)
Object.class regardless of columnIndex.
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queried
public void setValueAt(java.lang.Object aValue,
int aRow,
int aColumn)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class EnhancedTableModelpublic java.lang.Object getRowObject(int pRow)
getRowObject in class EnhancedTableModelpublic int getRowCount()
JTable uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.
getRowCount in interface javax.swing.table.TableModelgetColumnCount()public int getColumnCount()
JTable uses this method to determine how many columns it
should create and display by default.
getColumnCount in interface javax.swing.table.TableModelgetRowCount()public void modelChanged(ModelEvent ev)
modelChanged in interface ModelListenerev - Model eventModelEvent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||