org.cesilko.rachota.gui
Class CompletionListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.cesilko.rachota.gui.CompletionListModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class CompletionListModel
extends javax.swing.AbstractListModel

Model that takes care of current list of completion items.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
CompletionListModel()
           
 
Method Summary
 java.lang.Object getElementAt(int index)
          Returns completion item at given index.
 int getSize()
          Returns number of completion items.
 void setItems(java.util.Vector items)
          Sets completion items to 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

CompletionListModel

public CompletionListModel()
Method Detail

getSize

public int getSize()
Returns number of completion items.

Returns:
Number of completion items.

getElementAt

public java.lang.Object getElementAt(int index)
Returns completion item at given index.

Parameters:
index - Index whose completion item should be returned.
Returns:
Completion item at given index.

setItems

public void setItems(java.util.Vector items)
Sets completion items to given list.

Parameters:
items - Vector of new completion items to be used from now.