wjhk.jupload2.gui
Interface FilePanel

All Known Implementing Classes:
FilePanelTableImp

public interface FilePanel

Defines the interface used in the applet, when dealing with the file panel.


Method Summary
 void addFiles(File[] f, File root)
          Add multiple files to this panel.
 void clearSelection()
          Clears the current selection of the JTable.
 void focusTable()
          Requests focus for the JTable.
 ActionMap getActionMap()
          Allows to get standard action map, like paste action.
 Component getDropComponent()
          Return the component on which drop event can occur.
 FileData getFileDataAt(Point point)
          Ask for the file contained below the specific point on the screen.
 FileData[] getFiles()
          Retrieve all currently stored files.
 int getFilesLength()
          Retrieve the number of file entries in the JTable.
 void remove(FileData fileData)
          Remove a specified file entry.
 void removeAll()
          Removes all file entries.
 void removeSelected()
          Removes all currently selected file entries.
 void setTransferHandler(TransferHandler newHandler)
          Transfer handler, to manage copy/paste operations.
 

Method Detail

addFiles

void addFiles(File[] f,
              File root)
              throws JUploadExceptionStopAddingFiles
Add multiple files to this panel.

Parameters:
f - An array of files to add.
root - The toplevel of a directory hierarchy to add
Throws:
JUploadExceptionStopAddingFiles

getFiles

FileData[] getFiles()
Retrieve all currently stored files.

Returns:
an array of files, currently managed by this instance.

getFilesLength

int getFilesLength()
Retrieve the number of file entries in the JTable.

Returns:
the current number of files, held by this instance.

removeSelected

void removeSelected()
Removes all currently selected file entries.


removeAll

void removeAll()
Removes all file entries.


remove

void remove(FileData fileData)
Remove a specified file entry.

Parameters:
fileData - The file to be removed.

clearSelection

void clearSelection()
Clears the current selection of the JTable.


focusTable

void focusTable()
Requests focus for the JTable.


getFileDataAt

FileData getFileDataAt(Point point)
Ask for the file contained below the specific point on the screen.

Parameters:
point - The point
Returns:
The return instance of File.

getDropComponent

Component getDropComponent()
Return the component on which drop event can occur. Used by JUploadPanel, when initializing the DropTarget.

Returns:
The drop component target

setTransferHandler

void setTransferHandler(TransferHandler newHandler)
Transfer handler, to manage copy/paste operations.

Parameters:
newHandler -
See Also:
JComponent.setTransferHandler(TransferHandler)

getActionMap

ActionMap getActionMap()
Allows to get standard action map, like paste action.

Returns:
Get the current actionMap
See Also:
JComponent.getActionMap()