|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vc.gui.client.handling.TreeManipulator
TreeManipulator is the event handling class for VersionControl client GUI. It drives the actual GUI classes related to a tree showing the directory hierarchy. It has event handlers and other processing related to the GUI actions.
Field Summary | |
ClientFrame |
clientFrame
ClientFrame is the reference to the main window of VersionControl client application |
static TreeNode |
dummyNode
Dummy node which is used for many house kepping operations |
FileTableManipulator |
fileTableManipulator
Deals with the visual presentation of the file data of a directory into the table |
FileVersionManager |
fileVersionManager
Reference to the CORBA implementaion for the IDL interface FileVersionManager |
ProjectDBManager |
projectDBManager
Reference to the CORBA implementaion for the IDL interface ProjectDBHandler |
Constructor Summary | |
TreeManipulator(ProjectDBManager projectDBManager,
FileVersionManager fileVersionManager)
Constructs and Initializes TreeManipulator object witht hte parameters passed. |
Method Summary | |
void |
addDirectoryForCallBack(java.lang.String parentID,
Directory newDirectory)
CallBack method/event handler which will be called when ever the other VersionControl client adds a directory. |
void |
addEventHandlers(javax.swing.JTree prmTree)
Adds the event handlers to the tree, some by delegating to other methods and the other by adding directly. |
void |
deleteDirectoryForCallBack(java.lang.String directoryID)
CallBack method/event handler which will be called when ever the other VersionControl client deletes a directory. |
TreeNode |
getRootNode()
Gets the root node of the project tree |
java.lang.String[] |
getSelectedDirectoryIDs()
Gets the IDs of all the directories that are selected |
void |
nodeCollapsed(javax.swing.event.TreeExpansionEvent event)
Event handler for event related that node collapsed |
void |
nodeExpanded(javax.swing.event.TreeExpansionEvent event)
Event handler for event related that node expanded |
void |
nodeIsGoingToCollapse(javax.swing.event.TreeExpansionEvent event)
Event handler for event related that node is going to collapse |
void |
nodeIsGoingToExpand(javax.swing.event.TreeExpansionEvent event)
Event handler for event related that node is going to expand |
void |
nodeSelected(javax.swing.event.TreeSelectionEvent event,
javax.swing.tree.DefaultMutableTreeNode node)
Event handler for event related that node selection |
void |
unSelectProjects()
Unselects all the selections made to th directories/projects |
void |
updateDirectoryForCallBack(Directory newDirectory)
CallBack method/event handler which will be called when ever the other VersionControl client updates a directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public ProjectDBManager projectDBManager
public FileVersionManager fileVersionManager
public ClientFrame clientFrame
public FileTableManipulator fileTableManipulator
public static TreeNode dummyNode
Constructor Detail |
public TreeManipulator(ProjectDBManager projectDBManager, FileVersionManager fileVersionManager)
projectDBManager
- to initialize the field projectDBManagerfileVersionManager
- to initialize the field fileVersionManagerMethod Detail |
public TreeNode getRootNode()
public void addEventHandlers(javax.swing.JTree prmTree)
public void nodeIsGoingToExpand(javax.swing.event.TreeExpansionEvent event)
event
- TreeExpansionEvent which represents the information about the tree expansionpublic void nodeIsGoingToCollapse(javax.swing.event.TreeExpansionEvent event)
event
- TreeExpansionEvent which represents the information about the tree collapsepublic void nodeExpanded(javax.swing.event.TreeExpansionEvent event)
event
- TreeExpansionEvent which represents the information about the tree expansionpublic void nodeCollapsed(javax.swing.event.TreeExpansionEvent event)
event
- TreeExpansionEvent which represents the information about the tree collapsepublic void nodeSelected(javax.swing.event.TreeSelectionEvent event, javax.swing.tree.DefaultMutableTreeNode node)
event
- TreeExpansionEvent which represents the information about the tree selectionnode
- Tyhe node that is seletedpublic void addDirectoryForCallBack(java.lang.String parentID, Directory newDirectory)
parentID
- ID of the directory to which the new directory is addednewDirectory
- Informatiuon of the new directory that is addedpublic void updateDirectoryForCallBack(Directory newDirectory)
newDirectory
- Informatiuon of the newly updated directorypublic void deleteDirectoryForCallBack(java.lang.String directoryID)
directoryID
- Id of the directory that is deletedpublic java.lang.String[] getSelectedDirectoryIDs()
public void unSelectProjects()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |