org.equanda.util.swing
Class JSortedListModel<ELEMENT>
java.lang.Object
javax.swing.AbstractListModel
org.equanda.util.swing.JSortedListModel<ELEMENT>
- All Implemented Interfaces:
- Serializable, ListModel
public class JSortedListModel<ELEMENT>
- extends AbstractListModel
Sorted List Model
- Author:
- NetRom team, Andrei Chiritescu
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSortedListModel
public JSortedListModel()
JSortedListModel
public JSortedListModel(ELEMENT[] data)
JSortedListModel
public JSortedListModel(ELEMENT[] data,
Comparator<ELEMENT> comparator)
JSortedListModel
public JSortedListModel(Collection<ELEMENT> data)
JSortedListModel
public JSortedListModel(Collection<ELEMENT> data,
Comparator<ELEMENT> comparator)
getSize
public int getSize()
getElementAt
public ELEMENT getElementAt(int index)
addElement
public void addElement(ELEMENT element)
addAll
public void addAll(ELEMENT[] elements)
addAll
public void addAll(List<ELEMENT> elements)
clear
public void clear()
contains
public boolean contains(ELEMENT element)
firstElement
public Object firstElement()
iterator
public Iterator iterator()
lastElement
public Object lastElement()
removeElement
public boolean removeElement(ELEMENT element)
getData
public Vector<ELEMENT> getData()
toArray
public ELEMENT[] toArray()
Copyright © 2007-2009. All Rights Reserved.