core
Class LectureListModel

java.lang.Object
  extended by 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

Field Summary
(package private)  ArrayList<String> codeList
           
(package private)  ArrayList<String> lectureList
           
(package private)  Object selected
           
 
Constructor Summary
LectureListModel(ArrayList<String> lectureList, ArrayList<String> codeList)
           
 
Method Summary
 void addListDataListener(ListDataListener l)
           
 Object getElementAt(int index)
           
 String getLectureCode(int i)
           
 Object getSelectedItem()
           
 int getSize()
           
 void removeListDataListener(ListDataListener l)
           
 void setSelectedItem(Object anItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lectureList

ArrayList<String> lectureList

codeList

ArrayList<String> codeList

selected

Object selected
Constructor Detail

LectureListModel

public LectureListModel(ArrayList<String> lectureList,
                        ArrayList<String> codeList)
Method Detail

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)