org.gswing.gui
Class CandidateSelector.CandidateModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultListModel
          extended by org.gswing.gui.CandidateSelector.CandidateModel
All Implemented Interfaces:
Serializable, ListModel
Enclosing class:
CandidateSelector

public static class CandidateSelector.CandidateModel
extends DefaultListModel

Models the candidate list.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
CandidateSelector.CandidateModel(ArrayList entries)
          Constructor.
 
Method Summary
 void update(String str)
          Update candidate list with strings beginning with 'str'
 
Methods inherited from class javax.swing.DefaultListModel
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
 
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, wait, wait, wait
 

Constructor Detail

CandidateSelector.CandidateModel

public CandidateSelector.CandidateModel(ArrayList entries)
Constructor.

Parameters:
entries - List of entries.
Method Detail

update

public void update(String str)
Update candidate list with strings beginning with 'str'

Parameters:
str - String that candiates should be begin with. If all candidates should be shown then str will be null.


Copyright © 2008. All Rights Reserved.