|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
oracle.dacf.control.swing.ColumnModelSupport
oracle.dacf.control.swing.ListDataSource
ListDataSource provides a JFC's ListModel implementation which gets its items from a infobus ScrollableRowsetAccess.
ListDataSource binds itself to the given column in a ScrollableRowsetAccess dataItem and provides a read-only access to all the column values.
ListDataSource works with a JList. It listens on the JList's selection model and keeps the list selection and ScrollableRowsetAccess currency in sync.
Field Summary |
Fields inherited from class oracle.dacf.control.swing.ColumnModelSupport |
bDisableEvent |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
ListDataSource(javax.swing.JList list,
ListControl control)
Constructs a default ListDataSource for the given list |
Method Summary | |
void |
dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent event)
This method is called by the InfoBus class on behalf of a data producer that is revoking the availability of a previously announced data item. |
java.lang.String |
getName(java.lang.Object newDataItem)
get the value of the data item as a string |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Called when JList's selectionModel changes. |
void |
selectionChanged(java.lang.Object anObject)
Notification from a ListSelectionModel about the change in a selection.Used when it is thie to update |
java.lang.String |
toString()
obtain a string representation |
void |
valueChanged(javax.swing.event.ListSelectionEvent event)
Notification from a ListSelectionModel about the change in a selection. |
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 |
public ListDataSource(javax.swing.JList list, ListControl control)
Method Detail |
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class ColumnModelSupport
e
- The event.public void dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent event)
dataItemRevoked
in interface javax.infobus.InfoBusDataConsumer
dataItemRevoked
in class ColumnModelSupport
event
- The event.public void valueChanged(javax.swing.event.ListSelectionEvent event)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void selectionChanged(java.lang.Object anObject)
public java.lang.String toString()
public java.lang.String getName(java.lang.Object newDataItem)
newDataItem
- data item whose string value has to be obtained
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.