Package pulse.ui.components.models
Class TaskBoxModel
- java.lang.Object
-
- javax.swing.AbstractListModel<SearchTask>
-
- pulse.ui.components.models.TaskBoxModel
-
- All Implemented Interfaces:
Serializable
,ComboBoxModel<SearchTask>
,ListModel<SearchTask>
public class TaskBoxModel extends AbstractListModel<SearchTask> implements ComboBoxModel<SearchTask>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SearchTask
selectedTask
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description TaskBoxModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchTask
getElementAt(int index)
int
getSelectedIndex()
Object
getSelectedItem()
int
getSize()
void
setSelectedItem(Object anItem)
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
-
-
-
Field Detail
-
selectedTask
protected SearchTask selectedTask
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceListModel<SearchTask>
-
getElementAt
public SearchTask getElementAt(int index)
- Specified by:
getElementAt
in interfaceListModel<SearchTask>
-
setSelectedItem
public void setSelectedItem(Object anItem)
- Specified by:
setSelectedItem
in interfaceComboBoxModel<SearchTask>
-
getSelectedIndex
public int getSelectedIndex()
-
getSelectedItem
public Object getSelectedItem()
- Specified by:
getSelectedItem
in interfaceComboBoxModel<SearchTask>
-
-