|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
wt.clients.folderexplorer.WindchillExplorerFrame
Class WindchillExplorerFrame
is a frame for browsing the
Cabinet-Folder hierarchy and viewing the contents of cabinets and
folders. The treeview on the left half of the frame displays the
hierarcy of cabinets and folders, while the detail list on the right
half of the frame displays the contents of a particular cabinet or
folder.
The WindchillExplorerFrame
supports numerous
interactions on folders and their contents, including creating,
updating, viewing, life cycle tasks, and version control.
The WindchillExplorerFrame
can be configured to be launched
with the treeview expanded to a particular folder, and the contents of
that folder displayed. E.g.
WindchillExplorerFrame frame = new WindchillExplorerFrame( selected_folder ); frame.show();
WTExplorer
,
wt.folder
,
Serialized FormNested Class Summary | |
class |
WindchillExplorerFrame.DateComparer
Deprecated. |
(package private) class |
WindchillExplorerFrame.ExpandToFolderThread
Deprecated. |
(package private) class |
WindchillExplorerFrame.InitCreateMenuThread
Deprecated. |
(package private) class |
WindchillExplorerFrame.InitializeCabinetThread
Deprecated. |
(package private) class |
WindchillExplorerFrame.InitializeExplorerThread
Deprecated. |
(package private) class |
WindchillExplorerFrame.MenuAction
Deprecated. |
class |
WindchillExplorerFrame.QueryFrame
Deprecated. Frame subclass used to display the QueryPanel. |
(package private) class |
WindchillExplorerFrame.QueryFrameWindowListener
Deprecated. |
(package private) class |
WindchillExplorerFrame.QueryListener
Deprecated. Inner class which subscribes as a listener to QueryPanelEvents generated by the QueryPanel . |
(package private) class |
WindchillExplorerFrame.ShowCabinetsThread
Deprecated. |
(package private) class |
WindchillExplorerFrame.SymAction
Deprecated. |
(package private) class |
WindchillExplorerFrame.SymWindow
Deprecated. |
(package private) class |
WindchillExplorerFrame.WindchillExplorerListener
Deprecated. Inner class which is subscribed as a listener to WTExplorerEvents generated by the WTExplorer
used in this frame. |
(package private) class |
WindchillExplorerFrame.WindchillExplorerRefreshListener
Deprecated. Inner class which is subscribed as a listener to RefreshEvents generated by the RefreshService . |
(package private) class |
WindchillExplorerFrame.WorkThread
Deprecated. Internal class used to launch work threads to perform context dependent or long running actions. |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
(package private) MenuItem |
aboutMenuItem
Deprecated. |
protected static int |
ADD_BASELINE
Deprecated. Defined constant to specify the mode used when manipulating a baseline. |
(package private) MenuItem |
addBaselineMenuItem
Deprecated. |
(package private) MenuItem |
augmentMenuItem
Deprecated. |
(package private) Menu |
baselineMenu
Deprecated. |
private SortedEnumeration |
cabinets
Deprecated. Maintains the top-level Cabinets displayed in the explorer. |
(package private) MenuItem |
changeIdentityMenuItem
Deprecated. |
(package private) static int |
CHECK_IN
Deprecated. |
protected static int |
CHECK_IN_THREAD
Deprecated. Static constants used to determine which action to invoke in the WorkThread. |
(package private) static int |
CHECK_OUT
Deprecated. |
protected static int |
CHECK_OUT_THREAD
Deprecated. |
protected static String |
CHECKIN
Deprecated. |
(package private) MenuItem |
checkInMenuItem
Deprecated. |
protected static String |
CHECKOUT
Deprecated. |
private boolean |
checkOutComplete
Deprecated. |
private Object |
checkOutLock
Deprecated. |
(package private) MenuItem |
checkOutMenuItem
Deprecated. |
protected com.objectspace.jgl.HashMap |
classesHashMap
Deprecated. HashMap maintaining the classes that can be created from the Windchill Explorer. |
private static String |
clipboardAction
Deprecated. |
(package private) MenuItem |
closeMenuItem
Deprecated. |
protected static int |
CONTENT_THREAD
Deprecated. |
private ThreadGroup |
contextGroup
Deprecated. Used in setting and getting the appropriate WTContext . |
private Object |
contextLock
Deprecated. |
protected static String |
COPY
Deprecated. |
(package private) MenuItem |
copyMenuItem
Deprecated. |
protected static int |
CREATE_THREAD
Deprecated. |
private boolean |
cursorsSet
Deprecated. |
protected static String |
CUT
Deprecated. |
(package private) MenuItem |
cutMenuItem
Deprecated. |
private static boolean |
DEBUG
Deprecated. Flag used to provide debugging messages. |
protected static String |
DELETE
Deprecated. |
(package private) MenuItem |
deleteMenuItem
Deprecated. |
(package private) Menu |
editMenu
Deprecated. |
protected static String |
ENTERPRISE_SEARCH
Deprecated. |
(package private) MenuBar |
explorerMenuBar
Deprecated. |
(package private) MenuItem |
explorerMenuItem
Deprecated. |
(package private) boolean |
fComponentsAdjusted
Deprecated. |
(package private) Menu |
fileMenu
Deprecated. |
protected static String |
GET
Deprecated. |
(package private) MenuItem |
getContentMenuItem
Deprecated. |
protected String[] |
headings
Deprecated. String array defining the headings which correspond to the columns displayed in the detail list of the explorer. |
protected static String |
HELP
Deprecated. |
private static String |
HELP_TARGET
Deprecated. |
private HelpContext |
helpContext
Deprecated. Specifies the context for online help for the Windchill Explorer. |
(package private) Menu |
helpMenu
Deprecated. |
private HelpSystem |
helpSystem
Deprecated. The HelpSystem providing support for online help and
tooltips in this frame. |
(package private) MenuItem |
helpTopicsMenuItem
Deprecated. |
(package private) Menu |
historySubMenu
Deprecated. |
private boolean |
initCabinetsComplete
Deprecated. |
private boolean |
initComplete
Deprecated. |
private Exception |
initException
Deprecated. |
private Object |
initLock
Deprecated. |
private boolean |
initSuccessful
Deprecated. |
(package private) MenuItem |
iterationHistoryMenuItem
Deprecated. |
private static String |
LIFECYCLE_TARGET
Deprecated. |
(package private) Menu |
lifeCycleMenu
Deprecated. |
protected String[] |
methods
Deprecated. String array defining the methods invoked to retrieve the values to be displayed in the detail list of the explorer. |
protected static String |
NEW
Deprecated. |
(package private) Menu |
newMenu
Deprecated. |
(package private) MenuItem |
newViewVersionMenuItem
Deprecated. |
(package private) Menu |
objectMenu
Deprecated. |
private static boolean |
OLD_ENTERPRISE_SEARCH
Deprecated. |
private Applet |
parentApplet
Deprecated. no longer necessary with the use of ThreadGroups. |
protected static String |
PASTE
Deprecated. |
(package private) MenuItem |
pasteMenuItem
Deprecated. |
protected static int |
POPULATE_BASELINE
Deprecated. |
(package private) MenuItem |
populateBaselineMenuItem
Deprecated. |
protected static String |
PREF_KEY_DOWNLOADOPTYPE
Deprecated. |
protected static String |
PREF_KEY_WORKSPACEPATH
Deprecated. |
protected static String |
PREF_NODE
Deprecated. Defined constants to use in retrieving preferences values |
protected static String |
PRODUCT_EXPLORER
Deprecated. |
(package private) MenuItem |
productExplorerMenuItem
Deprecated. |
(package private) MenuItem |
reassignTeamMenuItem
Deprecated. |
(package private) MenuItem |
reassignTemplateMenuItem
Deprecated. |
private WindchillExplorerFrame.WindchillExplorerRefreshListener |
refreshListener
Deprecated. Maintains a reference to the RefreshListener which listens
for CREATE, UPDATE and DELETE events. |
(package private) MenuItem |
refreshMenuItem
Deprecated. |
(package private) MenuItem |
removeBaselineMenuItem
Deprecated. |
private static ResourceBundle |
resources
Deprecated. |
private static String |
RESOURCES
Deprecated. |
(package private) static int |
REVISE
Deprecated. |
(package private) MenuItem |
reviseMenuItem
Deprecated. |
(package private) MenuItem |
roleParticipantsMenuItem
Deprecated. |
(package private) MenuItem |
saveAsMenuItem
Deprecated. |
(package private) static int |
SEARCH_LOCAL
Deprecated. |
(package private) MenuItem |
searchGlobalMenuItem
Deprecated. |
(package private) MenuItem |
searchLocalMenuItem
Deprecated. |
private URL |
searchURL
Deprecated. The URL of the global search homepage. |
private Object |
setCursors
Deprecated. |
(package private) MenuItem |
setLifeCycleStateMenuItem
Deprecated. |
private static boolean |
SHOW_CONTENTS
Deprecated. |
static boolean |
SHOW_ORGID
Deprecated. |
private Object |
showCabinets
Deprecated. |
(package private) MenuItem |
showLCHistoryMenuItem
Deprecated. |
protected String[] |
sizes
Deprecated. |
(package private) Label |
statusLabel
Deprecated. |
(package private) MenuItem |
submitMenuItem
Deprecated. |
protected String[] |
tools
Deprecated. String array defining the actions available in the toolbar of the explorer. |
protected static String |
UNDO_CO
Deprecated. |
(package private) MenuItem |
undoCheckOutMenuItem
Deprecated. |
protected static String |
UPDATE
Deprecated. |
protected static int |
UPDATE_THREAD
Deprecated. |
private boolean |
updateComplete
Deprecated. |
private Object |
updateLock
Deprecated. |
(package private) MenuItem |
updateMenuItem
Deprecated. |
private static String |
URLCLASSNAME
Deprecated. |
private static String |
URLMETHODNAME
Deprecated. |
(package private) MenuItem |
versionHistoryMenuItem
Deprecated. |
protected static String |
VIEW
Deprecated. |
protected static int |
VIEW_THREAD
Deprecated. |
(package private) MenuItem |
viewMenuItem
Deprecated. |
private int |
waitingOnContext
Deprecated. |
protected static String |
WINDCHILL_EXPLORER
Deprecated. |
(package private) Menu |
windchillMenu
Deprecated. |
private WTExplorer |
wtFolderExplorer
Deprecated. WTExplorer which displays cabinet-folder hierarchy and
the contents of cabinets and folders. |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
WindchillExplorerFrame()
Deprecated. Default constructor for class WindchillExplorerFrame . |
|
WindchillExplorerFrame(Applet parent_applet)
Deprecated. Constructor for class WindchillExplorerFrame . |
|
WindchillExplorerFrame(Applet parent_applet,
CabinetBased starting_folder)
Deprecated. Constructor for class WindchillExplorerFrame . |
|
WindchillExplorerFrame(Applet parent_applet,
String title)
Deprecated. Constructor for class WindchillExplorerFrame . |
|
WindchillExplorerFrame(CabinetBased starting_folder)
Deprecated. Constructor for class WindchillExplorerFrame . |
Method Summary | |
(package private) void |
aboutMenuItem_Action(ActionEvent event)
Deprecated. Event handler invoked as a result of the user selecting the "About Windchill" action from the "Help" menu. |
(package private) void |
addBaselineMenuItem_ActionPerformed(ActionEvent event)
Deprecated. |
private void |
addFolderNode(Folder folder)
Deprecated. Adds a new node corresponding to the given Folder to the
treeview. |
void |
addNotify()
Deprecated. Creates the Frame's peer. |
private void |
addTopLevelCabinets()
Deprecated. Adds the cabinets to the treeview of the WTExplorer . |
protected void |
augmentLifeCycle()
Deprecated. |
(package private) void |
augmentMenuItem_Action(ActionEvent event)
Deprecated. |
private String |
buildURL(Persistable object,
String action,
String label)
Deprecated. |
protected void |
changeFolders(WTObject[] foldered_objs)
Deprecated. Change the location of the given objects to be moved into the currently selected folder. |
protected void |
changeIdentity()
Deprecated. |
(package private) void |
changeIdentityMenuItem_Action(ActionEvent event)
Deprecated. |
(package private) void |
checkInMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
checkInObject()
Deprecated. Attempts to check in the currently selected object. |
(package private) void |
checkOutMenuItem_Action(ActionEvent event)
Deprecated. |
protected boolean |
checkOutObject(CabinetBased foldered_obj)
Deprecated. Attempts to invoke a check-out on the given CabinetBased
object. |
private boolean |
confirmAction(String message)
Deprecated. |
private boolean |
contains(WTNode node,
Folder folder)
Deprecated. |
(package private) void |
copyMenuItem_ActionPerformed(ActionEvent event)
Deprecated. Event handler invoked as a result of the user selecting the "Copy" action from the "Edit" menu. |
private void |
copyObject()
Deprecated. Copies the currently selected object to the clipboard. |
(package private) void |
createNewObject(Class new_class)
Deprecated. |
private void |
createNewObject(String new_class)
Deprecated. |
protected void |
createShortcuts(WTObject[] targets)
Deprecated. Create shortcuts in the currently selected folder to each of the given WTObjects . |
(package private) void |
cutMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
cutObject()
Deprecated. |
(package private) void |
deleteMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
deleteObject()
Deprecated. |
protected void |
dispatchRefresh(int action,
Object target)
Deprecated. |
protected void |
dispatchRefresh(int action,
Object target,
PropertyChangeEvent[] property_changes)
Deprecated. |
void |
dispose()
Deprecated. |
private void |
enableBaselineActions(boolean enable)
Deprecated. Enables or disables the Workable related menu items depending on the given boolean value. |
private void |
enableChangeableActions(boolean enable)
Deprecated. Enables or disables the Changeable2 menu items depending on the given boolean value. |
private void |
enableContentActions(boolean enable)
Deprecated. Enables or disables the 'Get Content' menu item depending on the given boolean value. |
private void |
enableCutActions(boolean enable)
Deprecated. Enables or disables support for cutting an object depending on the given boolean value. |
private void |
enableDeleteActions(boolean enable)
Deprecated. Enables or disables the delete menu item depending on the given boolean value. |
private void |
enableIdentityActions(boolean enable)
Deprecated. Enables or disables the 'Change Identity' menu option depending on the given boolean value. |
private void |
enableIterationActions(boolean enable)
Deprecated. Enables or disables the Iteration menu items depending on the given boolean value. |
private void |
enableLifeCycleSetStateAction(LifeCycleManaged lcm_object)
Deprecated. Enables or disabled the 'Set Lifecycle State' menu option depending on the state of the given object. |
private void |
enableLifeCycleUpdateActions(boolean enable,
CabinetBased object)
Deprecated. Enables or disables the Life Cycle update menu items depending on the given boolean value. |
private void |
enableLifeCycleViewActions(boolean enable)
Deprecated. Enables or disables the Life Cycle menu items depending on the given boolean value. |
private void |
enableModifyActions(boolean enable)
Deprecated. Enables or disables the modify menu items depending on the given boolean value. |
private void |
enableSaveAsActions(boolean enable)
Deprecated. Enables or disables the 'Save As' menu option depending on the given boolean value. |
private void |
enableVersionUpdateActions(boolean enable)
Deprecated. Enables or disables the Version update menu items depending on the given boolean value. |
private void |
enableVersionViewActions(boolean enable)
Deprecated. Enables or disables the Version menu items depending on the given boolean value. |
private void |
enableViewActions(boolean enable)
Deprecated. Enables or disables the menu items for creating new View Versions depending on the given boolean value. |
private void |
enableWorkableActions(Object obj)
Deprecated. Enables or disables the Check-in, Check-out and Undo Checkout menu items depending on the given boolean value. |
(package private) void |
exitMenuItem_Action(ActionEvent event)
Deprecated. |
private boolean |
expandFolder(Folder folder)
Deprecated. Expand to treeview of the explorer to the node which is associated with the given Folder . |
(package private) void |
explorerMenuItem_Action(ActionEvent event)
Deprecated. |
private WTNode |
findNode(Folder folder)
Deprecated. Find the node in the treeview which corresponds to the given Folder . |
private WTNode |
findNode(String folder_path)
Deprecated. Find the node in the treeview which corresponds to the given String folder path. |
private WTNode |
findNode(Vector nodes,
Folder folder)
Deprecated. Searches the given Vector of nodes for the node which
is associated with the given Folder . |
private WTNode |
findNode(Vector nodes,
String location)
Deprecated. Searches the given Vector of nodes to find the
node with the given folder path. |
protected CabinetBased |
getCheckOutObject(CabinetBased foldered_obj)
Deprecated. Attempts to invoke a check-out on the given CabinetBased
object. |
private Vector |
getChildren(WTNode node)
Deprecated. Returns a Vector containing the child nodes of the
given WTNode |
(package private) void |
getContentMenuItem_Action(ActionEvent event)
Deprecated. |
private WTContext |
getContext()
Deprecated. Returns the appropriate WTContext which corresponds
to this frame. |
private String |
getCreateableClass(String display_name)
Deprecated. Returns a String representation of the fully-qualified
classname which corresponds to the given display name. |
protected String |
getDisplayIdentity(Object object)
Deprecated. |
private String |
getDisplayName(String full_classname)
Deprecated. Returns a displayable String representation of the
given fully-qualified classname. |
String |
getDisplayType(Object object)
Deprecated. Helper method to return the type of the object. |
static URL |
getEnterpriseURL()
Deprecated. |
private CabinetBased |
getFolderedObject(FolderedBusinessObject foldered_obj,
boolean get_shortcut_target)
Deprecated. |
protected String |
getLocalizedMessage(String key,
Object[] params)
Deprecated. Retrieve the localized String corresponding to the given
key from the ResourceBundle associated with this frame. |
protected void |
getObject()
Deprecated. This method is intended to support getting the contents of a ContentHolder object. |
Applet |
getParentApplet()
Deprecated. Because ThreadGroups are being used internally
to determine the correct WTContext , having a
reference to a parent Applet is no longer necessary.
As a result, the reference to the parent Applet will no longer
be maintained. |
private String |
getParentPath(int level,
CabinetBased foldered_obj)
Deprecated. Returns the String folder path of an ancestor of
the given CabinetBased object. |
private String |
getParentPath(int level,
String folder_path)
Deprecated. Returns the String folder path of an ancestor
of an object with the given folder path. |
String |
getPreferenceValue(WTPreferences node,
String key,
String defaultValue)
Deprecated. Given node and key, return preference value |
private Folder |
getSelectedFolder()
Deprecated. Returns the currently selected Folder . |
protected CabinetBased |
getSelectedObject()
Deprecated. Returns the currently selected CabinetBased object. |
protected CabinetBased |
getSelectedObject(boolean get_shortcut_target)
Deprecated. Returns the currently selected CabinetBased object. |
protected void |
handleCheckinCommand(WTExplorerEvent evt)
Deprecated. Event call-back which is invoked in response to the user choosing the "Check-in" action from the toolbar of the explorer. |
protected void |
handleCheckoutCommand(WTExplorerEvent evt)
Deprecated. Event call-back which is invoked in response to the user choosing the "Check-out" action from the toolbar of the explorer. |
protected void |
handleCreateEvent(RefreshEvent evt)
Deprecated. Handles the RefreshEvent that is generated by the
RefreshService when a new object is created. |
protected void |
handleDeleteCommand(WTExplorerEvent evt)
Deprecated. |
protected void |
handleDeleteEvent(RefreshEvent evt)
Deprecated. Handles the RefreshEvent that is generated by the
RefreshService when an object is deleted. |
protected void |
handleDoubleClickEvent(WTExplorerEvent evt)
Deprecated. |
protected void |
handleEnterpriseSearchCommand(WTExplorerEvent evt)
Deprecated. |
protected void |
handleExposeEvent(WTExplorerEvent evt)
Deprecated. Handles the WTExplorerEvent that is generated when
an item in the treeview is selected. |
protected void |
handleFolderChange(FolderEntry target,
String old_folder_path)
Deprecated. Updates the objects displayed in the explorer corresponding to a FolderEntry object whose. |
protected void |
handleGetCommand(WTExplorerEvent evt)
Deprecated. Event call-back which is invoked in response to the user choosing the "Get" action from the toolbar of the explorer. |
protected void |
handleLocalSearchCommand(WTExplorerEvent evt)
Deprecated. |
protected void |
handleNewCommand(WTExplorerEvent evt)
Deprecated. Event call-back which is invoked in response to the user choosing the "New" action from the toolbar of the explorer. |
protected void |
handleSelectEvent(WTExplorerEvent evt)
Deprecated. Handles the WTExplorerEvent that is generated when
an item in the detail list is selected. |
protected void |
handleShowRoleParticipants()
Deprecated. |
protected void |
handleUndoCheckoutCommand(WTExplorerEvent evt)
Deprecated. Event call-back which is invoked in response to the user choosing the "Undo Check-out" action from the toolbar of the explorer. |
protected void |
handleUpdateCommand(WTExplorerEvent evt)
Deprecated. Event call-back which is invoked in response to the user choosing the "Update" action from the toolbar of the explorer. |
protected void |
handleUpdateEvent(RefreshEvent evt)
Deprecated. Handles the RefreshEvent that is generated by the
RefreshService when an object is updated. |
protected void |
handleViewCommand(WTExplorerEvent evt)
Deprecated. Event call-back which is invoked in response to the user choosing the "View" action from the toolbar of the explorer. |
(package private) void |
helpTopicsMenuItem_Action(ActionEvent event)
Deprecated. |
private void |
initCabinets()
Deprecated. Initialize the cabinets that are displayed in the Windchill Explorer. |
private void |
initCreateMenu()
Deprecated. Initialize the "File --> New" menu. |
private void |
initFolderExplorer()
Deprecated. Initialize the WTExplorer and add it to this frame. |
private void |
initHelpSystem()
Deprecated. Initialize the help system used in displaying tooltips and online help. |
private HelpSystem |
initPartHelpSystem()
Deprecated. |
private void |
initResources()
Deprecated. Initializes the ResourceBundle from which localized text is
retrieved. |
protected void |
initSearchUrl()
Deprecated. Initialize the URL to the global search page. |
private boolean |
isFolderContentsShowing(FolderEntry folder_entry)
Deprecated. Determines if the contents of the parent folder of the given FolderEntry are currently displayed in the detail
list. |
private boolean |
isFolderContentsShowing(String folder_path)
Deprecated. Determines if the contents of the parent folder of the object specified by the given folder path are currently displayed in the detail list. |
protected boolean |
isLifecycleAdministrator()
Deprecated. |
private boolean |
isValidClass(String class_name)
Deprecated. Helper method to determine if a given fully-qualified classname corresponds to a valid Java class. |
(package private) void |
iterationHistoryMenuItem_Action(ActionEvent event)
Deprecated. Method callback invoked when the user selects 'Iteration History' from the 'Object' menu. |
protected void |
launchCheckInObjectThread()
Deprecated. Launch a thread to handle the check in process. |
protected void |
launchCheckOutObject(CabinetBased obj)
Deprecated. |
private void |
launchLocalSearch()
Deprecated. Launch the local search. |
private void |
launchProductInfoExplorer()
Deprecated. |
protected void |
launchUpdateTaskDelegate(CabinetBased obj)
Deprecated. |
private void |
launchWindchillExplorer()
Deprecated. |
private void |
localize()
Deprecated. Replace all localizable text with the appropriate values retrieved from the appropriate ResourceBundle . |
private WTNode |
locateNode(Folder folder)
Deprecated. Perform a breadth-first search to find the node which corresponds to the given Folder . |
static void |
main(String[] args)
Deprecated. |
(package private) void |
pasteMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
pasteObject()
Deprecated. Pastes the object currently on the clipboard into the Windchill explorer. |
(package private) void |
populateBaselineMenuItem_ActionPerformed(ActionEvent event)
Deprecated. |
protected void |
processAddBaseline(int mode)
Deprecated. |
protected void |
processExit()
Deprecated. |
protected void |
processRemoveBaseline()
Deprecated. |
(package private) void |
productExplorerMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
reassignTeam()
Deprecated. Invokes the dialog to reassign the team of the currently selected object. |
(package private) void |
reassignTeamMenuItem_Action(ActionEvent event)
Deprecated. Method callback invoked when the user selects the 'Reassign Team' option from the 'Life Cycle' menu. |
protected void |
reassignTemplate()
Deprecated. Invokes the dialog to reassign the life cycle template of the currently selected object. |
(package private) void |
reassignTemplateMenuItem_Action(ActionEvent event)
Deprecated. Method callback invoked when the user selects the 'Reassign Life Cycle' option from the 'Life Cycle' menu. |
void |
refresh()
Deprecated. Repaints this frame. |
private void |
refreshFolder(WTNode node)
Deprecated. |
(package private) void |
refreshMenuItem_Action(ActionEvent event)
Deprecated. |
(package private) void |
removeBaselineMenuItem_ActionPerformed(ActionEvent event)
Deprecated. |
private void |
removeChildren(WTNode node)
Deprecated. Removes the child nodes of the given node from the treeview. |
private void |
removeDetail(FolderEntry folder_entry)
Deprecated. Remove the row in the detail list which corresponds to the given FolderEntry object. |
protected void |
removeFolderNode(String folder_path)
Deprecated. |
protected CabinetBased |
retrieveCheckOutObject(CabinetBased obj)
Deprecated. |
WTPreferences |
retrievePreferences(String node)
Deprecated. Retrieve the preferences for the designated node |
(package private) void |
reviseMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
reviseObject(boolean withView)
Deprecated. |
(package private) void |
reviseWithViewMenuItem_Action(ActionEvent event)
Deprecated. |
(package private) void |
roleParticipantsMenuItem_ActionPerformed(ActionEvent event)
Deprecated. |
(package private) void |
saveAsMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
saveAsObject()
Deprecated. |
private void |
searchEnterprise()
Deprecated. Launch the enterprise search. |
(package private) void |
searchGlobalMenuItem_Action(ActionEvent event)
Deprecated. |
private void |
searchLocal()
Deprecated. Create and start a thread to launch the local search. |
(package private) void |
searchLocalMenuItem_Action(ActionEvent event)
Deprecated. |
private boolean |
selectDetail(FolderEntry foldered_obj)
Deprecated. Selects the row in the detail list which corresponds to the given FolderEntry . |
private void |
setContext(boolean set)
Deprecated. Sets the WTContext to the appropriate context. |
void |
setCursor(Cursor cursor)
Deprecated. Override the setCursor method to set the cursor of this
frame and to explicitly set the cursor of the WTExplorer
used in this frame. |
protected void |
setLifeCycleState()
Deprecated. Invokes the dialog to set the LifeCycle state of the currently selected object. |
(package private) void |
setLifeCycleStateMenuItem_Action(ActionEvent event)
Deprecated. Method callback invoked when the user selects the 'Set LifeCycle State' option from the 'Life Cycle' menu. |
void |
setParentApplet(Applet parent_applet)
Deprecated. Because ThreadGroups are being used internally
to determine the correct WTContext , explicitly
setting the applet is not necessary. There is no replacement
method to invoke. |
void |
setStartingFolder(CabinetBased starting_obj)
Deprecated. Method setStartingFolder initializes this frame to
be opened to a particular folder. |
void |
setVisible(boolean visible)
Deprecated. Method setVisible will either display or hide the
frame depending on the given boolean. |
void |
show()
Deprecated. This method is replaced by setVisible |
protected void |
showHelp()
Deprecated. |
protected void |
showIterationHistory()
Deprecated. Shows the iteration history of the currently selected object. |
(package private) void |
showLCHistoryMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
showLifeCycleHistory()
Deprecated. |
private void |
showMessageDialog(String message,
boolean modal,
Exception e)
Deprecated. |
protected void |
showVersionHistory()
Deprecated. Displays the version history of the currently selected object. |
(package private) void |
submitMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
submitObject(LifeCycleManaged lc_object)
Deprecated. |
(package private) void |
undoCheckOutMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
undoCheckoutObject()
Deprecated. |
private void |
updateAllowedActions(CabinetBased cabinet_based)
Deprecated. Updates the available menu options based on the given CabinetBased object. |
private void |
updateDetail(FolderEntry folder_entry)
Deprecated. Update the detail list to contain the most recent copy of the given FolderEntry object. |
private void |
updateDetailsLabel(FolderBusinessObject folder_obj)
Deprecated. Updates the label appearing above the details list to indicate that the contents of the details list correspond to the given FolderBusinessObject . |
(package private) void |
updateMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
updateObject(CabinetBased obj)
Deprecated. Attempts to launch an update task on the given CabinetBased
object. |
(package private) void |
versionHistoryMenuItem_Action(ActionEvent event)
Deprecated. Event callback invoked when the user selected the 'Version History' option from the 'Object' menu. |
(package private) void |
viewMenuItem_Action(ActionEvent event)
Deprecated. |
protected void |
viewObject(CabinetBased view_obj)
Deprecated. Launches the "View" task on the given CabinetBased object. |
(package private) void |
WindchillExplorerFrame_WindowClosing(WindowEvent event)
Deprecated. |
Methods inherited from class java.awt.Frame |
finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
boolean fComponentsAdjusted
Label statusLabel
MenuBar explorerMenuBar
Menu fileMenu
Menu newMenu
MenuItem changeIdentityMenuItem
MenuItem saveAsMenuItem
MenuItem deleteMenuItem
MenuItem refreshMenuItem
MenuItem closeMenuItem
Menu editMenu
MenuItem cutMenuItem
MenuItem copyMenuItem
MenuItem pasteMenuItem
Menu objectMenu
MenuItem checkOutMenuItem
MenuItem checkInMenuItem
MenuItem undoCheckOutMenuItem
MenuItem getContentMenuItem
MenuItem updateMenuItem
MenuItem viewMenuItem
MenuItem reviseMenuItem
MenuItem newViewVersionMenuItem
MenuItem iterationHistoryMenuItem
MenuItem versionHistoryMenuItem
Menu baselineMenu
MenuItem addBaselineMenuItem
MenuItem removeBaselineMenuItem
MenuItem populateBaselineMenuItem
Menu lifeCycleMenu
MenuItem submitMenuItem
MenuItem reassignTemplateMenuItem
MenuItem reassignTeamMenuItem
MenuItem setLifeCycleStateMenuItem
MenuItem showLCHistoryMenuItem
MenuItem augmentMenuItem
MenuItem roleParticipantsMenuItem
Menu windchillMenu
Menu historySubMenu
MenuItem searchLocalMenuItem
MenuItem searchGlobalMenuItem
MenuItem productExplorerMenuItem
MenuItem explorerMenuItem
Menu helpMenu
MenuItem helpTopicsMenuItem
MenuItem aboutMenuItem
private static final String HELP_TARGET
private static final String LIFECYCLE_TARGET
private static ResourceBundle resources
private static String RESOURCES
private static String clipboardAction
private static String URLCLASSNAME
private static String URLMETHODNAME
protected static String VIEW
protected static String UPDATE
protected static String NEW
protected static String DELETE
protected static String CHECKOUT
protected static String CHECKIN
protected static String UNDO_CO
protected static String GET
protected static String CUT
protected static String COPY
protected static String PASTE
protected static String ENTERPRISE_SEARCH
protected static String PRODUCT_EXPLORER
protected static String WINDCHILL_EXPLORER
protected static String HELP
protected static int ADD_BASELINE
protected static int POPULATE_BASELINE
protected static String PREF_NODE
protected static String PREF_KEY_DOWNLOADOPTYPE
protected static String PREF_KEY_WORKSPACEPATH
protected String[] tools
protected String[] headings
protected String[] sizes
protected String[] methods
protected com.objectspace.jgl.HashMap classesHashMap
private WTExplorer wtFolderExplorer
WTExplorer
which displays cabinet-folder hierarchy and
the contents of cabinets and folders.
private ThreadGroup contextGroup
WTContext
.
Previously, the parent Applet
, which was explicitly
set, was used to determine the correct WTContext
. The
use of the applet is no longer necessary with the use of threadgroups.
This ThreadGroup
is captured in the constructor of this
frame.
private Applet parentApplet
ThreadGroups
for determining WTContext,
the parent applet is no longer needed and will be deprecated.
private SortedEnumeration cabinets
Cabinets
displayed in the explorer.
private URL searchURL
private HelpContext helpContext
HelpContext
is used with the helpSystem to provide online
help and tooltips.
private HelpSystem helpSystem
HelpSystem
providing support for online help and
tooltips in this frame.
private boolean initComplete
private boolean initSuccessful
private Object initLock
private Exception initException
private Object showCabinets
private boolean initCabinetsComplete
private Object checkOutLock
private boolean checkOutComplete
private Object updateLock
private boolean updateComplete
private Object setCursors
private boolean cursorsSet
private Object contextLock
private int waitingOnContext
protected static final int CHECK_IN_THREAD
protected static final int CHECK_OUT_THREAD
protected static final int CREATE_THREAD
protected static final int UPDATE_THREAD
protected static final int VIEW_THREAD
protected static final int CONTENT_THREAD
private WindchillExplorerFrame.WindchillExplorerRefreshListener refreshListener
RefreshListener
which listens
for CREATE, UPDATE and DELETE events. This reference is maintained so
that the RefreshListener
can remove itself as a listener
to the RefreshService
when this frame is closed.
private static boolean DEBUG
private static boolean SHOW_CONTENTS
private static boolean OLD_ENTERPRISE_SEARCH
public static boolean SHOW_ORGID
static final int CHECK_IN
static final int CHECK_OUT
static final int SEARCH_LOCAL
static final int REVISE
Constructor Detail |
public WindchillExplorerFrame(Applet parent_applet)
WindchillExplorerFrame
. This
constructor maintains the given Applet
as the parent
applet of this frame. In release 1.0, the parent applet was used
in retrieving the appropriate WTContext
object to be
associated with this frame. However, ThreadGroups
are now being used to retrieve the appropriate WTContext
,
and thus it is not critical to construct the WindchillExplorerFrame
using an Applet.
parent_applet
- the Applet
considered to be the
parent of this frameWTContext
public WindchillExplorerFrame()
WindchillExplorerFrame
.
This constructor will populate the explorer with the top-level
Cabinets
retrieved from the database for which the
current user has read (or viewing) access.
public WindchillExplorerFrame(Applet parent_applet, String title)
WindchillExplorerFrame
.
parent_applet
- the Applet
considered to be
the parent of this frame.title
- String
to be used as the
title of this frame.public WindchillExplorerFrame(Applet parent_applet, CabinetBased starting_folder)
WindchillExplorerFrame
. This
constructor is used to initialize the Windchill explorer to be
launched with the treeview expanded to a particular cabinet or
folder. If the given CabinetBased
object is a
folder or cabinet, the treeview will be expanded to that particular
folder, and the contents of that folder will be displayed. If the
given object is a folder entry but not a folder, the treeview will
be expanded to the folder containing the given object, and the given
object will be selected in the detail list view.
parent_applet
- the Applet
considered to be the
parent of this frame.starting_folder
- the CabinetBased
object which
this frame will be initialized to displayCabinetBased
public WindchillExplorerFrame(CabinetBased starting_folder)
WindchillExplorerFrame
. This
constructor is used to initialize the Windchill explorer to be
launched with the treeview expanded to a particular cabinet or
folder. If the given CabinetBased
object is a
folder or cabinet, the treeview will be expanded to that particular
folder, and the contents of that folder will be displayed. If the
given object is a folder entry but not a folder, the treeview will
be expanded to the folder containing the given object, and the given
object will be selected in the detail list view.
starting_folder
- the CabinetBased
object which
this frame will be initialized to displayCabinetBased
Method Detail |
public static void main(String[] args)
private void localize()
ResourceBundle
. This method uses the
Locale
retrieved from the WTContext
to determine
the appropriate ResourceBundle to use for localization.
initResources()
,
ResourceBundle
,
WTContext
private void initResources()
ResourceBundle
from which localized text is
retrieved. This method uses the Locale
determined by the
WTContext
in determining the appropriate ResourceBundle
to load.
ResourceBundle
,
WTContext
private void initHelpSystem()
HelpContext
,
HelpSystem
public void show()
show
will display this frame if it is not currently
displayed, or will bring this frame to the front if it is already being
displayed.
public void setVisible(boolean visible)
setVisible
will either display or hide the
frame depending on the given boolean. If the given boolean is
true, this frame will be shown.
visible
- if true, this frame will be shown. If false,
this frame will be hidden.public void addNotify()
void WindchillExplorerFrame_WindowClosing(WindowEvent event)
public void setParentApplet(Applet parent_applet)
ThreadGroups
are being used internally
to determine the correct WTContext
, explicitly
setting the applet is not necessary. There is no replacement
method to invoke.
setParentApplet
sets the Applet
which is
considered to be the parent of this frame. Before using
ThreadGroups
, the parent Applet
was used to
determine the appropriate WTContext
.
parent_applet
- the Applet
which provides
context to this framegetParentApplet()
public Applet getParentApplet()
ThreadGroups
are being used internally
to determine the correct WTContext
, having a
reference to a parent Applet
is no longer necessary.
As a result, the reference to the parent Applet will no longer
be maintained.
getParentApplet
returns the Applet
which is
considered to be the parent of this frame.
setParentApplet(java.applet.Applet)
public void refresh()
private void initFolderExplorer()
WTExplorer
and add it to this frame.
private void initCabinets()
private void initCreateMenu() throws WTIntrospectionException
WTIntrospectionException
private void addTopLevelCabinets()
WTExplorer
. This
method assumes that the cabinets have already been retrieved from the
database. If the cabinets were not successfully retrieved from the database,
an error message is displayed. Otherwise, the cabinets are added to
the treeview.
protected void handleExposeEvent(WTExplorerEvent evt)
WTExplorerEvent
that is generated when
an item in the treeview is selected. This method updates
the status bar above the details list and updates the menus
so that the actions which are appropriate for the selected
node are enabled.
evt
- the WTExplorerEvent
that was
generated when the node in the treeview was
selectedprotected void handleSelectEvent(WTExplorerEvent evt)
WTExplorerEvent
that is generated when
an item in the detail list is selected. This method updates
the menus so that the actions which are appropriate for the selected
object are enabled.
evt
- the WTExplorerEvent
that was generated
when the item in the detail list was selectedprotected void handleCreateEvent(RefreshEvent evt)
RefreshEvent
that is generated by the
RefreshService
when a new object is created.
This method will refresh the node corresponding to the parent
folder of the newly created object if that parent folder is
currently selected. If the create object is a SubFolder
whose parent folder is not currently selected, this method will
add a node corresponding to the new folder in the treeview.
evt
- the RefreshEvent
which resulted in this
method getting invoked.RefreshEvent
,
RefreshService
protected void handleUpdateEvent(RefreshEvent evt)
RefreshEvent
that is generated by the
RefreshService
when an object is updated. This method
tests the given RefreshEvent
to see what type of update
was performed. If the update corresponded to changing the location
of an object, then handleFolderChange
will be invoked
to update the display of the explorer. Otherwise, the treeview
and detail list will be refreshed to display the updated object.
evt
- the RefreshEvent
which resulted in this
method getting invoked.handleFolderChange(wt.folder.FolderEntry, java.lang.String)
,
RefreshEvent
,
RefreshService
protected void handleDeleteEvent(RefreshEvent evt)
RefreshEvent
that is generated by the
RefreshService
when an object is deleted. This method
will removed the deleted object from the details list of the
explorer, if it is currently being shown. If the deleted object
is a Folder
, then the node corresponding to the deleted
folder will be removed from the treeview of the explorer.
evt
- the RefreshEvent
which resulted in this
method getting invoked.RefreshEvent
,
RefreshService
protected void handleFolderChange(FolderEntry target, String old_folder_path)
FolderEntry
object whose. location has changed (i.e.
moved to a new Folder
). If the details list of the
explorer is currently displaying the given folder entry in its old
location, that folder entry will be removed from the list. Similarly,
if the given folder entry is a folder which is currently visible in
its old location in the treeview, that node will be removed from the
treeview. If the new parent folder of the given folder entry is the
currently selected folder, that folder will be refreshed so that the
newly moved folder entry is also visible.
target
- the FolderEntry
object whose
location was changed. The given object contains the updated
folder path.old_folder_path
- a String
representation of the
location of the given folder entry before it had been
updated.protected void removeFolderNode(String folder_path)
protected void handleViewCommand(WTExplorerEvent evt)
evt
- the WTExplorerEvent
which was generated
when the user invoked the "View" command on the toolbar.WTExplorerEvent
protected void viewObject(CabinetBased view_obj)
CabinetBased
object.
This method uses TaskDelegates
to attempt to launch the
view task for the object.
view_obj
- the CabinetBased
object to be viewedTaskDelegate
protected void handleGetCommand(WTExplorerEvent evt)
ContentHolder
, invokes the view task on that
object.
evt
- the WTExplorerEvent
which was generated
when the user invoked the "Get" command on the toolbar.WTExplorerEvent
,
ContentHolder
protected void getObject()
ContentHolder
object. The "Get" action is only
intended for ContentHolders
and thus
will only be invoked if the object is a ContentHolder
.
ContentHolder
protected void handleUpdateCommand(WTExplorerEvent evt)
evt
- the WTExplorerEvent
which was generated
when the user invoked the "Update" command on the toolbar.updateObject(wt.folder.CabinetBased)
,
WTExplorerEvent
,
ContentHolder
protected void updateObject(CabinetBased obj)
CabinetBased
object. If the given object is a Workable
object, this
method will verify that the object is available for update. A
Workable
object is available for update if the current user
has that object checked out. If the given object is already checked
out by another, the user will be prompted to view the object. Otherwise,
if the object is not checked out by another, and is also not checked out
by the user, the user will be prompted to check out the given object.
TaskDelegates
to attempt to launch the
update task.
obj
- the CabinetBased
object to be updatedTaskDelegate
,
TaskDelegateFactory
,
CabinetBased
,
Workable
protected void launchUpdateTaskDelegate(CabinetBased obj)
protected void handleNewCommand(WTExplorerEvent evt)
evt
- the WTExplorerEvent
which was generated
when the user invoked the "New" command on the toolbar.WTExplorerEvent
,
CreationClassDialog
,
createNewObject(Class)
protected void handleCheckinCommand(WTExplorerEvent evt)
Workable
object, launches a CheckInTask
to check in that object.
evt
- the WTExplorerEvent
which was generated
when the user invoked the "Check-in" command on the toolbar.checkInObject()
,
WTExplorerEvent
,
Workable
protected void launchCheckInObjectThread()
protected void checkInObject()
Workable
object, this method launches a
CheckInTask
on that object.
CheckInTask
,
Workable
protected void handleCheckoutCommand(WTExplorerEvent evt)
Workable
object, invokes the check-out task on that
object.
evt
- the WTExplorerEvent
which was generated
when the user invoked the "Check-out" command on the toolbar.checkOutObject(wt.folder.CabinetBased)
,
WTExplorerEvent
,
Workable
protected void launchCheckOutObject(CabinetBased obj)
protected CabinetBased retrieveCheckOutObject(CabinetBased obj)
protected boolean checkOutObject(CabinetBased foldered_obj)
CabinetBased
object. If the given object is a Workable
object, this
method will launch a CheckOutTask
on that object. The
boolean
value returned indicates whether or not the
check-out was successful.
foldered_obj
- the CabinetBased
object to be
checked out
true
, if the object was successfully checked outCheckOutTask
,
Workable
protected CabinetBased getCheckOutObject(CabinetBased foldered_obj)
CabinetBased
object. If the given object is a Workable
object, this
method will launch a CheckOutTask
on that object. If
the check-out succeeds, the updated CabinetBased will be returned.
Otherwise, if the check-out fails, this method will return null.
foldered_obj
- the CabinetBased
object to be
checked out
CabinetBased
, if the object was successfully
checked out; Otherwise, nullCheckOutTask
,
Workable
protected void handleUndoCheckoutCommand(WTExplorerEvent evt)
undoCheckoutObject
to perform the undo
of the check-out.
evt
- the WTExplorerEvent
which was generated
when the user invoked the "Undo check-out" command on the
toolbar.WTExplorerEvent
,
undoCheckoutObject()
protected void undoCheckoutObject()
protected void handleDeleteCommand(WTExplorerEvent evt)
protected void handleLocalSearchCommand(WTExplorerEvent evt)
protected void handleEnterpriseSearchCommand(WTExplorerEvent evt)
void exitMenuItem_Action(ActionEvent event)
protected void processExit()
public void dispose()
private WTContext getContext()
WTContext
which corresponds
to this frame. This method first tries to retrieve the WTContext
by using the ThreadGroup
saved when this frame was
constructed. If the ThreadGroup is null, then this method tries
to use the parent Applet
to get the WTContext. If
that parent applet is also null, this method uses the default
getContext()
method to retrieve a WTContext.
WTContext
object associated with this
frameWTContext
private Folder getSelectedFolder()
Folder
. This method attempts
to control the problem with selection in the WTExplorer
. It
is possible to have an item selected in the detail list and an item
selected in the treeview at the same time. This method attempts to find
the selected folder by determining which component - the treeview or the
detail list - currently has focus. If no selected folder is found by using
the focus owner, this method attempts to get the folder from the currently
selected node in the treeview.
Folder
void refreshMenuItem_Action(ActionEvent event)
private void refreshFolder(WTNode node)
void changeIdentityMenuItem_Action(ActionEvent event)
protected void changeIdentity()
void createNewObject(Class new_class)
private void createNewObject(String new_class)
private void showMessageDialog(String message, boolean modal, Exception e)
private String getCreateableClass(String display_name)
String
representation of the fully-qualified
classname which corresponds to the given display name. The classname
is retrieved from the maintained pairs of (display name, fully-qualified
classname) which indicate the classes available to be created.
display_name
- the String
display name associated
with the class to be returned
private String getDisplayName(String full_classname)
String
representation of the
given fully-qualified classname.
full_classname
- a String
representation of a
fully-qualified classname.
String
representationprivate String getParentPath(int level, CabinetBased foldered_obj)
String
folder path of an ancestor of
the given CabinetBased
object. The particular
ancestor whose path is returned is specified by the given integer
level. For example, if the given CabinetBased object had a
folder path of "\Windchill\Designs\Components", the parent path
corresponding to level = 1 would be "\Windchill", and the
parent path corresponding to level = 2 would be "\Windchill\Designs".
This method is used by findNode
to traverse the
nodes in the treeview to find a particular node.
level
- the int
specifying which
ancestor to retrieve the parent path for.foldered_obj
- the CabinetBased
object whose
parent path is retrieved.
String
folder path of the parent at
the given levelprivate String getParentPath(int level, String folder_path)
String
folder path of an ancestor
of an object with the given folder path. The particular
ancestor whose path is returned is specified by the given
integer level. For example, if the given folder path were
"\Windchill\Designs\Components", the parent path corresponding
to level = 1 would be "\Windchill", and the parent path
corresponding to level = 2 would be "\Windchill\Designs".
This method is used by findNode
to traverse the
nodes in the treeview to find a particular node.
level
- the int
specifying which
ancestor to retrieve the parent path for.folder_path
- the String
folder path for
which the parent path is retrieved
String
folder path of the parent at
the given levelprivate Vector getChildren(WTNode node)
Vector
containing the child nodes of the
given WTNode
node
- the parent WTNode
for which the children
are returned
Vector
of the child WTNodes
.private WTNode findNode(Vector nodes, String location)
Vector
of nodes to find the
node with the given folder path.
nodes
- the Vector
of nodes to be searchedlocation
- the String
folder path corresponding
to the desired node
WTNode
contained in the given Vector with
the given folder path.private WTNode findNode(Vector nodes, Folder folder)
Vector
of nodes for the node which
is associated with the given Folder
. This method
is similar to the previous findNode(Vector, String)
method, but compares the node based on the object id of the
given folder as opposed to the folder path.
nodes
- the Vector
of nodes to be searchedfolder
- the Folder
corresponding to the
desired node
WTNode
contained in the given Vector which
is associated with the given Folderpublic void setStartingFolder(CabinetBased starting_obj)
setStartingFolder
initializes this frame to
be opened to a particular folder. If the given CabinetBased
object is a folder or cabinet, the treeview in this frame will be expanded
to the particular folder, and the contents of that folder will be displayed
in the detail list. If the given object is not a cabinet or folder, the
treeview of this frame will be expanded to display the folder containing
the given object, and the given object will be selected in the detail list.
If this frame has already been constructed, this method will do the actual
expanding of the treeview and displaying of the contents in the detail
list. When the starting CabinetBased
object is known before
this frame is actually constructed, it is best to use the constructor
which takes a CabinetBased
object as a parameter.
CabinetBased
private boolean expandFolder(Folder folder)
Folder
. The boolean
value returned
indicates whether or not the treeview was successfully expanded to the
given folder. If the node corresponding to the given folder is found,
the details of that node will be displayed in the detail list.
folder
- the Folder
to expand the treeview to
true
if the treeview was successfully expanded to
the node corresponding to the given folder.private boolean selectDetail(FolderEntry foldered_obj)
FolderEntry
. If the given FolderEntry is currently
displayed in the detail list, the row corresponding to that
FolderEntry will be selected. The boolean
value returned
indicates whether or not the given FolderEntry was successfully
selected.
foldered_obj
- the FolderEntry
object to be
selected in the detail list
true
if the row in the detail list corresponding
to the given FolderEntry was selectedprivate void removeChildren(WTNode node)
node
- the WTNode
whose children are to
be removedprivate boolean isFolderContentsShowing(FolderEntry folder_entry)
FolderEntry
are currently displayed in the detail
list. This method is useful in determining either if the
given FolderEntry
is showing in the detail list or
if the given FolderEntry
should be showing in the
detail list.
folder_entry
- the FolderEntry
whose parent
folder is tested for having its contents displayed in
the detail list
true
if the contents of the folder which is
the parent of the given FolderEntry
are
currently displayed in the detail listprivate boolean isFolderContentsShowing(String folder_path)
FolderEntry
object specified by the given
folder path is showing in the detail list or if that
FolderEntry
should be showing in the detail list.
This method is similar to the previous
isFolderContentsShowing(FolderEntry)
but can be used
when the actual folder entry object is not available, and only
its folder path is available. This method is used to update the
explorer after changing the location of an object.
folder_path
- the folder path corresponding to the
FolderEntry
whose parent folder is tested for
having its contents displayed in the detail list
true
if the contents of the folder which is
the parent of the FolderEntry
specified by the
given folder path are currently displayed in the detail listprivate void updateDetail(FolderEntry folder_entry)
FolderEntry
object. If the detail list
currently contains an entry associated with an older copy of
the given FolderEntry
, update that entry to contain
a reference to the given FolderEntry
.
folder_entry
- the FolderEntry
whose entry
in the detail list is to be updatedvoid searchLocalMenuItem_Action(ActionEvent event)
private void searchLocal()
private void launchLocalSearch()
QueryPanel
.
QueryPanel
private void searchEnterprise()
void explorerMenuItem_Action(ActionEvent event)
private void launchWindchillExplorer()
void checkOutMenuItem_Action(ActionEvent event)
void checkInMenuItem_Action(ActionEvent event)
void undoCheckOutMenuItem_Action(ActionEvent event)
protected void initSearchUrl() throws WTException, IOException, MalformedURLException
IOException
- if an error occurs retrieving the search URL
from the WTProperties
MalformedURLException
- if the URL is not a valid URL
WTException
wt.index.EnterpriseSearchHelper
void searchGlobalMenuItem_Action(ActionEvent event)
private void updateDetailsLabel(FolderBusinessObject folder_obj)
FolderBusinessObject
.
folder_obj
- the FolderBusinessObject
to be used
in the label for the detail listprivate void updateAllowedActions(CabinetBased cabinet_based)
CabinetBased
object.
cabinet_based
- the CabinetBased
object
used to determine which menu actions should be
enabled.enableContentActions(boolean)
,
enableIdentityActions(boolean)
,
enableSaveAsActions(boolean)
,
enableLifeCycleViewActions(boolean)
,
#enableLifeCycleModifyActions
,
enableModifyActions(boolean)
,
enableDeleteActions(boolean)
,
enableChangeableActions(boolean)
,
enableViewActions(boolean)
,
enableWorkableActions(java.lang.Object)
,
#enableVersionActions
,
enableIterationActions(boolean)
private void enableBaselineActions(boolean enable)
boolean
value. If the given boolean
is true, the menu actions associated with Workable tasks
(e.g. check-in, check-out, undo check-out) will be enabled.
enable
- the boolean
indicating whether
or not to enable the workable menu actionsWorkable
private void enableLifeCycleViewActions(boolean enable)
boolean
value. If the given boolean
is true, the menu actions associated with Life Cycle tasks
will be enabled.
enable
- the boolean
indicating whether
or not to enable the Life Cycle menu actionsprivate void enableLifeCycleUpdateActions(boolean enable, CabinetBased object)
boolean
value. If the given boolean
is true, the menu actions associated with updating Life Cycle
information will be enabled.
enable
- the boolean
indicating whether
or not to enable the Life Cycle update menu actionsprivate void enableLifeCycleSetStateAction(LifeCycleManaged lcm_object)
private void enableChangeableActions(boolean enable)
boolean
value. If the given boolean
is true, the menu actions associated with Changeable2 tasks
(e.g. Revise) will be enabled.
enable
- the boolean
indicating whether
or not to enable the Changeable2 menu actionsChangeable2
private void enableVersionViewActions(boolean enable)
boolean
value. If the given boolean
is true, the menu actions associated with Version tasks
(e.g. Show All Versions) will be enabled.
enable
- the boolean
indicating whether
or not to enable the Version menu actionsVersioned
private void enableVersionUpdateActions(boolean enable)
boolean
value. If the given boolean
is true, the menu actions associated with updating Versions
(e.g. Revise) will be enabled.
enable
- the boolean
indicating whether
or not to enable the Version menu actionsVersioned
private void enableIterationActions(boolean enable)
boolean
value. If the given boolean
is true, the menu actions associated with Iteration tasks
(e.g. Iteration History) will be enabled.
enable
- the boolean
indicating whether
or not to enable the Iteration menu actionsIterated
private void enableWorkableActions(Object obj)
boolean
value.
If the given boolean is true, the menu actions associated with
Workable tasks will be enabled.
obj
- the Object
indicating whether
or not to enable the Workable menu actionsWorkable
private void enableViewActions(boolean enable)
boolean
value.
If the given boolean is true, the menu item to create a new
View Version will be enabled.
enable
- the boolean
indicating whether
or not to enable the New View Version menu actionsprivate void enableContentActions(boolean enable)
boolean
value. If the given boolean
is true, the menu option associated with getting content
will be enabled.
enable
- the boolean
indicating whether
or not to enable the 'Get Content' menu optionprivate void enableIdentityActions(boolean enable)
boolean
value. If the given boolean
is true, the menu option associated with changing identity
will be enabled.
enable
- the boolean
indicating whether
or not to enable the 'Change Identity' menu optionprivate void enableSaveAsActions(boolean enable)
boolean
value. If the given boolean
is true, the menu option associated with save as
will be enabled.
enable
- the boolean
indicating whether
or not to enable the 'Save As' menu optionprivate void enableModifyActions(boolean enable)
boolean
value. If the given boolean
is true, the menu actions associated with modifying tasks
will be enabled.
enable
- the boolean
indicating whether
or not to enable menu actions for modifying objectsprivate void enableCutActions(boolean enable)
enable
- if true, support for cut is available
on the currently selected object.private void enableDeleteActions(boolean enable)
boolean
value. If the given boolean
is true, the menu action associated with deleting an object
will be enabled.
enable
- the boolean
indicating whether
or not to enable menu action for deleting objectsvoid updateMenuItem_Action(ActionEvent event)
void viewMenuItem_Action(ActionEvent event)
void getContentMenuItem_Action(ActionEvent event)
protected void deleteObject()
protected void saveAsObject()
protected CabinetBased getSelectedObject()
CabinetBased
object. This
method is used to help control the selection problem in the
WTExplorer
, where it is possible to have an item in the
detail list and an item in the treeview selected simultaneously.
This method first attempts to find a selected object in the detail
list. If no object is found, this method tries to find a selected
object in the treeview.
CabinetBased
objectprotected CabinetBased getSelectedObject(boolean get_shortcut_target)
CabinetBased
object.
The given boolean
value is used to control how a
shortcut is returned when a shortcut is the currently selected
object. If the given boolean is true
, and the
currently selected object is a shortcut, the actual target of the
shortcut, and not the shortcut itself will be returned.
This method is used to help control the selection problem in the
WTExplorer
, where it is possible to have an item in the
detail list and an item in the treeview selected simultaneously.
This method first attempts to find a selected object in the detail
list. If no object is found, this method tries to find a selected
object in the treeview.
get_shortcut_target
- if true
, the target of the
shortcut will be returned when the currently selected object
is a shortcut
CabinetBased
objectprivate CabinetBased getFolderedObject(FolderedBusinessObject foldered_obj, boolean get_shortcut_target)
private boolean confirmAction(String message)
private void removeDetail(FolderEntry folder_entry)
FolderEntry
object. If an entry corresponding to
the given object is not found, no action is taken.
folder_entry
- the FolderEntry
for which the
corresponding row entry in the detail list is removedprivate WTNode findNode(Folder folder)
Folder
.
folder
- the Folder
for which the
corresponding node is returned
WTNode
associated with the given
Folder
private WTNode findNode(String folder_path)
String
folder path. This method uses the structure of
the folder path hierarchy to traverse the tree. For example,
if the given folder path is "\Windchill\Designs\Components", this
method will start by search the root node for a child node with the
folder path of "\Windchill". If that node is found, this method
will search the children of the "\Windchill" node for a node with
the folder path "\Windchill\Designs". If that node is found, this
method will search the children of that node for a node with the
folder path of "\Windchill\Designs\Components".
folder_path
- the String
folder path corresponding
to the node to be returned
WTNode
associated with the given folder pathvoid deleteMenuItem_Action(ActionEvent event)
void saveAsMenuItem_Action(ActionEvent event)
void helpTopicsMenuItem_Action(ActionEvent event)
protected void showHelp()
void submitMenuItem_Action(ActionEvent event)
protected void submitObject(LifeCycleManaged lc_object)
private WTNode locateNode(Folder folder)
Folder
. This method searches the nodes in the
tree by comparing the object id of the given folder with the object
id of the folder associated with each node being search.
folder
- the Folder
for which the corresonding
node is returned
WTNode
associated with the given folderprivate boolean contains(WTNode node, Folder folder)
private void addFolderNode(Folder folder)
Folder
to the
treeview. This method creates a new node with the given folder as
the associated folder, and adds that node to the node which corresponds
to the parent of the given folder.
folder
- the Folder
for which a new node is created
and added to the treeviewprotected void handleDoubleClickEvent(WTExplorerEvent evt)
private HelpSystem initPartHelpSystem()
private void launchProductInfoExplorer()
void productExplorerMenuItem_Action(ActionEvent event)
protected void dispatchRefresh(int action, Object target, PropertyChangeEvent[] property_changes)
protected void dispatchRefresh(int action, Object target)
void cutMenuItem_Action(ActionEvent event)
protected void cutObject()
void pasteMenuItem_Action(ActionEvent event)
protected void pasteObject()
protected void changeFolders(WTObject[] foldered_objs)
WTObjects
and for each FolderEntry
in that array, changes the location of the FolderEntry
to be located in the currently selected folder.
This method is invoked by pasteObject
to change the
location of the objects currently on the clipboard. If the
clipboard contains objects that are not FolderEntry
objects,
they will be ignored.
foldered_objs
- the array of WTObjects
whose
location is to be changed.protected void createShortcuts(WTObject[] targets)
WTObjects
. This method receives an array of WTObjects
,
and for each CabinetBased
object in that array, a shortcut is
created in the currently selected folder to that object.
This method is invoked by pasteObject
to create shortcuts to
each of the objects currently on the clipboard.
targets
- the array of WTObjects
for which shortcuts are
to be createdShortcut
protected void reviseObject(boolean withView)
void reviseMenuItem_Action(ActionEvent event)
void reviseWithViewMenuItem_Action(ActionEvent event)
protected String getDisplayIdentity(Object object)
void showLCHistoryMenuItem_Action(ActionEvent event)
protected void showLifeCycleHistory()
void augmentMenuItem_Action(ActionEvent event)
protected void augmentLifeCycle()
void reassignTemplateMenuItem_Action(ActionEvent event)
event
- the ActionEvent
which results in this method
method callback getting invoked.protected void reassignTemplate()
LifeCycleManaged
interface, and the current user is a
RolePlayer
in the life cycle of the selected object, then this
method launches a ReassignLifecycleDialog
to reassign the
life cycle template of the selected object.
ReassignLifecycleDialog
,
LifeCycleManaged
void reassignTeamMenuItem_Action(ActionEvent event)
reassignTeam
to handle the reassigning of the team.
event
- the ActionEvent
which resulted in this
callback getting invoked.void setLifeCycleStateMenuItem_Action(ActionEvent event)
setLifeCycleState
to handle the reassigning of the team.
event
- the ActionEvent
which resulted in this
callback getting invoked.protected void reassignTeam()
LifeCycleManaged
interface, and the current user is a RolePlayer
in the life
cycle of the selected object, then this method launches a
ReassignTeamDialog
to reassign the team of the selected
object.
wt.clients.lifecycle.select.ReassignTeamDialog
,
LifeCycleManaged
protected void setLifeCycleState()
LifeCycleManaged
interface, and the current user is a RolePlayer
in the life
cycle of the selected object, then this method launches a
SetLifeCycleStateDialog
to set the LifeCycle state of the selected
object.
SetLifeCycleStateDialog
,
LifeCycleManaged
protected String getLocalizedMessage(String key, Object[] params)
String
corresponding to the given
key from the ResourceBundle
associated with this frame.
If the given array of Objects
is not null, this method
will use the WTMessage.getLocalizedMessage
to retrieve a formatted
message using the array as the parameters. If the given array is
null, this method simply retrieves the String
from the
resource bundle which corresponds to the given key.
key
- the String
key corresponding to the
ResourceBundle
entry to be returnedparams
- an optional array of Objects
to be used
as the parameters in a message formatted by WTMessage
.
String
void iterationHistoryMenuItem_Action(ActionEvent event)
event
- the ActionEvent
generated which resulted in
this method getting invokedprotected void showIterationHistory()
Iterated
interface, an IterationHistoryTask
will be created for
that object.
Iterated
,
IterationHistoryTask
void versionHistoryMenuItem_Action(ActionEvent event)
event
- the ActionEvent
which resulted in this
method getting invoked.protected void showVersionHistory()
Versioned
interface in
order to display the version history.
void aboutMenuItem_Action(ActionEvent event)
event
- the ActionEvent
generated by selecting the
menu item.private void setContext(boolean set)
boolean
is true
, the context
will attempt to be set with ThreadGroup
captured during the
constructor of this frame. If the ThreadGroup is null, the context will
attempt to be set with the parent applet of this frame. If no
parent applet exists, this frame itself will be used to set the context.
If the given boolean
is false
, the context
will be set to null. For example:
public void actionPerformed(java.awt.event.ActionEvent event) { try { setContext( true ); ... } finally { setContext( false ); } }
void copyMenuItem_ActionPerformed(ActionEvent event)
event
- the ActionEvent
generated by selecting the
menu item.private void copyObject()
private boolean isValidClass(String class_name)
class_name
- the fully-qualified classname of the class
true
if the given String
corresponds to
a valid classpublic void setCursor(Cursor cursor)
setCursor
method to set the cursor of this
frame and to explicitly set the cursor of the WTExplorer
used in this frame.
cursor
- the Cursor
to be setpublic WTPreferences retrievePreferences(String node)
node
- the string for the preference node desired
public String getPreferenceValue(WTPreferences node, String key, String defaultValue)
node
- the preference nodekey
- the key of the desired value within that node
void addBaselineMenuItem_ActionPerformed(ActionEvent event)
protected void processAddBaseline(int mode)
void populateBaselineMenuItem_ActionPerformed(ActionEvent event)
void removeBaselineMenuItem_ActionPerformed(ActionEvent event)
protected void processRemoveBaseline()
void roleParticipantsMenuItem_ActionPerformed(ActionEvent event)
protected void handleShowRoleParticipants()
public String getDisplayType(Object object)
private String buildURL(Persistable object, String action, String label)
public static URL getEnterpriseURL() throws WTException
WTException
protected boolean isLifecycleAdministrator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |