|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
wjhk.jupload2.gui.FilePanelTableImp
public class FilePanelTableImp
Implementation of the FilePanel : it creates the
FilePanelJTable, and handles the necessary
functionalities.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FilePanelTableImp(JUploadPanel jup,
UploadPolicy uploadPolicy)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addFiles(File[] f,
File root)
Add multiple files to this panel. |
void |
clearSelection()
Clear the current selection in the JTable. |
void |
focusTable()
Requests focus for the JTable. |
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)
Removes all occurences of a file from the list. |
void |
removeAll()
Removes all file entries. |
void |
removeSelected()
Removes all currently selected file entries. |
| Methods inherited from class java.awt.Panel |
|---|
addNotify, getAccessibleContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilePanelTableImp(JUploadPanel jup,
UploadPolicy uploadPolicy)
jup - The upload panel (parent).uploadPolicy - The upload policy to apply.| Method Detail |
|---|
public final void addFiles(File[] f,
File root)
throws JUploadExceptionStopAddingFiles
FilePanel
addFiles in interface FilePanelf - An array of files to add.root - The toplevel of a directory hierarchy to add
JUploadExceptionStopAddingFilesFilePanel.addFiles(java.io.File[],java.io.File)public final FileData[] getFiles()
FilePanel
getFiles in interface FilePanelFilePanel.getFiles()public final int getFilesLength()
FilePanel
getFilesLength in interface FilePanelFilePanel.getFilesLength()public final void removeSelected()
FilePanel
removeSelected in interface FilePanelFilePanel.removeSelected()public final void removeAll()
FilePanel
removeAll in interface FilePanelremoveAll in class ContainerContainer.removeAll()public final void remove(FileData fileData)
remove in interface FilePanelfileData - The file to removepublic final void clearSelection()
clearSelection in interface FilePanelpublic final void focusTable()
FilePanel
focusTable in interface FilePanelFilePanel.focusTable()public FileData getFileDataAt(Point point)
FilePanel
getFileDataAt in interface FilePanelpoint - The point
FilePanel.getFileDataAt(Point)public Component getDropComponent()
JUploadPanel, when initializing the DropTarget.
getDropComponent in interface FilePanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||