|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--com.starbase.starteam.ItemEvent
An event triggered whenever an Item is added, moved, changed or deleted in a View.
ItemListener,
View.addItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type),
Folder.addItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type, int),
ItemListManager.addItemListener(com.starbase.starteam.IItemListener),
Serialized Form| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
Item |
getNewItem()
Gets the Item in its new state. |
Item |
getOldItem()
Gets the Item in its old state. |
java.lang.Object |
getSource()
The object on which the Event initially occurred. |
int |
hashCode()
returns a unique hash for all instances of this type |
java.lang.String |
toString()
Gets a short description of this Event. |
| Methods inherited from class java.lang.Object |
getClass, 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(java.lang.String, java.lang.String[], 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.Object getSource()
getSource in class java.util.EventObjectpublic java.lang.String toString()
toString in class java.util.EventObjectpublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||