|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.editor.insight.TooltipDataItemListModel
public class TooltipDataItemListModel
The TooltipDataItemListModel
is a basic implementation of an immutable ListModel which just takes an array of TooltipDataItem objects (or its subclasses) and can be used as the ListModel for a JList. This class makes a copy of the array (but not the objects) passed to it in case the array is modified.
Constructor Summary | |
---|---|
TooltipDataItemListModel(TooltipDataItem[] data) Constructs a new TooltipDataItemListModel using the data elements specified. |
Method Summary | |
---|---|
void |
addListDataListener(javax.swing.event.ListDataListener listener) Add a listener to the list that's notified each time a change to the data model occurs. |
java.lang.Object |
getElementAt(int index) Returns the value at the specified index. |
int |
getSize() Returns the length of the list. |
void |
removeListDataListener(javax.swing.event.ListDataListener listener) Remove a listener from the list that's notified each time a change to the data model occurs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TooltipDataItemListModel(TooltipDataItem[] data)
TooltipDataItemListModel
using the data elements specified. A copy of the array will be made in case the original array is changed. This will by default, sort the data passed in through the list.
data
- the array of TooltipDataItem's to make up the modelMethod Detail |
---|
public int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
index
- the index of the value to getpublic void addListDataListener(javax.swing.event.ListDataListener listener)
addListDataListener
in interface javax.swing.ListModel
listener
- the ListDataListenerpublic void removeListDataListener(javax.swing.event.ListDataListener listener)
removeListDataListener
in interface javax.swing.ListModel
listener
- the ListDataListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |