protected class SourceEditor.ActiveSourcesModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
private List<SourceEntry> |
data |
private DefaultListSelectionModel |
selectionModel |
listenerList
Constructor and Description |
---|
ActiveSourcesModel(DefaultListSelectionModel selectionModel) |
Modifier and Type | Method and Description |
---|---|
void |
addExtendedSourceEntries(List<SourceEditor.ExtendedSourceEntry> sources) |
void |
addSource(SourceEntry entry) |
boolean |
canMove(int i) |
Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
int |
getRowCount() |
List<SourceEntry> |
getSources() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
move(int i) |
void |
removeIdxs(Collection<Integer> idxs) |
void |
removeSelected() |
void |
setActiveSources(Collection<? extends SourceEntry> sources) |
void |
setValueAt(Object aValue,
int row,
int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
private transient List<SourceEntry> data
private final DefaultListSelectionModel selectionModel
public ActiveSourcesModel(DefaultListSelectionModel selectionModel)
public int getColumnCount()
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Class<?> getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public void setValueAt(Object aValue, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public void setActiveSources(Collection<? extends SourceEntry> sources)
public void addSource(SourceEntry entry)
public void removeSelected()
public void removeIdxs(Collection<Integer> idxs)
public void addExtendedSourceEntries(List<SourceEditor.ExtendedSourceEntry> sources)
public List<SourceEntry> getSources()
public boolean canMove(int i)
public void move(int i)