Class MyListModel<T>
- java.lang.Object
-
- javax.swing.AbstractListModel<T>
-
- org.processmining.specpp.prom.mvc.swing.MyListModel<T>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<T>,javax.swing.ListModel<T>
public class MyListModel<T> extends javax.swing.AbstractListModel<T> implements java.lang.Iterable<T>- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MyListModel()MyListModel(java.util.List<T> internal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(T item)voidappendAll(java.util.Collection<T> items)voidclear()TgetElementAt(int index)intgetSize()voidinsert(T item, int index)java.util.ListIterator<T>iterator()voidremove(int index)-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
MyListModel
public MyListModel()
-
MyListModel
public MyListModel(java.util.List<T> internal)
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSizein interfacejavax.swing.ListModel<T>
-
getElementAt
public T getElementAt(int index)
- Specified by:
getElementAtin interfacejavax.swing.ListModel<T>
-
append
public void append(T item)
-
appendAll
public void appendAll(java.util.Collection<T> items)
-
insert
public void insert(T item, int index)
-
clear
public void clear()
-
remove
public void remove(int index)
-
-