Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.controls
Class SimpleListModel<T>

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by oracle.javatools.ui.list.SimpleListModel<T>
          extended by oracle.javatools.controls.SimpleListModel<T>

All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<T>, javax.swing.ListModel

Deprecated. implementation moved to oracle.javatools.ui.list.SimpleListModel, this stub adds no new abilites and remains only for backwards compatibility.

public class SimpleListModel<T>
extends 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.

See Also:
Serialized Form

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

SimpleListModel

public SimpleListModel()
Deprecated. 

SimpleListModel

public SimpleListModel(java.util.List<T> list)
Deprecated. 

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.