public class ListModel extends javax.swing.AbstractListModel<IOPNode>
Constructor and Description |
---|
ListModel() |
Modifier and Type | Method and Description |
---|---|
IOPNode |
getElementAt(int i) |
int |
getSize() |
int |
indexOfCompletion(java.lang.String prefix,
int start)
Search for the first occurrence of an object, whose
name has a partial name (partial names are tokens within
the name separated by '(', ':', or ')' such as complexes)
that begins with the given prefix (case insensitive).
|
int |
indexOfName(java.lang.String name,
boolean caseSensitive,
int start)
Searches for the first occurrence of an object
with the given name from the given starting index.
|
void |
setData(java.util.List<? extends IOPNode> list)
Update data from given list.
|
void |
setData(java.util.List<? extends IOPNode> list,
boolean sorted)
Update data from given list.
|
public void setData(java.util.List<? extends IOPNode> list)
list
- List of items in this model (can be NULL)public void setData(java.util.List<? extends IOPNode> list, boolean sorted)
list
- List of items in this model (can be NULL)sorted
- boolean indicating whether sorting is desiredpublic int indexOfName(java.lang.String name, boolean caseSensitive, int start)
name
- String to be used to find a IOPNode in datacaseSensitive
- Match given name in case sensitive manner to datastart
- Index to start looking frompublic int indexOfCompletion(java.lang.String prefix, int start)
prefix
- String that is beginning part of namestart
- Index to start looking from (must not be
< 0 or > length of list)public int getSize()
public IOPNode getElementAt(int i)