|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Mp3dingsTableModel
The common interface of the mp3dings table models.
| Field Summary |
|---|
| Fields inherited from interface de.mospace.swing.table.SortableTableModel |
|---|
ASCENDING, DESCENDING |
| Method Summary | |
|---|---|
void |
addDataChangeListener(DataChangeListener dl)
|
void |
addMessageListener(MessageListener ml)
|
boolean |
discardChanges(Frame parent)
|
void |
fireDataChanged(int n)
|
void |
fireTableDataChanged()
AbstractTableModel's fireTableDataChanged() method |
Object |
get(int row,
int col)
Gets the value of the specified table cell, converting FullTextString values to strings on the fly. |
Field[] |
getFields()
Gets the fields that are currently displayed. |
File |
getFile(int row)
|
FilterCollection |
getFilters()
|
int[] |
getNextDuplicates(int[] rows,
int startRowIndex,
int[] cols)
Looks for consecutive duplicates in rows, starting at
startRowIndex. |
String |
getPrefKey()
|
Preferences |
getPrefs()
|
boolean |
isFiltered(int column)
|
void |
resetChangeCounter()
|
void |
set(Object v,
int[] rows,
int[] cols)
Updates a range of cells without firing any events. |
void |
set(Object v,
int rows,
int cols)
Updates the value of the specified table cell without firing any events. |
void |
setSortBy(int[] cols)
Sets the columns by which this table is sorted. |
void |
setValueAt(Object v,
int[] rows,
int[] cols)
Updates a range of cells and notifies tables displaying this model of the change in the data. |
| Methods inherited from interface de.mospace.swing.table.SortableTableModel |
|---|
getEntries, getEntries, getRows, getRows, getSortingColumn, getSortOrder, isSorted, randomize, setSortBy, setSortBy, sort |
| Methods inherited from interface net.sourceforge.mp3dings.FieldAssociatedTableModel |
|---|
getAllowedFields, getColumn, getDefaultFields, getEditable, getField, getPersistentFields |
| Methods inherited from interface de.mospace.swing.table.HeaderPopupTableModel |
|---|
getHeaderPopup |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Method Detail |
|---|
FilterCollection getFilters()
boolean isFiltered(int column)
Preferences getPrefs()
String getPrefKey()
File getFile(int row)
Field[] getFields()
getFields in interface FieldAssociatedTableModelboolean discardChanges(Frame parent)
void resetChangeCounter()
Object get(int row,
int col)
row - the row of the cellcol - the column of the cell
void setValueAt(Object v,
int[] rows,
int[] cols)
TableModel.setValueAt(Object, int,
int) for each cell.
This method must only be called from the AWT event dispatching
thread, use set(Object, int[], int[]) if you want to update the
table from another thread.
rows - the rows of the cellscols - the columns of the cellsv - the new value of the cells
void set(Object v,
int[] rows,
int[] cols)
rows - the rows of the cellscols - the columns of the cellsv - the new value of the cellssetValueAt(Object, int[], int[])
void set(Object v,
int rows,
int cols)
rows - the row of the cellcols - the column of the cellv - the new val9ue of the cellTableModel.setValueAt(Object, int, int)void setSortBy(int[] cols)
cols - the columns to sort by in order of decreasing precedenceSortableTableModel.setSortBy(int, boolean)
int[] getNextDuplicates(int[] rows,
int startRowIndex,
int[] cols)
rows, starting at
startRowIndex.
The returned array contains the index of the first and the last rows
that are identical in all columns specified by cols.
rows - an array of table model rows to search for duplicatesstartRowIndex - the index where the search will begincols - the cols that will be taken into account for comparison, if
null all columns are used.
void addMessageListener(MessageListener ml)
void addDataChangeListener(DataChangeListener dl)
void fireDataChanged(int n)
void fireTableDataChanged()
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||