|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.util.InfoBusMemberHelper
oracle.dacf.control.ConsumerSupport
oracle.dacf.control.DataItemAccessHelper
This class provides support to help access a data item.
Field Summary |
Fields inherited from class oracle.dacf.util.InfoBusMemberHelper |
m_infoBus, m_propListeners, m_sourceRef, m_syncLock, m_vetoListeners |
Constructor Summary | |
DataItemAccessHelper()
Constructor |
Method Summary | |
protected void |
_setDataItem(java.lang.Object dataItem)
Binds to a data item. |
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. |
protected void |
dataItemPublished()
This method gets called wheneve the data item is published. |
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.Object |
getDataItem()
return the data item the object is currently bound to. |
java.lang.String |
getDataItemName()
|
java.lang.String |
getInfoBusName()
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
This method gets called when the object's InfoBus property is changed. |
void |
setDataItemName(java.lang.String dataItemName)
Sets the name of the InfoBus DataItem this object is bound to. |
void |
setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this transaction monitor is connected to. |
Methods inherited from class oracle.dacf.control.ConsumerSupport |
available, revoked |
Methods inherited from class oracle.dacf.util.InfoBusMemberHelper |
addInfoBusPropertyListener, addInfoBusVetoableListener, clearRef, getInfoBus, joinInfoBus, joinInfoBus, leaveInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataItemAccessHelper()
Method Detail |
public void dataItemAvailable(javax.infobus.InfoBusItemAvailableEvent event)
dataItemAvailable
in interface javax.infobus.InfoBusDataConsumer
public void dataItemRevoked(javax.infobus.InfoBusItemRevokedEvent event)
dataItemRevoked
in interface javax.infobus.InfoBusDataConsumer
event
- 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.PropertyChangeListener
event
- The event.public void setInfoBusName(java.lang.String infoBusName)
By default, the it is connected to the default InfoBus, named Control.DEFAULT_INFOBUS_NAME.
If the named InfoBus does not exist, it is created automatically.
infoBusName
- The name of the InfoBus to connect to.public java.lang.String getInfoBusName()
protected void dataItemPublished()
dataItemAvailable()
,
FindItemModelImpl
protected void _setDataItem(java.lang.Object dataItem)
_setDataItem
in class ConsumerSupport
dataItem
- The new data item to bind to.public void setDataItemName(java.lang.String dataItemName)
The DataItem with the given name is searched for on the InfoBus, and if found, is bound to this object.
If the object is already bound to a DataItem, it is unbound first.
dataItemName
- The name of the DataItem to bind to.getDataItem()
public java.lang.String getDataItemName()
public java.lang.Object getDataItem()
getDataItem
in class ConsumerSupport
|
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.