|
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.CachedColumnModelSupport
oracle.dacf.control.swing.ComboBoxDataSource
ComboBoxDataSource provides a JFC's ComboBoxModel implementation which gets its items from a infobus ScrollableRowsetAccess.
The ComboBoxDataSource provides support for performing a lookup between what is displayed in the list to what is updated. ColumnModelSupport - holds the 'value' item in update mode.
Nested Class Summary | |
static interface |
ComboBoxDataSource.ValueLocator
|
Field Summary | |
protected boolean |
_cachedSelectedItemInvalid
|
protected ComboBoxControl |
_comboBox
|
protected javax.infobus.ImmediateAccess |
_detailItem
|
protected java.lang.String |
_listValueDataItemName
|
protected javax.infobus.ScrollableRowsetAccess |
_rowsetForUpdateableItem
|
protected javax.infobus.ImmediateAccess |
_selectedItem
|
protected ComboBoxDataSource.ValueLocator |
_valueLocator
|
Fields inherited from class oracle.dacf.control.swing.ColumnModelSupport |
bDisableEvent |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
ComboBoxDataSource(ComboBoxControl comboBox)
Constructor |
|
ComboBoxDataSource(ComboBoxControl comboBox,
java.lang.String listDataItemName)
Constructor |
Method Summary | |
protected java.lang.Object |
_getUpdateableValue(int masterRowIndex)
|
protected int |
_itemToIndex(java.lang.Object o)
|
protected void |
_releaseResourcesInternal(InfoBusManagerReleaseEvent e)
|
protected void |
_syncSelectionWithDetailColumnValue(javax.infobus.ImmediateAccess item)
|
java.lang.String |
getListDataItemName()
Get the name of the dataItem being used for populating the list |
java.lang.String |
getListKeyDataItemName()
|
java.lang.String |
getListValueDataItemName()
|
java.lang.String |
getMode()
get the current mode |
java.lang.String |
getName(java.lang.Object newDataItem)
get the value of the data item as a string |
protected javax.infobus.ScrollableRowsetAccess |
getRowsetAccessForUpdateableItem()
|
java.lang.Object |
getSelectedItem()
get the selected item |
ComboBoxDataSource.ValueLocator |
getValueLocator()
|
protected void |
rowsAvailable()
|
protected void |
rowsRevoked()
|
void |
setListDataItemName(java.lang.String modelDataItemName)
Set the name of the dataItem to be used for populating the list |
void |
setListKeyDataItemName(java.lang.String diName)
|
void |
setListValueDataItemName(java.lang.String name)
|
void |
setSelectedIndex(int _newIndex)
change the selected index |
void |
setSelectedItem(java.lang.Object anObject)
|
protected void |
setSelectedItemInternal(javax.infobus.ImmediateAccess item)
|
void |
setValueLocator(ComboBoxDataSource.ValueLocator valueLocator)
ValueLocator is used to search in master rowset for a specific detail value |
java.lang.String |
toString()
get string representation |
Methods inherited from class oracle.dacf.control.swing.CachedColumnModelSupport |
findCachedItem, getElementAt, isCachingEnabled, revokeAllRows, rowsAdded, rowsChanged, setCachingEnabled |
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 |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, getElementAt, getSize, removeListDataListener |
Field Detail |
protected ComboBoxControl _comboBox
protected javax.infobus.ImmediateAccess _selectedItem
protected javax.infobus.ImmediateAccess _detailItem
protected javax.infobus.ScrollableRowsetAccess _rowsetForUpdateableItem
protected ComboBoxDataSource.ValueLocator _valueLocator
protected java.lang.String _listValueDataItemName
protected boolean _cachedSelectedItemInvalid
Constructor Detail |
public ComboBoxDataSource(ComboBoxControl comboBox)
comboBox
- a handle to the parent controlpublic ComboBoxDataSource(ComboBoxControl comboBox, java.lang.String listDataItemName)
comboBox
- a handle to the parent controllistDataItemName
- data item name for the comboMethod Detail |
public ComboBoxDataSource.ValueLocator getValueLocator()
public void setValueLocator(ComboBoxDataSource.ValueLocator valueLocator)
public void setListDataItemName(java.lang.String modelDataItemName)
public java.lang.String getListDataItemName()
public void setListKeyDataItemName(java.lang.String diName)
public java.lang.String getListKeyDataItemName()
public void setListValueDataItemName(java.lang.String name)
public java.lang.String getListValueDataItemName()
public java.lang.String getName(java.lang.Object newDataItem)
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem
in interface javax.swing.ComboBoxModel
protected java.lang.Object _getUpdateableValue(int masterRowIndex)
protected void _releaseResourcesInternal(InfoBusManagerReleaseEvent e)
_releaseResourcesInternal
in class CachedColumnModelSupport
public final void setSelectedIndex(int _newIndex)
_newIndex
- new indexpublic java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
protected void setSelectedItemInternal(javax.infobus.ImmediateAccess item)
public java.lang.String getMode()
protected void _syncSelectionWithDetailColumnValue(javax.infobus.ImmediateAccess item)
protected javax.infobus.ScrollableRowsetAccess getRowsetAccessForUpdateableItem()
protected int _itemToIndex(java.lang.Object o)
protected void rowsAvailable()
rowsAvailable
in class CachedColumnModelSupport
protected void rowsRevoked()
rowsRevoked
in class CachedColumnModelSupport
public java.lang.String toString()
|
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.