edu.upenn.cis.pdtb.graphics
Class SecNoComboBoxModel
java.lang.Object
edu.upenn.cis.pdtb.graphics.SecNoComboBoxModel
- All Implemented Interfaces:
- javax.swing.event.ChangeListener, javax.swing.ComboBoxModel, java.util.EventListener, javax.swing.ListModel
- public class SecNoComboBoxModel
- extends java.lang.Object
- implements javax.swing.ComboBoxModel, javax.swing.event.ChangeListener
Combo box representing the various sections that have atleast 1 file in them.
If no files are present in any section, it sets the current section to -1.
Attempting to load files with then result in exceptions. Messages the
FileNoComboBoxModel when the selection is changed.
- Author:
- nikhild
- See Also:
FileNoComboBoxModel
|
Constructor Summary |
SecNoComboBoxModel(java.util.LinkedList[] fileNumbers)
Creates a new instance of SecNoComboBoxModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecNoComboBoxModel
public SecNoComboBoxModel(java.util.LinkedList[] fileNumbers)
- Creates a new instance of SecNoComboBoxModel
- Parameters:
fileNumbers - Needed to know which sections actually have files in them.
addListDataListener
public void addListDataListener(javax.swing.event.ListDataListener listDataListener)
- Specified by:
addListDataListener in interface javax.swing.ListModel
getElementAt
public java.lang.Object getElementAt(int param)
- Specified by:
getElementAt in interface javax.swing.ListModel
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel
getSize
public int getSize()
- Specified by:
getSize in interface javax.swing.ListModel
removeListDataListener
public void removeListDataListener(javax.swing.event.ListDataListener listDataListener)
- Specified by:
removeListDataListener in interface javax.swing.ListModel
setSelectedItem
public void setSelectedItem(java.lang.Object obj)
- Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
getNextSecNo
public java.lang.String getNextSecNo()
getPrevSecNo
public java.lang.String getPrevSecNo()
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
- Specified by:
stateChanged in interface javax.swing.event.ChangeListener