|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.infobus.DataItemChangeManagerSupport
This class implements the methods defined by DataItemChangeManager for managing event listeners, and adds specialized methods for firing each type of change notification. A class that implements DataItemChangeManager can delegate the work for its methods to the methods defined here, and the various methods in access interfaces that allow changes to data can fire events using methods defined here.
DataItemChangeManager
Constructor Summary | |
DataItemChangeManagerSupport(java.lang.Object source)
The constructor initializes an event indicating a change to a data item. |
Method Summary | |
void |
addDataItemChangeListener(DataItemChangeListener listener)
Adds a change listener as requested by a consumer or other InfoBus component. |
void |
fireItemAdded(java.lang.Object changedItem,
java.lang.Object changedCollection,
InfoBusPropertyMap propertyMap)
This method is called when one or more new items are being added to a collection. |
void |
fireItemDeleted(java.lang.Object changedItem,
java.lang.Object changedCollection,
InfoBusPropertyMap propertyMap)
This method is called when one or more items are being removed from a collection. |
void |
fireItemRevoked(java.lang.Object changedItem,
InfoBusPropertyMap propertyMap)
This method is called when an item or collection is no longer available, such as when the data source is going offline. |
void |
fireItemShapeChanged(java.lang.Object changedItem,
InfoBusPropertyMap propertyMap)
This method should be called when a collection data item changes shape. |
void |
fireItemValueChanged(java.lang.Object changedItem,
InfoBusPropertyMap propertyMap)
This method is called when an item, usually an ImmediateAccess, changes value. |
void |
fireRowsetCursorMoved(java.lang.Object changedItem,
InfoBusPropertyMap propertyMap)
This method should be called when a rowset's cursor has moved to a different row. |
void |
removeAllListeners()
This method permits the owner of the data item using the DataItemChangeManagerSupport to force removal of all registered listeners. |
void |
removeDataItemChangeListener(DataItemChangeListener listener)
Removes a change listener as requested by a consumer or other InfoBus component. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DataItemChangeManagerSupport(java.lang.Object source)
source
- the data item object that implements the DataItemChangeManager interface,
representing the source of the event. When an instance of this class is a member
field for a data item, the source is a reference to the outer class that
contains the instance of this class.Method Detail |
public void addDataItemChangeListener(DataItemChangeListener listener)
listener
- the change listener object to be registeredpublic void removeDataItemChangeListener(DataItemChangeListener listener)
listener
- the change listener object to be unregisteredpublic void removeAllListeners()
public void fireItemValueChanged(java.lang.Object changedItem, InfoBusPropertyMap propertyMap)
changedItem
- the Object whose value changed.propertyMap
- either null or additional information about the change.public void fireItemAdded(java.lang.Object changedItem, java.lang.Object changedCollection, InfoBusPropertyMap propertyMap)
changedItem
- the Object which was added, or null to indicate that
more than one item was added.changedCollection
- the collection that gained a new item.propertyMap
- either null or additional information about the change.public void fireItemDeleted(java.lang.Object changedItem, java.lang.Object changedCollection, InfoBusPropertyMap propertyMap)
changedItem
- the Object which was removed, or null to indicate that
more than one item was removed.changedCollection
- the collection that lost an item.propertyMap
- either null or additional information about the change.public void fireItemRevoked(java.lang.Object changedItem, InfoBusPropertyMap propertyMap)
changedItem
- the item or collection that is being revoked.propertyMap
- either null or additional information about the change.public void fireRowsetCursorMoved(java.lang.Object changedItem, InfoBusPropertyMap propertyMap)
changedItem
- the rowset whose cursor changed.propertyMap
- either null or additional information about the change.public void fireItemShapeChanged(java.lang.Object changedItem, InfoBusPropertyMap propertyMap)
changedItem
- the collection data item whose extents changed.propertyMap
- either null or additional information about the change.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |