© 2006-2007 ETH Zurich

org.ximtec.igesture.geco.util
Class SortedListModel<T>

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.ximtec.igesture.geco.util.SortedListModel<T>
All Implemented Interfaces:
Serializable, ListModel

public class SortedListModel<T>
extends AbstractListModel

Provide a model for sorted JList

Version:
0.9, Nov 22, 2007
Author:
Michele Croci, mcroci@gmail.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SortedListModel()
           
SortedListModel(Comparator<T> c)
           
 
Method Summary
 void add(T element)
           
 void addAll(List<T> elements)
           
 void clear()
           
 boolean contains(Object element)
           
 Object firstElement()
           
 Object getElementAt(int index)
           
 int getSize()
           
 Iterator<T> iterator()
           
 Object lastElement()
           
 boolean removeElement(Object element)
           
 
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

SortedListModel

public SortedListModel(Comparator<T> c)

SortedListModel

public SortedListModel()
Method Detail

getSize

public int getSize()

getElementAt

public Object getElementAt(int index)

add

public void add(T element)

addAll

public void addAll(List<T> elements)

clear

public void clear()

contains

public boolean contains(Object element)

firstElement

public Object firstElement()

iterator

public Iterator<T> iterator()

lastElement

public Object lastElement()

removeElement

public boolean removeElement(Object element)

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.