protected static class SourceEditor.AvailableSourcesListModel extends javax.swing.DefaultListModel<SourceEditor.ExtendedSourceEntry>
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<SourceEditor.ExtendedSourceEntry> |
data |
private javax.swing.DefaultListSelectionModel |
selectionModel |
| Constructor and Description |
|---|
AvailableSourcesListModel(javax.swing.DefaultListSelectionModel selectionModel)
Constructs a new
AvailableSourcesListModel |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSelected()
Deletes the selected sources.
|
SourceEditor.ExtendedSourceEntry |
getElementAt(int index) |
java.util.List<SourceEditor.ExtendedSourceEntry> |
getSelected()
Returns the selected sources.
|
int |
getSize() |
void |
setSources(java.util.List<SourceEditor.ExtendedSourceEntry> sources)
Sets the source list.
|
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSizeprivate final transient java.util.List<SourceEditor.ExtendedSourceEntry> data
private final javax.swing.DefaultListSelectionModel selectionModel
public AvailableSourcesListModel(javax.swing.DefaultListSelectionModel selectionModel)
AvailableSourcesListModelselectionModel - selection modelpublic void setSources(java.util.List<SourceEditor.ExtendedSourceEntry> sources)
sources - source listpublic SourceEditor.ExtendedSourceEntry getElementAt(int index)
getElementAt in interface javax.swing.ListModel<SourceEditor.ExtendedSourceEntry>getElementAt in class javax.swing.DefaultListModel<SourceEditor.ExtendedSourceEntry>public int getSize()
getSize in interface javax.swing.ListModel<SourceEditor.ExtendedSourceEntry>getSize in class javax.swing.DefaultListModel<SourceEditor.ExtendedSourceEntry>public void deleteSelected()
public java.util.List<SourceEditor.ExtendedSourceEntry> getSelected()