Package wt.clients.folderexplorer
Class FolderBusinessObject
java.lang.Object
wt.clients.beans.explorer.WTBusinessObject
wt.clients.folderexplorer.FolderBusinessObject
- All Implemented Interfaces:
Serializable,Explorable,Identifiable,ReferenceHolder
Class
Supported API: true
Extendable: false
FolderBusinessObject provides a wrapper class for
objects that appear in the WindchillExplorer. This class
is used as a wrapper for all objects that are Folders.
This class is necessary because the WTExplorer, which is
the basis for the WindchillExplorer, manipulates
WTBusinessObjects.
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFolderBusinessObject(String identity, Folder folder) Constructor for classFolderBusinessObject. -
Method Summary
Modifier and TypeMethodDescriptionMethodgetContentsis invoked by theWTExplorerin response to aFolderbeing selected in the treeview.MethodgetDetailsretrieves all of the folder contents of theFolderwrapped by this object.Returns theFolderobject that is being wrapped by this object.getUses()MethodgetUsesis invoked by theWTExplorerwhen a node in the treeview is expanded.booleanMethodisEqualis a convenience method to determine if a givenFolderobject is the same object as theFolderobject being wrapped by this object.voidSets theFolderobject that is being wrapped by this object.
-
Constructor Details
-
FolderBusinessObject
Constructor for classFolderBusinessObject.- Parameters:
identity- theStringused to identify this objectfolder- theFolderobject that is being wrapped by this object- See Also:
-
wt.clients.beans.WTBusinessObject
Supported API: true
-
-
Method Details
-
getFolder
Returns theFolderobject that is being wrapped by this object.- Returns:
- the
Folderobject wrapped by this object - See Also:
-
setFolder
Sets theFolderobject that is being wrapped by this object.- Parameters:
folder- theFolderobject wrapped by this object- See Also:
-
getContents
MethodgetContentsis invoked by theWTExplorerin response to aFolderbeing selected in the treeview. This method retrieves all of the contents of theFolderobject wrapped by this object to be displayed in the detail view of the Windchill Explorer.- Specified by:
getContentsin interfaceExplorable- Overrides:
getContentsin classWTBusinessObject- Returns:
- an Array of
Explorableobjects which represent the contents of theFolderobject wrapped by this object - Throws:
WTException- See Also:
-
getUses
MethodgetUsesis invoked by theWTExplorerwhen a node in the treeview is expanded. This method retrieves all of theFolderswhich are subfolders of theFolderobject wrapped by this object. The subfolders are wrapped asFolderBusinessObjects.- Specified by:
getUsesin interfaceExplorable- Overrides:
getUsesin classWTBusinessObject- Returns:
- an array of
Explorableobjects which contain theFoldersthat are subfolders of theFolderwrapped by this object - See Also:
-
getDetails
MethodgetDetailsretrieves all of the folder contents of theFolderwrapped by this object. The folder contents are wrapped asFolderedBusinessObjects. BothSubFoldersandFolderEntryobjects that are contained in thisFolderare returned.- Returns:
- an array of
WTBusinessObjectswhich contain the folder contents of theFolderwrapped by this object - Throws:
WTException- See Also:
-
isEqual
MethodisEqualis a convenience method to determine if a givenFolderobject is the same object as theFolderobject being wrapped by this object. Note that this method is not checking if the twoFolderobjects have the same values, but rather that the two objects are references to the sameFolderobject.- Parameters:
folder- theFolderobject to be compared for equality with theFolderwrapped by this object- Returns:
- if
true, the givenFolderand theFolderwrapped by this object reference the sameFolderobject
Supported API: true
-