public final class FolderEvent
extends java.util.EventObject
Modifier and Type | Method and Description |
---|---|
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.
|
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()
,
Folder
public java.lang.String toString()
toString
in class java.util.EventObject
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.