|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel oracle.javatools.ui.list.SimpleListModel<T> oracle.javatools.controls.SimpleListModel<T>
public class SimpleListModel<T>
A simple list model based on a delegate java.util.List. The model contains utility methods for moving single elements up and down in the list and adding / removing elements firing the necessary events.
Also very useful is the removeIndices(int[]) method. This is a highly optimized way to remove a set of items from the model firing only the minimum necessary events for performance reasons. It's handy to use this if you have a JList which supports removal of a multiple selection.
The SimpleListModel.asList()
method returns an object that implements the
List
interface. Changes you make to this list will
automatically fire events to listeners of this list model. This is
convenient if you want to pass a list model down to code that uses the
collections framework.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
SimpleListModel()
Deprecated. |
|
SimpleListModel(java.util.List<T> list)
Deprecated. |
Method Summary |
---|
Methods inherited from class oracle.javatools.ui.list.SimpleListModel |
---|
addElement, addElements, asList, changed, changed, getElementAt, getSize, insertAt, iterator, moveBottom, moveDown, moveTop, moveUp, removeAll, removeElement, removeIndices |
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 |
---|
public SimpleListModel()
public SimpleListModel(java.util.List<T> list)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |