Class GenericListModel<E>
java.lang.Object
javax.swing.AbstractListModel<E>
javax.swing.DefaultListModel<E>
fr.ifremer.isisfish.ui.models.common.GenericListModel<E>
- Type Parameters:
E
- generic type
- All Implemented Interfaces:
Serializable
,ListModel<E>
Model pour pour la representation d'une liste de generic type.
Utilisation dans les
JList
.- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
ConstructorDescriptionEmpty constructor.GenericListModel
(List<E> elementList) Constructor with export list. -
Method Summary
Modifier and TypeMethodDescriptiongetElementAt
(int index) Get E list.int
getSize()
void
setElementList
(List<E> elementList) Set E list.Methods inherited from class javax.swing.DefaultListModel
add, addAll, addAll, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Field Details
-
elementList
E list.
-
-
Constructor Details
-
GenericListModel
public GenericListModel()Empty constructor. -
GenericListModel
Constructor with export list.- Parameters:
elementList
- E list
-
-
Method Details
-
getElementList
Get E list.- Returns:
- E list
-
setElementList
Set E list.- Parameters:
elementList
- E list to set
-
getElementAt
- Specified by:
getElementAt
in interfaceListModel<E>
- Overrides:
getElementAt
in classDefaultListModel<E>
-
getSize
public int getSize()
-