public class NodeListModel extends javax.swing.AbstractListModel<IOPNode>
Constructor and Description |
---|
NodeListModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
forSaving() |
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.
|
int |
indexOfPattern(java.lang.String pattern,
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 node 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 indexOfPattern(java.lang.String pattern, boolean caseSensitive, int start)
pattern
- String to be used to find a Essence in datacaseSensitive
- Match given name in case sensitive manner to datastart
- Index to start looking frompublic int getSize()
public IOPNode getElementAt(int i)
public java.lang.String[] forSaving()