|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.starteam.events.FolderEvent
public final class FolderEvent
An event triggered whenever a Folder is added, moved, changed or deleted in a View. An application must enable MPX to receive this event
FolderListener,
View.addFolderListener(com.starteam.events.IFolderListener),
Folder.addFolderListener(com.starteam.events.IFolderListener, int),
FolderListManager.addFolderListener(com.starteam.events.IFolderListener),
Serialized Form| Method Summary | |
|---|---|
Folder |
getNewFolder()
Gets the Folder in its new state. |
Folder |
getOldFolder()
Gets the Folder in its old state. |
java.lang.String |
toString()
Gets a short description of this FolderEvent. |
| 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 Folder getNewFolder()
Used in folderAdded(), folderMoved() and folderChanged() events. In folderRemoved() events, getNewFolder() null.
Returns a Folder object that is not a member of any View's folder hierarchy. There may be a Folder in the hierarchy with the same ItemID, but it would be a physically different object that is likely to have different properties.
Folder.getParentFolder() and Folder.getSubFolders() will return values that are correct as of the time the event was triggered. In fact, the entire Folder hierarchy is valid. For performance reasons, these same Folder objects may be modified and re-used in subsequent events. If an application wants to modify one of the Folder objects, or save its state for later use, it should make its own private copy.
If an application wants to refresh the Folders associated with the original View object, it must do so by explicitly calling View.refreshFolders().
FolderEvent.getOldFolder(),
Folder,
View.refreshFolders()public Folder getOldFolder()
Used in folderChanged(), folderMoved() and folderRemoved() events. In folderAdded() events, getOldFolder() returns null.
Returns a Folder object that is not a member of any View's folder hierarchy. There may be a Folder in the hierarchy with the same ItemID, but it would be a physically different object that is likely to have different properties.
Folder.getParentFolder() and Folder.getSubFolders() will return values that correctly represent the old state of the folder. In fact, the entire Folder hierarchy is valid. For performance reasons, these same Folder objects may be modified and re-used in subsequent events. If an application wants to modify one of the Folder objects, or save its state for later use, it should make its own private copy.
FolderEvent.getNewFolder(),
Folderpublic 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 | ||||||||