|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.jsampler.view.InstrumentsDbTableModel
public class InstrumentsDbTableModel
| Nested Class Summary | |
|---|---|
static class |
InstrumentsDbTableModel.ColumnType
|
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
InstrumentsDbTableModel()
Creates a new instance of InstrumentsDbTableModel. |
|
InstrumentsDbTableModel(DbDirectoryTreeNode node)
Creates a new instance of InstrumentsDbTableModel. |
|
| Method Summary | |
|---|---|
int |
getColumnCount()
Gets the number of columns in the model. |
java.lang.String |
getColumnName(int col)
Gets the name of the column at columnIndex. |
InstrumentsDbTableModel.ColumnType |
getColumnType(int index)
Gets the type of the specified column. |
java.util.Comparator |
getComparator(int col)
Returns a comparator for the specified column or null
if there is no suitable comparator for the specified column. |
DbDirectoryTreeNode |
getDirectoryNode(int index)
Gets the directory at the specified row index or null there is no directory at the specified index. |
int |
getDirectoryRowIndex(java.lang.String dir)
Gets the row index of the specified directory. |
int |
getDummyColumnIndex()
Gets the index of the dummy column. |
DbInstrumentInfo |
getInstrument(int index)
Gets the instrument at the specified row index or null there is no instrument at the specified index. |
int |
getInstrumentRowIndex(java.lang.String instr)
Gets the row index of the specified instrument. |
protected DbDirectoryTreeNode |
getParentDirectoryNode()
Gets the directory node, which content is represented by this table model. |
java.lang.String |
getRenamedDirectory()
Gets the name of the last renamed directory through this table model. |
java.lang.String |
getRenamedInstrument()
Gets the name of the last renamed instrument through this table model. |
int |
getRowCount()
Gets the number of rows in the model. |
boolean |
getShowArtistsColumn()
Gets whether the Artists column is shown. |
boolean |
getShowCreatedColumn()
Gets whether the Date Created column is shown. |
boolean |
getShowDummyColumn()
Gets whether the Dummy column is shown. |
boolean |
getShowFormatFamilyColumn()
Gets whether the Format column is shown. |
boolean |
getShowFormatVersionColumn()
Gets whether the Version column is shown. |
boolean |
getShowInstrumentFileColumn()
Gets whether the Instrument File column is shown. |
boolean |
getShowInstrumentNrColumn()
Gets whether the Index column is shown. |
boolean |
getShowIsDrumColumn()
Gets whether the Type column is shown. |
boolean |
getShowKeywordsColumn()
Gets whether the Keywords column is shown. |
boolean |
getShowModifiedColumn()
Gets whether the Date Modified column is shown. |
boolean |
getShowProductColumn()
Gets whether the Product column is shown. |
boolean |
getShowSizeColumn()
Gets whether the Size column is shown. |
java.lang.Object |
getValueAt(int row,
int col)
Gets the value for the cell at columnIndex and
rowIndex. |
boolean |
isCellEditable(int row,
int col)
Returns true if the cell at
row and col is editable. |
boolean |
isSortable(int col)
Determines whether the specified column is sortable. |
protected void |
setParentDirectoryNode(DbDirectoryTreeNode node)
Sets the directory node, which content will be represented by this table model. |
void |
setRenamedDirectory(java.lang.String dir)
Sets the name of the last renamed directory through this table model. |
void |
setRenamedInstrument(java.lang.String instr)
Sets the name of the last renamed instrument through this table model. |
void |
setShowArtistsColumn(boolean b)
Sets whether the Artists column should be shown. |
void |
setShowCreatedColumn(boolean b)
Sets whether the Date Created column should be shown. |
void |
setShowDummyColumn(boolean b)
Sets whether the Dummy column should be shown. |
void |
setShowFormatFamilyColumn(boolean b)
Sets whether the Format column should be shown. |
void |
setShowFormatVersionColumn(boolean b)
Sets whether the Version column should be shown. |
void |
setShowInstrumentFileColumn(boolean b)
Sets whether the Instrument File column should be shown. |
void |
setShowInstrumentNrColumn(boolean b)
Sets whether the Index column should be shown. |
void |
setShowIsDrumColumn(boolean b)
Sets whether the Type column should be shown. |
void |
setShowKeywordsColumn(boolean b)
Sets whether the Keywords column should be shown. |
void |
setShowModifiedColumn(boolean b)
Sets whether the Date Modified column should be shown. |
void |
setShowProductColumn(boolean b)
Sets whether the Product column should be shown. |
void |
setShowSizeColumn(boolean b)
Sets whether the Size column should be shown. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the value in the cell at col
and row to value. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstrumentsDbTableModel()
InstrumentsDbTableModel.
public InstrumentsDbTableModel(DbDirectoryTreeNode node)
InstrumentsDbTableModel.
| Method Detail |
|---|
public InstrumentsDbTableModel.ColumnType getColumnType(int index)
index - The index of the column.public int getDummyColumnIndex()
public boolean getShowSizeColumn()
public void setShowSizeColumn(boolean b)
public boolean getShowFormatFamilyColumn()
public void setShowFormatFamilyColumn(boolean b)
public boolean getShowFormatVersionColumn()
public void setShowFormatVersionColumn(boolean b)
public boolean getShowIsDrumColumn()
public void setShowIsDrumColumn(boolean b)
public boolean getShowCreatedColumn()
public void setShowCreatedColumn(boolean b)
public boolean getShowModifiedColumn()
public void setShowModifiedColumn(boolean b)
public boolean getShowProductColumn()
public void setShowProductColumn(boolean b)
public boolean getShowArtistsColumn()
public void setShowArtistsColumn(boolean b)
public boolean getShowInstrumentFileColumn()
public void setShowInstrumentFileColumn(boolean b)
public boolean getShowInstrumentNrColumn()
public void setShowInstrumentNrColumn(boolean b)
public boolean getShowKeywordsColumn()
public void setShowKeywordsColumn(boolean b)
public boolean getShowDummyColumn()
public void setShowDummyColumn(boolean b)
public java.util.Comparator getComparator(int col)
null
if there is no suitable comparator for the specified column.
public boolean isSortable(int col)
true if the specified column is
sortable, false otherwise.protected DbDirectoryTreeNode getParentDirectoryNode()
protected void setParentDirectoryNode(DbDirectoryTreeNode node)
public java.lang.String getRenamedInstrument()
public void setRenamedInstrument(java.lang.String instr)
public java.lang.String getRenamedDirectory()
public void setRenamedDirectory(java.lang.String dir)
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
columnIndex.
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumnIndex.public DbDirectoryTreeNode getDirectoryNode(int index)
null there is no directory at the specified index.
public DbInstrumentInfo getInstrument(int index)
null there is no instrument at the specified index.
public int getDirectoryRowIndex(java.lang.String dir)
dir - The name of the directory.
-1 if the specified directory is not found.public int getInstrumentRowIndex(java.lang.String instr)
instr - The name of the instrument.
-1 if the specified instrument is not found.
public java.lang.Object getValueAt(int row,
int col)
columnIndex and
rowIndex.
row - The row whose value is to be queried.col - The column whose value is to be queried.
columnIndex and
rowIndex.
public void setValueAt(java.lang.Object value,
int row,
int col)
col
and row to value.
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row,
int col)
true if the cell at
row and col is editable.
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModel
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||