|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.starteam.events.ItemEvent
public final class ItemEvent
An event triggered whenever an Item is added, moved, changed or deleted in a View. An application must enable MPX to receive this event
ItemListener,
View.addItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type),
Folder.addItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type, int),
ViewMemberListManager.addItemListener(com.starteam.events.IItemListener),
Serialized Form| Method Summary | |
|---|---|
Item |
getNewItem()
Gets the Item in its new state. |
Item |
getOldItem()
Gets the Item in its old state. |
java.lang.String |
toString()
Gets a short description of this ItemEvent. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Item getNewItem()
Used in itemAdded(), itemMoved() and itemChanged() events. In itemRemoved() events, getNewItem() returns null.
Item.getParentItem() will return a valid parent Folder object. For performance reasons, the same Folder object may be modified and re-used in subsequent events. If an application wants to modify the Folder, or save its state for later use, it should make its own private copy.
If an application wants to refresh the Items associated with the original Folder object, it must do so by explicitly calling Folder.refreshItems().
ItemEvent.getOldItem(),
Item,
Folder.refreshItems(com.starteam.Item.Type, com.starteam.PropertyCollection, int)public Item getOldItem()
Used in itemChanged(), itemMoved() and itemRemoved() events. In itemAdded() events, getOldItem() returns null.
Item.getParentItem() will return a valid parent Folder object. For performance reasons, the same Folder object may be modified and re-used in subsequent events. If an application wants to modify the Folder, or save its state for later use, it should make its own private copy.
ItemEvent.getNewItem(),
Itempublic java.lang.String toString()
toString in class java.util.EventObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||