|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
com.lightdev.app.filemanager.ui.FileTable
public class FileTable
Extension of JTable to display a table of files from a local or remote file system folder using implementations based on the Light Development File System.
| Nested Class Summary | |
|---|---|
class |
FileTable.FileTableCellRenderer
a cell renderer for file table cells |
class |
FileTable.FileTableHeaderRenderer
a renderer for FileTable headers |
class |
FileTable.RightAlignedCellRenderer
a table cell renderer to show cell contents right aligned |
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
FileTable(FileSystem fileSystem,
FileRef initialFolder)
Create a new instance of class FileTable |
|
| Method Summary | |
|---|---|
void |
addFileTableListener(FileTableListener l)
add a FileTableListener |
void |
contentChanged(FileSystemEvent event)
update the file table model after changes in the file system |
void |
fireFolderChanged()
notify FileTableListeners that the currently displayed folder has changed |
TableCellRenderer |
getCellRenderer(int row,
int column)
get the cell renderer of this FileTable |
FileSystem |
getFileSystem()
get the file system this instance of FileTable uses to display folder contents |
FileRef |
getFolder()
get the folder that is displayed right now |
String |
getFolderName()
get the name of the currently displayed |
FileRef |
getSelectedFile()
the the file or folder that is currently selected |
FileRef[] |
getSelectedFiles()
get the files or folders that are selected right now |
Transferable |
getTransferData()
get the files or folders that are selected right now so that they can be transferred to the clipboard |
void |
handleFileAction(String ac)
handle actions such as create folder, extract archive, etc. as defined by an instance of class FileActions. |
void |
importTransferData(Transferable t,
int action)
handle copy and move actions (drag and drop, cut and paste) to this table component |
void |
mouseClicked(MouseEvent e)
use mouseClicked event to open a folder that has been double clicked |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
openFolder(FileRef folder)
display the given folder |
void |
openParentFolder()
open the parent folder of the folder that is displayed right now |
void |
openRoots()
display the root folder(s) |
void |
removeFileTableListener(FileTableListener l)
remove a FileTableListener |
void |
valueChanged(TreeSelectionEvent e)
open the folder that is selected through the file tree |