public class ModuleOptionsTableModel extends javax.swing.table.AbstractTableModel implements ItemRemovable
Constructor and Description |
---|
ModuleOptionsTableModel() |
Modifier and Type | Method and Description |
---|---|
int |
addModulesToModel(Project project,
java.awt.Component parent) |
int |
getColumnCount() |
java.util.Map<java.lang.String,java.lang.String> |
getModuleOptions() |
int |
getRowCount() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeRow(int idx)
Remove row with index
idx and fire DELETE event (e.g. |
void |
setModuleOptions(Project project,
java.util.Map<java.lang.String,java.lang.String> moduleOptions) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
public java.util.Map<java.lang.String,java.lang.String> getModuleOptions()
public void setModuleOptions(Project project, java.util.Map<java.lang.String,java.lang.String> moduleOptions)
public int addModulesToModel(Project project, java.awt.Component parent)
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public void removeRow(int idx)
ItemRemovable
idx
and fire DELETE
event (e.g. by calling
AbstractTableModel.fireTableRowsDeleted(int, int)
)removeRow
in interface ItemRemovable