openfuture.bugbase.app.model
Class SimpleListModel
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--openfuture.bugbase.app.model.SimpleListModel
- All Implemented Interfaces:
- javax.swing.ListModel, java.io.Serializable
- public class SimpleListModel
- extends javax.swing.AbstractListModel
- implements javax.swing.ListModel
Model for simple lists.
Created: Wed Feb 09 06:49:56 2000
- Version:
- $Revision: 1.4 $
- Author:
- Wolfgang Reissenberger
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Method Summary |
void |
append(java.lang.Object newValue)
|
java.lang.Object |
getElementAt(int i)
Return the i'th parameter of the list |
java.util.LinkedList |
getList()
Get the value of list. |
int |
getSize()
Size of the list |
void |
refreshView()
|
void |
remove(int indexFrom,
int indexTo)
|
void |
setList(java.util.LinkedList v)
Set the value of list. |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, 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 |
SimpleListModel
public SimpleListModel(java.util.LinkedList list)
getElementAt
public java.lang.Object getElementAt(int i)
- Return the i'th parameter of the list
- Specified by:
getElementAt
in interface javax.swing.ListModel
- Overrides:
getElementAt
in class javax.swing.AbstractListModel
- Parameters:
i
- a value of type 'int'- Returns:
- a value of type 'Object'
getSize
public int getSize()
- Size of the list
- Specified by:
getSize
in interface javax.swing.ListModel
- Overrides:
getSize
in class javax.swing.AbstractListModel
- Returns:
- a value of type 'int'
remove
public void remove(int indexFrom,
int indexTo)
append
public void append(java.lang.Object newValue)
refreshView
public void refreshView()
getList
public java.util.LinkedList getList()
- Get the value of list.
- Returns:
- Value of list.
setList
public void setList(java.util.LinkedList v)
- Set the value of list.
- Parameters:
v
- Value to assign to list.
Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.