|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--carproject.BasicListModel
Title: BasicListModel
Description: BaiscListModel is a concrete extension of AbstractListModel. Unlike DefaultListModel, it uses an ArrayList (instead of a Vector) and it has a constructor that takes a list.
Copyright: Copyright (c) 2003
Class: cs440. Software Engineering
author: Prof. drake (cs 340)
| Field Summary |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
BasicListModel()
|
|
BasicListModel(java.util.List data)
|
|
| Method Summary | |
void |
add(java.lang.Object element)
add the given element at the end of the list |
java.lang.Object |
getElementAt(int index)
|
int |
getSize()
|
void |
remove(java.lang.Object element)
remove the given element if present |
| 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 |
| Constructor Detail |
public BasicListModel()
public BasicListModel(java.util.List data)
| Method Detail |
public int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic void add(java.lang.Object element)
public void remove(java.lang.Object element)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||