|
Together Workflow Editor 3.0-1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
org.enhydra.jawe.XMLElementChoiceButton.FilteredListModel
private class XMLElementChoiceButton.FilteredListModel
This class is the core junction between the list of element, the filter textfield and the rendering of JList component
Field Summary | |
---|---|
private java.util.ArrayList |
filteredList
|
private java.util.ArrayList |
fullList
|
private java.lang.String |
key
|
private java.util.ArrayList |
rejectedList
|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
private |
XMLElementChoiceButton.FilteredListModel()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
triggered when action is performed in TextField. |
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Do nothing |
void |
filter(java.lang.String key)
updates model according to filter key |
java.lang.Object |
getElementAt(int index)
|
int |
getFilterSize()
|
int |
getSize()
|
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Handles updates in Textfield, requires to redo filtering and updates filter accordingly |
private boolean |
match(java.lang.String key,
org.enhydra.shark.xpdl.XMLElement element)
|
void |
removeUpdate(javax.swing.event.DocumentEvent e)
Handles updates in Textfield, requires to redo filtering and updates filter accordingly |
void |
setFilteredList(java.lang.Object[] list)
This is mainly for convenience with output from map.entrySet.toArray() that this method accept an Object[] parameter. |
private boolean |
splitAndMatch(java.lang.String key,
org.enhydra.shark.xpdl.XMLElement element)
|
private void |
updateFilter(javax.swing.text.Document doc)
|
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 |
Field Detail |
---|
private java.util.ArrayList fullList
private java.util.ArrayList filteredList
private java.util.ArrayList rejectedList
private java.lang.String key
Constructor Detail |
---|
private XMLElementChoiceButton.FilteredListModel()
Method Detail |
---|
public void setFilteredList(java.lang.Object[] list)
list
- the list of element to filter from in this modelpublic int getFilterSize()
public int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
private boolean match(java.lang.String key, org.enhydra.shark.xpdl.XMLElement element)
private boolean splitAndMatch(java.lang.String key, org.enhydra.shark.xpdl.XMLElement element)
public void filter(java.lang.String key)
private void updateFilter(javax.swing.text.Document doc)
public void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate
in interface javax.swing.event.DocumentListener
public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
in interface javax.swing.event.DocumentListener
e
- DocumentEventpublic void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate
in interface javax.swing.event.DocumentListener
e
- DocumentEventpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
Together Workflow Editor 3.0-1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |