|
Graphics2D Actor API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel g2d.pla.list.PLAListModel
public class PLAListModel
Custom implementation of list model that serves for accessing elements in their natural order.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
PLAListModel()
|
Method Summary | |
---|---|
java.lang.Object |
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 Essence> list)
Update data from given list. |
void |
setData(java.util.List<? extends Essence> list,
boolean sorted)
Update data from given list. |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PLAListModel()
Method Detail |
---|
public void setData(java.util.List<? extends Essence> list)
list
- List of items in this model (can be NULL)public void setData(java.util.List<? extends Essence> 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 Essence in datacaseSensitive
- Match given name in case sensitive manner to datastart
- Index to start looking from
public 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 from
public int getSize()
public java.lang.Object getElementAt(int i)
|
Graphics2D Actor API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |