protected class GralFileSelector.FileSelectList extends GralSelectList<FileRemote>
GralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidget
Modifier and Type | Field and Description |
---|---|
(package private) GralFileSelector |
outer |
actions, keyLeft, keyLeft2, keyRight, keyRight2, version, wdgdTable
_cdata, _wdgPos, bVisibleState, gralMng, name, pixSize, sVersion
Constructor and Description |
---|
FileSelectList(GralPos refPos,
GralFileSelector outer,
java.lang.String posName,
int rows,
int[] columns) |
Modifier and Type | Method and Description |
---|---|
void |
actionLeft(java.lang.Object userData,
GralTableLine_ifc<FileRemote> line)
The 'action left' for the FileSelector shows the parent directory.
|
boolean |
actionOk(java.lang.Object userData,
GralTableLine_ifc<FileRemote> line)
Action if a table line is selected and entered.
|
void |
actionRight(java.lang.Object userData,
GralTableLine_ifc<FileRemote> 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<FileRemote> line) |
boolean |
actionUserKey(int keyCode,
java.lang.Object oData,
GralTableLine_ifc<FileRemote> lineP)
Action if a table line is selected and any other key is pressed or the context menu is invoked.
|
createImplWidget_Gthread, getFocusedWidget, isInFocus, isVisible, remove, removeImplWidget_Gthread, set, setFocus, setFocus, setFocusedWidget, setLeftRightKeys, setLeftRightKeys, setVisible, stop, XXXXsetToPanel
checkImplWidgetCreation, createImplWidget, getImplAccess, getName, gralMng, hasFocus, pos, resizePostPreparation, setFocused, toString, toString
final GralFileSelector outer
FileSelectList(GralPos refPos, GralFileSelector outer, java.lang.String posName, int rows, int[] columns)
public boolean actionOk(java.lang.Object userData, GralTableLine_ifc<FileRemote> line)
GralSelectList
actionOk
in class GralSelectList<FileRemote>
userData
- The user data stored in the line of table.public void actionLeft(java.lang.Object userData, GralTableLine_ifc<FileRemote> 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<FileRemote> 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<FileRemote> line)
public boolean actionUserKey(int keyCode, java.lang.Object oData, GralTableLine_ifc<FileRemote> lineP)
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.lineP
- The table line.