public class FcmdFileCard extends GralFileSelector
GralFileSelector
. This allows same handling for the files,
but additional handling for favors:
#wdgFavorCard
is referenced here and contains names and FcmdFavorCard.FavorPath
to fill different directories to this GralFileSelector
base data.
FcmdFavorCard
FcmdFavorPathSelector.bSyncMidRight
then
syncWithSecondPanel(String)
is called with the filename. Therewith the same file
in the second panel (middle or right) will be selected if it exists. If an existing directory
is selected, the other file card follows it if it exists. So the user can walk through two file trees
which have the same structure, but maybe some different content. It is proper for comparison.
GralFileSelector.Callbacks, GralFileSelector.Constants, GralFileSelector.FavorPath, GralFileSelector.FileSelectList, GralFileSelector.Gui, GralFileSelector.InternalData, GralFileSelector.MenuTexts, GralFileSelector.WindowConfirmSearch
GralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidget
Modifier and Type | Field and Description |
---|---|
(package private) GralUserAction |
actionFocused
This action is bound in the File selection table.
|
private GralUserAction |
actionOnEnterFile
This action is associated to the
FcmdFileCard
respectively its base class GralFileSelector.setActionOnEnterFile(GralUserAction)
It calls FcmdExecuter.executeFileByExtension(File) . |
(package private) GralUserAction |
actionOnFileSelection
Action to show the file properties in the info line.
|
(package private) GralUserAction |
actionSaveFavors |
(package private) GralColor[] |
colorSelectFocused123
Three colors for the current line in the file card.
|
(package private) FcmdFavorPathSelector.FavorFolder |
favorFolder
Aggregation to the appropriate entry of the favors.
|
(package private) Fcmd |
main
The component
|
(package private) FcmdLeftMidRightPanel |
mainPanel
The left, mid or right main panel where this tabbed file table is associated.
|
(package private) java.lang.String |
nameFilePanel
The search-name of the tabbed file panel where this Table is placed on.
|
(package private) FcmdFileCard |
otherFileCardtoSync
If not null, then should synchronize with this file card.
|
(package private) java.lang.String |
sDirSync
If not null, then it is the base dir for synchronization with the
otherFileCardtoSync . |
(package private) java.lang.String |
sTabSelection
It is build from the
#label and the #favorPathInfo . |
(package private) java.lang.String |
syncPartnerTabSelection
If not null then the name of the own favor card and the favor card from the other panel for sync.
|
(package private) java.lang.String |
syncTabSelection
If not null then the name of the own favor card and the favor card from the other panel for sync.
|
static int |
version
Version, history and license
2023-01-14 fixed: Now from begin the current tab is green and recognized as current.
|
(package private) int |
zDirSync
length of sDirSync or -1
It will be set in
FcmdFilesCp.setDirs() . |
contextMenuTexts, fillinEv, gui, idata, sVersion, windSearch
_cdata, _wdgPos, bVisibleState, gralMng, name, pixSize
Constructor and Description |
---|
FcmdFileCard(GralPos refPos,
FcmdLeftMidRightPanel mainPanelP,
FcmdFavorPathSelector.FavorFolder favorFolder)
Creates the cards with tabs for the files and for the favorite paths.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionOnFileSelection(FileRemote file,
java.lang.String sFileName)
This routine is invoked from
actionOnFileSelection action listener whenever a file in any file card
will be selected (key up, down, mouse click etc.). |
protected void |
setActFilePanel_setColorCurrLine()
Sets the panel which contains this File card as actual, adjust the order of actual file panels
and sets the color of the current line of table of all 3 current file panels to the 3-stage color
to see which table has the focus.
|
void |
setFocused(boolean bGained)
This operation can be called from the implementation graphic if the focus is gained for an implementation widget.
|
(package private) void |
syncWithSecondPanel(java.lang.String sFileName) |
actionUserKey, add, addFavor, addFavor, buildKey, checkRefresh, clear, closeDialog, createGralFileSelectorWindow, currentDir, currentFile, doActionExec, doActionGetFileName, doActionSelectFileTableFromFavor, doActivateFavor, fillFavorPaths, fillIn, fillIn, fillInCurrentDir, fillInOriginDir, forcefillIn, getCurrentDir, getCurrentDirPath, getFocusedWidget, getLabelCurrFavor, getSelectedFiles, isInFocus, isVisible, openDialog, refresh, remove, selectFile, selectFileTable, selectFileTableFromFavor, setActionOnEnterDirectory, setActionOnEnterFile, setActionOnEnterPathNewFile, setActionOnFileSelected, setActionOnFocusedFileTable, setActionOnSaveButton, setActionSaveFavors, setActionSetFileLineAttrib, setDateFormat, setFocus, setFocus, setFocusedWidget, setOriginDir, setSortOrder, setVisible, showFileInfo, updateFavorWithCurrentDir, XXXgetSelectedFile
checkImplWidgetCreation, createImplWidget_Gthread, createImplWidget, getImplAccess, getName, gralMng, hasFocus, pos, removeImplWidget_Gthread, resizePostPreparation, toString, toString
public static final int version
GralFileSelector
, refactoring.
#searchCompareResult(File)
supports working with
comparison result, used to set equal if a file was copied.
final Fcmd main
final FcmdLeftMidRightPanel mainPanel
final FcmdFavorPathSelector.FavorFolder favorFolder
GralColor[] colorSelectFocused123
final java.lang.String nameFilePanel
java.lang.String sTabSelection
#label
and the #favorPathInfo
. FavorPath#selectName
due to the selected favor which is shown in this file table.
It is used to detect the correct other sync table, see syncTabSelection
java.lang.String syncTabSelection
java.lang.String syncPartnerTabSelection
FcmdFileCard otherFileCardtoSync
java.lang.String sDirSync
otherFileCardtoSync
.
It will be set in FcmdFilesCp.setDirs()
.int zDirSync
FcmdFilesCp.setDirs()
.GralUserAction actionOnFileSelection
GralUserAction actionFocused
#colorSelectNonFocused
to show that are not
the first one. The file table of this is set with the #colorSelectFocused
.
Twice the Fcmd.lastFilePanels
list is ordered with this panel as first one.private GralUserAction actionOnEnterFile
FcmdFileCard
respectively its base class GralFileSelector.setActionOnEnterFile(GralUserAction)
It calls FcmdExecuter.executeFileByExtension(File)
.GralUserAction actionSaveFavors
FcmdFileCard(GralPos refPos, FcmdLeftMidRightPanel mainPanelP, FcmdFavorPathSelector.FavorFolder favorFolder)
mainPanelP
- The left, mid or right panel where this cards are assigned tolabel
- The label of the tab, it builds the name of all widgets.protected void actionOnFileSelection(FileRemote file, java.lang.String sFileName)
actionOnFileSelection
action listener whenever a file in any file card
will be selected (key up, down, mouse click etc.).
The routine writes infos about the file and may synchronize with another file card.file
- The currently selected file.sFileName
- Text in the cell, especially ".." for the parent dir entry.void syncWithSecondPanel(java.lang.String sFileName)
public void setFocused(boolean bGained)
setFocused
in interface GralWidgetBase_ifc
setFocused
in class GralWidgetBase
bGained
- protected void setActFilePanel_setColorCurrLine()
Fcmd#lastFavorCard
, FcmdLeftMidRightPanel.actFileCard
,
Fcmd.lastFilePanels
.