de.matthiasmann.twl.model
Class SimpleChangableListModel<T>

java.lang.Object
  extended by de.matthiasmann.twl.model.AbstractListModel<T>
      extended by de.matthiasmann.twl.model.SimpleListModel<T>
          extended by de.matthiasmann.twl.model.SimpleChangableListModel<T>
Type Parameters:
T - The type of the list entries
All Implemented Interfaces:
ListModel<T>

public class SimpleChangableListModel<T>
extends SimpleListModel<T>

A simple list model which manages it's content and provides method to modify that content.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.matthiasmann.twl.model.ListModel
ListModel.ChangeListener
 
Constructor Summary
SimpleChangableListModel()
           
SimpleChangableListModel(java.util.Collection<T> content)
           
SimpleChangableListModel(T... content)
           
 
Method Summary
 void addElement(T element)
           
 void addElements(java.util.Collection<T> elements)
           
 void addElements(T... elements)
           
 void clear()
           
 int findElement(java.lang.Object element)
           
 T getEntry(int index)
           
 int getNumEntries()
           
 void insertElement(int idx, T element)
           
 void insertElements(int idx, java.util.Collection<T> elements)
           
 void insertElements(int idx, T... elements)
           
 T removeElement(int idx)
           
 T setElement(int idx, T element)
           
 
Methods inherited from class de.matthiasmann.twl.model.SimpleListModel
getEntryTooltip, matchPrefix
 
Methods inherited from class de.matthiasmann.twl.model.AbstractListModel
addChangeListener, fireAllChanged, fireEntriesChanged, fireEntriesDeleted, fireEntriesInserted, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleChangableListModel

public SimpleChangableListModel()

SimpleChangableListModel

public SimpleChangableListModel(java.util.Collection<T> content)

SimpleChangableListModel

public SimpleChangableListModel(T... content)
Method Detail

getEntry

public T getEntry(int index)

getNumEntries

public int getNumEntries()

addElement

public void addElement(T element)

addElements

public void addElements(java.util.Collection<T> elements)

addElements

public void addElements(T... elements)

insertElement

public void insertElement(int idx,
                          T element)

insertElements

public void insertElements(int idx,
                           java.util.Collection<T> elements)

insertElements

public void insertElements(int idx,
                           T... elements)

removeElement

public T removeElement(int idx)

setElement

public T setElement(int idx,
                    T element)

findElement

public int findElement(java.lang.Object element)

clear

public void clear()