public interface ItemIDListener extends IItemListener
The ItemIDListener interface is a compromise between ItemListListener and ItemListener. It provides more information about each event than ItemListListener, but not as much information as ItemListener. It is more expensive to use than ItemListListener, but less expensive than ItemListener (particularly with respect to memory usage). For this reason, ItemIDListener may be the listener of choice for applications that must register listeners for multiple item types across many views.
Note that an application will not receive ItemID events for items that the logged-in user does not have permission to access.
Modifier and Type | Method and Description |
---|---|
void |
itemAdded(ItemIDEvent e)
Invoked when an Item is added to a view.
|
void |
itemChanged(ItemIDEvent e)
Invoked when the properties of an Item have changed.
|
void |
itemRemoved(ItemIDEvent e)
Invoked when an Item is removed from a view.
|
void itemAdded(ItemIDEvent e)
An itemAdded event is triggered whenever an Item with a new ItemID appears in the view. This might be because a new item was created; because an item was moved or shared in from another view; etc.
ItemIDEvent.getItemID() provides the ItemID of the item that was added.
If an item is moved from one folder to another folder within the same view, itemAdded and itemRemoved events are both triggered. The order in which they are triggered is unpredictable.
If the logged-in user does not have access rights to see the item in its new context, then no event is triggered.
e
- The corresponding ItemID event.ItemIDEvent
void itemChanged(ItemIDEvent e)
The changed properties may include Item-level properties (such as ConfigurationTime or BranchOnChange) or Object-level properties that are shared across references (such as CreatedUserID or ModifiedTime).
ItemIDEvent.getItemID() provides the ItemID of the item whose properties have changed.
e
- The corresponding ItemID event.ItemIDEvent
void itemRemoved(ItemIDEvent e)
An itemRemoved event is triggered whenever an Item disappears from the view. This might be because an item was deleted; because an item was moved to another view; etc.
ItemIDEvent.getItemID() provides the ItemID of the item that was removed.
If an item is moved from one folder to another folder within the same view, itemAdded and itemRemoved events are both triggered. The order in which they are triggered is unpredictable.
e
- The corresponding ItemID event.ItemIDEvent
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.