com.pushtotest.testmaker.resources
Class HashListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultListModel
          extended by com.pushtotest.testmaker.resources.HashListModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class HashListModel
extends javax.swing.DefaultListModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
HashListModel()
          Creates a new instance of HashListModel
 
Method Summary
 void add(int index, java.lang.Object element, java.lang.String key)
          Adds an element to the list with an additional key assigned.
 void addElement(java.lang.Object obj, java.lang.String key)
           
 void clear()
           
 
Methods inherited from class javax.swing.DefaultListModel
add, addElement, capacity, 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

HashListModel

public HashListModel()
Creates a new instance of HashListModel

Method Detail

add

public void add(int index,
                java.lang.Object element,
                java.lang.String key)
Adds an element to the list with an additional key assigned.

Parameters:
index - Index in the list to insert the element
element - Element to insert in the list
key - Element's associated key

addElement

public void addElement(java.lang.Object obj,
                       java.lang.String key)

clear

public void clear()
Overrides:
clear in class javax.swing.DefaultListModel