|
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
ColumnModelSupport provides a JFC's ListModel implementation which gets its items from a infobus ScrollableRowsetAccess.
ColumnModel binds itself to the given column in a ScrollableRowsetAccess dataItem and provides a read-only access to all the column values.
| Field Summary | |
protected boolean |
bDisableEvent
|
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
ColumnModelSupport(Control control)
Constructs a ColumnModelSupport object |
|
| Method Summary | |
protected int |
_findColumnIndex(java.lang.String columnName)
|
protected java.lang.Object |
_getItemFromCursor(int rowIndex,
int colIndex)
|
protected boolean |
_isRowChanged(javax.infobus.DataItemValueChangedEvent e)
|
protected boolean |
_isViewRefreshed(javax.infobus.DataItemValueChangedEvent e)
|
protected void |
_releaseResourcesInternal(InfoBusManagerReleaseEvent e)
|
void |
addInfoBusPropertyListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener that will be alerted whenever the InfoBusMember's setInfoBus method is called and not vetoed. |
void |
addInfoBusVetoableListener(java.beans.VetoableChangeListener l)
Adds a VetoableChangeListener to the list of listeners that will be alerted whenever the InfoBusMember's setInfoBus method is called. |
void |
available(java.lang.String name,
java.lang.Object publishedObject)
|
void |
dataItemAdded(javax.infobus.DataItemAddedEvent e)
Indicates that a new item was added to the bound aggregate data item (e.g. |
void |
dataItemAvailable(javax.infobus.InfoBusItemAvailableEvent event)
This method is called by the InfoBus class on behalf of a data producer that is announcing the availability of a new data item by name. |
void |
dataItemDeleted(javax.infobus.DataItemDeletedEvent e)
Indicates that an item was deleted from the bound aggregate data item (e. |
void |
dataItemRevoked(javax.infobus.DataItemRevokedEvent e)
Indicates that the bound data item (and its sub-items, if any) has been revoked, and is temporarily unavailable. |
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. |
void |
dataItemValueChanged(javax.infobus.DataItemValueChangedEvent e)
Indicates a changed value in the bound data item. |
protected javax.infobus.ArrayAccess |
getArrayAccess()
|
java.lang.String |
getDataItemName()
Gets the name of the dataItem this model uses to get its list of values. |
java.lang.Object |
getElementAt(int index)
Get the item at the specifed 0 based index |
javax.infobus.InfoBus |
getInfoBus()
Gets the infobus this model is currently connected to. |
java.lang.String |
getInfoBusName()
Returns name of the infobus this model is connected to. |
protected javax.infobus.ScrollableRowsetAccess |
getRowsetAccess()
|
int |
getSelection()
Get the 0 based cursor position of the ScrollableRowsetAccess this model is bound to |
int |
getSize()
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
This method gets called when the object's InfoBus property is changed. |
void |
releaseResources(InfoBusManagerReleaseEvent e)
A signalling method used to indicate the the control should free all resources and unregister any listeners that it has registered. |
void |
removeInfoBusPropertyListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the list of listeners requesting notification of an InfoBus change. |
void |
removeInfoBusVetoableListener(java.beans.VetoableChangeListener l)
Removes a VetoableChangeListener from the list of listeners requesting notification of an InfoBus change. |
void |
revoked(java.lang.String name,
java.lang.Object publishedObject)
|
protected void |
rowsAdded(int startIndex,
int count)
|
protected void |
rowsAvailable()
|
protected void |
rowsChanged(int startIndex,
int count)
|
protected void |
rowsDeleted(int startIndex,
int count)
|
void |
rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent e)
Indicates that the cursor for the bound RowsetAccess data item has changed rows. |
protected void |
rowsRevoked()
|
void |
setDataItemName(java.lang.String dataItemName)
Specifies the name of the dataItem this model uses to get its list of values. |
void |
setInfoBus(javax.infobus.InfoBus infobus)
Specifies the infobus this model should be connected to. |
void |
setInfoBusName(java.lang.String infoBusName)
Specifies name of the new infobus this model should be connected. |
void |
setSelection(int selection)
Convenience method to move the cursor of the bound ScrollableRowsetAccess to the specified position |
| 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 |
| Field Detail |
protected boolean bDisableEvent
| Constructor Detail |
public ColumnModelSupport(Control control)
| Method Detail |
public java.lang.String getInfoBusName()
public void setInfoBusName(java.lang.String infoBusName)
The model leaves the previous infobus before connecting to the given infobus.
public void releaseResources(InfoBusManagerReleaseEvent e)
InfoBusManagerListener
releaseResources in interface InfoBusManagerListenerprotected void _releaseResourcesInternal(InfoBusManagerReleaseEvent e)
public void setDataItemName(java.lang.String dataItemName)
public java.lang.String getDataItemName()
public int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic void setSelection(int selection)
selection - 0 based, new cursor position.public int getSelection()
protected int _findColumnIndex(java.lang.String columnName)
protected java.lang.Object _getItemFromCursor(int rowIndex,
int colIndex)
public void dataItemValueChanged(javax.infobus.DataItemValueChangedEvent e)
ColumnModelSupport notifies its listeners upon receiving this event.
dataItemValueChanged in interface javax.infobus.DataItemChangeListenerDataItemChangeListener.dataItemValueChanged(javax.infobus.DataItemValueChangedEvent)public void dataItemAdded(javax.infobus.DataItemAddedEvent e)
A reference to the data item that was added, and a reference to the one that gained it, can be obtained from the event.
ColumnModelSupport notifies its listeners upon receiving this event.
dataItemAdded in interface javax.infobus.DataItemChangeListenerDataItemChangeListener.dataItemAdded(javax.infobus.DataItemAddedEvent)public void dataItemDeleted(javax.infobus.DataItemDeletedEvent e)
A reference to the data item that was deleted, and a reference to the one that lost it, can be obtained from the event.
ColumnModelSupport notifies its listeners upon receiving this event.
dataItemDeleted in interface javax.infobus.DataItemChangeListenerDataItemChangeListener.dataItemDeleted(javax.infobus.DataItemDeletedEvent)public void dataItemRevoked(javax.infobus.DataItemRevokedEvent e)
A reference to the data item that was revoked can be obtained from the event.
ColumnModelSupport notifies its listeners upon receiving this event.
dataItemRevoked in interface javax.infobus.DataItemChangeListenerDataItemChangeListener.dataItemRevoked(javax.infobus.DataItemRevokedEvent)public void rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent e)
A reference to the rowset data item can be obtained from the event.
ColumnModelSupport notifies its listeners upon receiving this event.
rowsetCursorMoved in interface javax.infobus.DataItemChangeListenerDataItemChangeListener.rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent)
public void available(java.lang.String name,
java.lang.Object publishedObject)
available in interface oracle.dacf.rp.Consumer
public void revoked(java.lang.String name,
java.lang.Object publishedObject)
revoked in interface oracle.dacf.rp.Consumerpublic void dataItemAvailable(javax.infobus.InfoBusItemAvailableEvent event)
dataItemAvailable in interface javax.infobus.InfoBusDataConsumerevent - The event.public void dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent event)
dataItemRevoked in interface javax.infobus.InfoBusDataConsumerevent - The event.public void propertyChange(java.beans.PropertyChangeEvent event)
The object is removed as a data consumer from its previous InfoBus, and is added as a consumer to its new InfoBus.
propertyChange in interface java.beans.PropertyChangeListenerevent - The event.public void addInfoBusPropertyListener(java.beans.PropertyChangeListener l)
addInfoBusPropertyListener in interface javax.infobus.InfoBusMemberl - the PropertyChangeListener to be addedpublic void removeInfoBusPropertyListener(java.beans.PropertyChangeListener l)
removeInfoBusPropertyListener in interface javax.infobus.InfoBusMemberl - the listener to be removedpublic void addInfoBusVetoableListener(java.beans.VetoableChangeListener l)
addInfoBusVetoableListener in interface javax.infobus.InfoBusMemberl - the VetoableChangeListener to be addedpublic void removeInfoBusVetoableListener(java.beans.VetoableChangeListener l)
removeInfoBusVetoableListener in interface javax.infobus.InfoBusMemberl - the listener to be removedpublic javax.infobus.InfoBus getInfoBus()
getInfoBus in interface javax.infobus.InfoBusMember
public void setInfoBus(javax.infobus.InfoBus infobus)
throws java.beans.PropertyVetoException
setInfoBus in interface javax.infobus.InfoBusMemberinfobus - to connect to.
java.beans.PropertyVetoException - thrown if any of the listeners
vetoes this change.protected boolean _isViewRefreshed(javax.infobus.DataItemValueChangedEvent e)
protected boolean _isRowChanged(javax.infobus.DataItemValueChangedEvent e)
protected javax.infobus.ScrollableRowsetAccess getRowsetAccess()
protected javax.infobus.ArrayAccess getArrayAccess()
protected void rowsAvailable()
protected void rowsRevoked()
protected void rowsAdded(int startIndex,
int count)
protected void rowsDeleted(int startIndex,
int count)
protected void rowsChanged(int startIndex,
int count)
|
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.