protected class GralFileSelector.FileSelectList extends GralSelectList<FileRemote>
Modifier and Type | Field and Description |
---|---|
(package private) GralFileSelector |
outer |
Constructor and Description |
---|
FileSelectList(GralFileSelector outer,
java.lang.String posName,
int rows,
int[] columns,
char size) |
Modifier and Type | Method and Description |
---|---|
void |
actionLeft(java.lang.Object userData,
GralTableLine_ifc line)
The 'action left' for the FileSelector shows the parent directory.
|
boolean |
actionOk(java.lang.Object userData,
GralTableLine_ifc line)
Action if a table line is selected and entered.
|
void |
actionRight(java.lang.Object userData,
GralTableLine_ifc line)
Action if a table line is selected and ctrl-right is pressed or the release button is pressed.
|
void |
actionRightZip(java.lang.Object userData,
GralTableLine_ifc line) |
boolean |
actionUserKey(int keyCode,
java.lang.Object oData,
GralTableLine_ifc line)
Action if a table line is selected and any other key is pressed or the context menu is invoked.
|
private java.lang.String |
getParentDir(java.io.File data) |
createImplWidget_Gthread, remove, set, setFocus, setLeftRightKeys, stop, XXXsetToPanel
final GralFileSelector outer
FileSelectList(GralFileSelector outer, java.lang.String posName, int rows, int[] columns, char size)
public boolean actionOk(java.lang.Object userData, GralTableLine_ifc line)
GralSelectList
actionOk
in class GralSelectList<FileRemote>
userData
- The user data stored in the line of table.private java.lang.String getParentDir(java.io.File data)
public void actionLeft(java.lang.Object userData, GralTableLine_ifc line)
GralFileSelector.currentDir
is used to get its parent to show.actionLeft
in class GralSelectList<FileRemote>
line
- the current line. It is unused because userData contains the file.userData
- The GralTableLine_ifc.getUserData()
from line.
It is a java.io.File or a FileRemote
which is currently selected. This file is stored as current for the current directory.
The parent of the file is the directory which is shown yet.GralSelectList.actionLeft(java.lang.Object, org.vishia.gral.ifc.GralTableLine_ifc)
public void actionRight(java.lang.Object userData, GralTableLine_ifc line)
GralSelectList
actionRight
in class GralSelectList<FileRemote>
userData
- The user data stored in the line of table.public void actionRightZip(java.lang.Object userData, GralTableLine_ifc line)
public boolean actionUserKey(int keyCode, java.lang.Object oData, GralTableLine_ifc line)
GralSelectList
actionUserKey
in class GralSelectList<FileRemote>
keyCode
- code or mouse code, one of constans from KeyCode
.oData
- The user data stored in the line of table.line
- The table line.