Home » openjdk-7 » net.bereza.money » gui » [javadoc | source]
net.bereza.money.gui
public class: ItemListModel [javadoc | source]
java.lang.Object
   javax.swing.AbstractListModel<E>
      javax.swing.DefaultComboBoxModel
         net.bereza.money.gui.ItemListModel

All Implemented Interfaces:
    java$io$Serializable, MutableComboBoxModel, ListModel

ItemListModel is a DefaultListModel which holds only DatabaseItems, and has a Hashtable which tracks items by id.
Field Summary
 Hashtable trackingTable     
Fields inherited from javax.swing.DefaultComboBoxModel:
objects,  selectedObject
Fields inherited from javax.swing.AbstractListModel:
listenerList
Constructor:
 public ItemListModel(Hashtable table) 
    Construct a ItemListModel with a tracking table.
    Parameters:
    table - which will track items by id
Method from net.bereza.money.gui.ItemListModel Summary:
addElement,   insertElementAt
Methods from javax.swing.DefaultComboBoxModel:
addElement,   getElementAt,   getIndexOf,   getSelectedItem,   getSize,   insertElementAt,   removeAllElements,   removeElement,   removeElementAt,   setSelectedItem
Methods from javax.swing.AbstractListModel:
addListDataListener,   fireContentsChanged,   fireIntervalAdded,   fireIntervalRemoved,   getListDataListeners,   getListeners,   removeListDataListener
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.bereza.money.gui.ItemListModel Detail:
 public  void addElement(Object element) 
 public  void insertElementAt(Object obj,
    int index)