public interface MultipleSelectionListModel<T>
ExtendsListModel<T>
Known subtypesContactsModel, DefaultListModel
Events
ListModel to support multiple selection.Methods
public abstract void addSelectedIndices(int... indices) | Adds indices to set of selected indices. |
public abstract void removeSelectedIndices(int... indices) | Removes indices from the set of selected indices. |
public abstract int[] getSelectedIndices() | Gets the selected indices in this model. |
public abstract void setSelectedIndices(int... indices) | Sets the selected indices in this model. |
Inherited methods
Method details
addSelectedIndices
public abstract void addSelectedIndices(int... indices)Adds indices to set of selected indices.
Parameters
indicesint...- Indices to add to selected indices.
removeSelectedIndices
public abstract void removeSelectedIndices(int... indices)Removes indices from the set of selected indices.
Parameters
indicesint...- Indices to remove from selected indices.
getSelectedIndices
public abstract int[] getSelectedIndices()Gets the selected indices in this model. Indices should be returned
in increasing order with no duplicates.
Returns
Selected indices in increasing order with no duplicates. If there
are no selected indices, then this will return a zero-length array.
setSelectedIndices
public abstract void setSelectedIndices(int... indices)Sets the selected indices in this model.