|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.starteam.events.ItemUpdateEvent
public final class ItemUpdateEvent
An event triggered whenever an Item is added, moved, changed or deleted in a View. events are triggered by explicit operations performed by the client application MPX is not required to receive item update events
ItemUpdateListener,
View.addItemUpdateListener(com.starteam.events.ItemUpdateListener, com.starteam.Item.Type),
Folder.addItemUpdateListener(com.starteam.events.ItemUpdateListener, com.starteam.Item.Type, int),
ViewMemberListManager.addItemUpdateListener(com.starteam.events.ItemUpdateListener),
Serialized Form| Constructor Summary | |
|---|---|
ItemUpdateEvent(Item oldItem,
Item newItem)
Constructs a new ItemUpdateEvent. |
|
| 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 ItemUpdateEvent. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ItemUpdateEvent(Item oldItem,
Item newItem)
oldItem - The item in its old state, or null.newItem - The item in its new state, or null.| 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().
ItemUpdateEvent.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.
ItemUpdateEvent.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 | ||||||||