public interface FilePanel
| Modifier and Type | Interface and Description |
|---|---|
static class |
FilePanel.FileListViewMode
This enumeration lists the available display modes, for the file list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFiles(File[] f)
Add multiple files to this panel.
|
void |
cleanHierarchy()
Removes empty folders in the TreeView hierarchy.
|
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.
|
FilePanel.FileListViewMode |
getFileListMode()
Set the view mode, for the file list.
|
List<FileData> |
getFiles()
Retrieve all currently stored files.
|
int |
getFilesLength()
Retrieve the number of file entries in the JTable.
|
void |
reload()
Force the reloading of the file structure, and the refreshing of the display
|
void |
remove(FileData fileData)
Remove a specified file entry.
|
void |
remove(FileData[] files)
Remove an array of files, typically an
UploadFilePacket. |
void |
removeAll()
Removes all file entries.
|
void |
removeFileNotToUpload()
Removes all files, which have the uploadFlag set to false.
|
void |
removeSelected()
Removes all currently selected file entries.
|
void |
setFileListViewMode(FilePanel.FileListViewMode fileListViewMode)
Set the view mode, for the file list.
|
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.
|
FilePanel.FileListViewMode getFileListMode()
#fileListViewModevoid setFileListViewMode(FilePanel.FileListViewMode fileListViewMode)
fileListViewMode - The view mode to set.#fileListViewModevoid addFiles(File[] f)
f - An array of files to add.List<FileData> getFiles()
int getFilesLength()
void removeSelected()
void removeAll()
void remove(FileData[] files)
UploadFilePacket.fileData - The files to remove.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 Colorvoid removeFileNotToUpload()
FileData.getUploadFlag()void cleanHierarchy()
reload() methodvoid reload()
Copyright © 2015. All rights reserved.