public final class PluginStoreTableModel extends javax.swing.table.AbstractTableModel implements ColumnSizingTableModel
| Constructor and Description |
|---|
PluginStoreTableModel()
Create a PluginStoreTableModel from the local plugin registry and the list of available plugins
from either the author's website or the SourceForge project.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns Class of column content.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the name for the column.
|
int |
getColumnWidth(int columnIndex)
Specifies the default initial width of a column from this model.
|
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Specifies that pushbuttons are usable.
|
boolean |
isSizeToFit(int columnIndex)
Specifies whether setWidthToFit() should be enabled on this column.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAtpublic PluginStoreTableModel()
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 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 java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.getValueAt in interface javax.swing.table.TableModelrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic 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 queriedpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queriedcolumnpublic int getColumnWidth(int columnIndex)
getColumnWidth in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtainedpublic boolean isSizeToFit(int columnIndex)
isSizeToFit in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtained