public interface FilePanel
| Modifier and Type | Method and Description |
|---|---|
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 |
setGridBorderColor(Color color)
Set color of files list grid border.
|
void |
setTableHeaderBackColor(Color color)
Set back color of table header
|
void |
setTableHeaderFont(Font font)
Set table header text font
|
void |
setTableHeaderTextColor(Color color)
Set text color of table header
|
void |
setTransferHandler(TransferHandler newHandler)
Transfer handler, to manage copy/paste operations.
|
void addFiles(File[] f, File root)
f - An array of files to add.root - The top level of a directory hierarchy to addFileData[] getFiles()
int getFilesLength()
void removeSelected()
void removeAll()
void remove(FileData fileData)
fileData - The file to be removed.void clearSelection()
void focusTable()
FileData getFileDataAt(Point point)
point - The pointComponent getDropComponent()
JUploadPanel, when initializing the DropTarget.void setTransferHandler(TransferHandler newHandler)
newHandler - JComponent.setTransferHandler(TransferHandler)ActionMap getActionMap()
JComponent.getActionMap()void setGridBorderColor(Color color)
color - awt Colorvoid setTableHeaderBackColor(Color color)
color - awt Colorvoid setTableHeaderTextColor(Color color)
color - awt Colorvoid setTableHeaderFont(Font font)
color - awt ColorCopyright © 2012. All Rights Reserved.