org.homeunix.thecave.buddi.model.swing
Class SourceComboBoxModel

java.lang.Object
  extended by org.homeunix.thecave.buddi.model.swing.SourceComboBoxModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, javax.swing.ListModel

public class SourceComboBoxModel
extends java.lang.Object
implements javax.swing.ComboBoxModel


Constructor Summary
SourceComboBoxModel(Document model, boolean includeIncome)
           
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
           
 java.lang.Object getElementAt(int index)
           
 java.lang.Object getSelectedItem()
           
 int getSize()
           
 void removeListDataListener(javax.swing.event.ListDataListener l)
           
 void setSelectedItem(java.lang.Object anItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceComboBoxModel

public SourceComboBoxModel(Document model,
                           boolean includeIncome)
Method Detail

getSelectedItem

public java.lang.Object getSelectedItem()
Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel

setSelectedItem

public void setSelectedItem(java.lang.Object anItem)
Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Specified by:
addListDataListener in interface javax.swing.ListModel

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Specified by:
removeListDataListener in interface javax.swing.ListModel