core
Class LectureListModel
java.lang.Object
core.LectureListModel
- All Implemented Interfaces:
- ComboBoxModel, ListModel
public class LectureListModel
- extends Object
- implements ComboBoxModel
The model of the cpmboBox where the Teacher selects the lecture in the login window.
- Author:
- Terje
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lectureList
ArrayList<String> lectureList
codeList
ArrayList<String> codeList
selected
Object selected
LectureListModel
public LectureListModel(ArrayList<String> lectureList,
ArrayList<String> codeList)
getSelectedItem
public Object getSelectedItem()
- Specified by:
getSelectedItem
in interface ComboBoxModel
setSelectedItem
public void setSelectedItem(Object anItem)
- Specified by:
setSelectedItem
in interface ComboBoxModel
addListDataListener
public void addListDataListener(ListDataListener l)
- Specified by:
addListDataListener
in interface ListModel
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt
in interface ListModel
getSize
public int getSize()
- Specified by:
getSize
in interface ListModel
removeListDataListener
public void removeListDataListener(ListDataListener l)
- Specified by:
removeListDataListener
in interface ListModel
getLectureCode
public String getLectureCode(int i)