public class ProjectStartupTasksTableModel extends javax.swing.table.AbstractTableModel implements EditableModel
Modifier and Type | Class and Description |
---|---|
static class |
ProjectStartupTasksTableModel.RunnerAndConfigurationSettingsComparator |
Modifier and Type | Field and Description |
---|---|
static int |
IS_SHARED_COLUMN |
static int |
NAME_COLUMN |
Constructor and Description |
---|
ProjectStartupTasksTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(RunnerAndConfigurationSettings configuration) |
void |
addRow() |
boolean |
canExchangeRows(int oldIndex,
int newIndex) |
void |
exchangeRows(int oldIndex,
int newIndex) |
java.util.List<RunnerAndConfigurationSettings> |
getAllConfigurations() |
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
int |
getRowCount() |
java.util.Set<RunnerAndConfigurationSettings> |
getSharedConfigurations() |
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 |
reValidateConfigurations(Processor<? super RunnerAndConfigurationSettings> existenceChecker) |
void |
setData(java.util.Collection<? extends RunnerAndConfigurationSettings> shared,
java.util.Collection<? extends RunnerAndConfigurationSettings> local) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static final int NAME_COLUMN
public static final int IS_SHARED_COLUMN
public void setData(java.util.Collection<? extends RunnerAndConfigurationSettings> shared, java.util.Collection<? extends RunnerAndConfigurationSettings> local)
public void addRow()
addRow
in interface EditableModel
public void exchangeRows(int oldIndex, int newIndex)
exchangeRows
in interface EditableModel
public boolean canExchangeRows(int oldIndex, int newIndex)
canExchangeRows
in interface EditableModel
public void removeRow(int idx)
ItemRemovable
idx
and fire DELETE
event (e.g. by calling
AbstractTableModel.fireTableRowsDeleted(int, int)
)removeRow
in interface ItemRemovable
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
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 java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void addConfiguration(RunnerAndConfigurationSettings configuration)
public java.util.Set<RunnerAndConfigurationSettings> getSharedConfigurations()
public java.util.List<RunnerAndConfigurationSettings> getAllConfigurations()
public void reValidateConfigurations(Processor<? super RunnerAndConfigurationSettings> existenceChecker)