|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vc.gui.client.handling.FileTableManipulator
FileTableManipulator is the event handling class for VersionControl client GUI. It drives the actual GUI classes related to showing the files in a table. It has event handlers and other processing related to the GUI actions.
Field Summary | |
Directory |
currentDirectory
Instance of the directory whose files are being shown in the table |
Constructor Summary | |
FileTableManipulator(ClientFrame clientFrame,
javax.swing.JTable table_FileInfo,
ProjectDBManager projectDBManager,
javax.swing.JLabel selectionStatusLabel,
FileVersionManager fileVersionManager,
TreeManipulator treeManipulator)
Constructs and Initializes FileTableManipulator object witht hte parameters passed. |
Method Summary | |
void |
addFileForCallback(java.lang.String parentID,
File newFile)
VersionControl client callback handler which will be called by Callback method when ever a file is added to a directory. |
void |
changeFileCheckingStatusForCallback(java.lang.String fileID,
boolean ckeckedOut,
java.lang.String checkOutUser)
VersionControl client callback handler which will be called by Callback method when ever a files checking satus is changed. |
void |
deleteFileForCallback(java.lang.String fileID)
VersionControl client callback handler which will be called by Callback method when ever a file is deleted . |
File |
getSelectedFile()
Gets the information of the file that is selected from the table |
java.lang.String[] |
getSelectedFileIDs()
Gets the IDs of the files that are selected from the table |
int |
getSelectedFileIndex()
Gets the index of the file that is selected from the table |
File[] |
getSelectedFiles()
Gets the information of the files that are selected from the table |
void |
initializeTable()
Creates the objects like table modal object etc, sets the table properties and then adds the event listeners |
void |
reInitializeFilesInTable(Directory currentDirectory,
java.lang.String selectionInfo)
Updates the table with the files being shown. |
void |
reInitializeTableToEmpty()
Updates the table by showing no files in the table i.e show the empty table. |
void |
resetSelectionStatus(java.lang.String selectionInfo)
Updates the status bar with the new information. |
void |
unSelectFiles()
Unselects the files that are selected in the table |
void |
updateFileForCallback(File newFile)
VersionControl client callback handler which will be called by Callback method when ever a file is updated . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Directory currentDirectory
Constructor Detail |
public FileTableManipulator(ClientFrame clientFrame, javax.swing.JTable table_FileInfo, ProjectDBManager projectDBManager, javax.swing.JLabel selectionStatusLabel, FileVersionManager fileVersionManager, TreeManipulator treeManipulator)
clientFrame
- to initialize the field clientFrametable_FileInfo
- to initialize the field table_FileInfoprojectDBManager
- to initialize the field projectDBManagerselectionStatusLabel
- to initialize the field selectionStatusLabelfileVersionManager
- to initialize the field fileVersionManagertreeManipulator
- to initialize the field treeManipulatorMethod Detail |
public void initializeTable()
public void reInitializeFilesInTable(Directory currentDirectory, java.lang.String selectionInfo) throws java.lang.Throwable
currentDirectory
- The directory whose files are to be shown by refreshingselectionInfo
- Information of the currentDirectory that is to be
shown on the status bar. If it is null then the directory
information string will be reconstructedpublic void reInitializeTableToEmpty() throws java.lang.Throwable
public void resetSelectionStatus(java.lang.String selectionInfo)
selectionInfo
- Information othat is to be shown on the status barpublic File getSelectedFile()
public int getSelectedFileIndex()
public File[] getSelectedFiles()
public java.lang.String[] getSelectedFileIDs()
public void unSelectFiles()
public void addFileForCallback(java.lang.String parentID, File newFile)
parentID
- ID of the directory to which the file is added by another clientnewFile
- Information of the new file is added by another clientpublic void updateFileForCallback(File newFile)
newFile
- Information of the file that is updated by another clientpublic void deleteFileForCallback(java.lang.String fileID)
fileID
- ID of the file that is deleted by another clientpublic void changeFileCheckingStatusForCallback(java.lang.String fileID, boolean ckeckedOut, java.lang.String checkOutUser)
fileID
- ID of the file whose checking satus is changed by another clientckeckedOut
- if true then it is understood that file is checked out, or else
chcked in or undo check out.checkOutUser
- ID of the user doing the checking operation
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |