Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model Tester
11g Release 2 (11.1.2.2.0)

E17487-03


oracle.jbo.ui.main
Class JboListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by oracle.jbo.ui.main.JboListModel

All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class JboListModel
extends javax.swing.AbstractListModel

This class implements the java.util.ArrayList API and notifies the JListDataModel listeners when changes occur. Presently it delegates to a ArrayList, in a future release it will be a real Collection implementation.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.

Version:
INTERNAL
See Also:
Serialized Form

Field Summary

 

Fields inherited from class javax.swing.AbstractListModel
listenerList

 

Constructor Summary
JboListModel()
           

 

Method Summary
 void add(int index, java.lang.Object element)
           
 void add(java.lang.Object element)
           
 void addAll(java.util.ArrayList v)
           
 int addAllNoNotify(java.util.ArrayList v)
           
 void addAllNoNotifyUpdate(javax.swing.JList listbox, int origSize, int oldSize)
           
 void addElement(java.lang.Object obj)
           
 void addElementAt(java.lang.Object obj, int index)
           
 int capacity()
           
 void clear()
           
 boolean contains(java.lang.Object elem)
           
 void copyInto(java.lang.Object[] anArray)
           
 java.lang.Object elementAt(int index)
           
 java.util.Enumeration elements()
           
 void ensureCapacity(int minCapacity)
           
 java.lang.Object firstElement()
           
 java.lang.Object get(int index)
           
 java.lang.Object getElementAt(int index)
           
 int getSize()
           
 int indexOf(java.lang.Object elem)
           
 int indexOf(java.lang.Object elem, int index)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 java.lang.Object lastElement()
           
 int lastIndexOf(java.lang.Object elem)
           
 int lastIndexOf(java.lang.Object elem, int index)
           
 java.lang.Object remove(int index)
           
 void removeAllElements()
           
 int removeAllElementsNoNotify()
           
 boolean removeElement(java.lang.Object obj)
           
 void removeElementAt(int index)
           
 void removeRange(int fromIndex, int toIndex)
           
 java.lang.Object set(int index, java.lang.Object element)
           
 void setComparator(java.util.Comparator comp)
           
 void setElementAt(java.lang.Object obj, int index)
           
 void setSize(int newSize)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.String toString()
           
 void trimToSize()
           

 

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, wait, wait, wait

 

Constructor Detail

JboListModel

public JboListModel()

Method Detail

getSize

public int getSize()

getElementAt

public java.lang.Object getElementAt(int index)

copyInto

public void copyInto(java.lang.Object[] anArray)

trimToSize

public void trimToSize()

ensureCapacity

public void ensureCapacity(int minCapacity)

setSize

public void setSize(int newSize)

capacity

public int capacity()

size

public int size()

isEmpty

public boolean isEmpty()

elements

public java.util.Enumeration elements()

iterator

public java.util.Iterator iterator()

contains

public boolean contains(java.lang.Object elem)

indexOf

public int indexOf(java.lang.Object elem)

indexOf

public int indexOf(java.lang.Object elem,
                   int index)

lastIndexOf

public int lastIndexOf(java.lang.Object elem)

lastIndexOf

public int lastIndexOf(java.lang.Object elem,
                       int index)

elementAt

public java.lang.Object elementAt(int index)

firstElement

public java.lang.Object firstElement()

lastElement

public java.lang.Object lastElement()

setElementAt

public void setElementAt(java.lang.Object obj,
                         int index)

removeElementAt

public void removeElementAt(int index)

addElementAt

public void addElementAt(java.lang.Object obj,
                         int index)

addElement

public void addElement(java.lang.Object obj)

removeElement

public boolean removeElement(java.lang.Object obj)

removeAllElements

public void removeAllElements()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toArray

public java.lang.Object[] toArray()

get

public java.lang.Object get(int index)

set

public java.lang.Object set(int index,
                            java.lang.Object element)

add

public void add(java.lang.Object element)

add

public void add(int index,
                java.lang.Object element)

remove

public java.lang.Object remove(int index)

clear

public void clear()

removeRange

public void removeRange(int fromIndex,
                        int toIndex)

addAll

public void addAll(java.util.ArrayList v)

addAllNoNotify

public int addAllNoNotify(java.util.ArrayList v)

removeAllElementsNoNotify

public int removeAllElementsNoNotify()

addAllNoNotifyUpdate

public void addAllNoNotifyUpdate(javax.swing.JList listbox,
                                 int origSize,
                                 int oldSize)

setComparator

public void setComparator(java.util.Comparator comp)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model Tester
11g Release 2 (11.1.2.2.0)

E17487-03


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