public class FcmdFileCard extends GralFileSelector
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.FileSelectList, GralFileSelector.MenuTexts, GralFileSelector.WindowConfirmSearch
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccess
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
(package private) GralUserAction |
actionFocused
This action is bound in the File selection table.
|
(package private) GralUserAction |
actionOnFileSelection
Action to show the file properties in the info line.
|
(package private) GralUserAction |
actionSetFileLineAttrib
Sets the color of the table line adequate to the select state of the file.
|
(package private) GralUserAction |
actionSetFromTabSelection |
(package private) GralColor[] |
colorSelectFocused123 |
(package private) FcmdFavorCard |
favorCard
Table widget for the select table of the file tab.
|
(package private) FcmdFavorPathSelector.FavorPath |
favorPathInfo
Association to the current used favor path selection.
|
(package private) java.lang.String |
label
The label which is written in the line of favor file after l:label m:label r:label
It is the label on the tab.
|
(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 |
sLocaldir |
(package private) java.lang.String |
sLocalpath |
static int |
version
Version, history and license
2012-03-09 Hartmut new: Now the synchronization between 2 panels works independent of
the comparison with a improved algorithm.
|
(package private) GralHorizontalSelector<java.lang.Object> |
wdgCardSelector |
(package private) int |
zDirSync
length of sDirSync or -1
It will be set in
FcmdFilesCp.setDirs() . |
actionOnFileSelected, callbackChildren1, contextMenuTexts, currentDir, currentFile, durationFillin, durationRefresh, favorList, kColDate, kColDesignation, kColFilename, kColLength, kSortDateNewest, kSortDateOldest, kSortExtension, kSortExtensionNonCase, kSortName, kSortNameNonCase, kSortSizeLargest, kSortSizeSmallest, refreshCount, selectList, showTime, sVersion, timeFilesRefreshed, timeFillinFinished, timeFillinInvoked, widgBtnFavor, widgdPathDir, windSearch, zColumns
_wdgImpl, bEditable, bHasFocus, bShouldInitialize, buildMng, bVisibleState, cfg, contextMenu, dateUser, dyda, htmlHelp, itsMng, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, whatIs
Constructor and Description |
---|
FcmdFileCard(FcmdLeftMidRightPanel mainPanelP,
java.lang.String label)
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.). |
boolean |
actionUserKey(int keyCode,
java.lang.Object oData,
GralTableLine_ifc line)
This method is called on any user key or mouse event while operating in the file table.
|
private void |
buildGraphic() |
boolean |
remove()
Removes this file card with its widgets and data.
|
(package private) FileCompare.Result |
searchCompareResult(java.io.File file)
Searches whether the given file has a comparison result in this file card.
|
private 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 |
setFocus()
Overrides the
GralFileSelector.setFocus() and calls him, before that 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. |
(package private) void |
setFocusFavorOrFile() |
(package private) void |
setNewContent(FcmdFavorPathSelector.FavorPath favorPathInfoP,
FileRemote dir)
Sets a new content for this file table because another favor or tab is selected
|
(package private) void |
syncWithSecondPanel(java.lang.String sFileName) |
java.lang.String |
toString()
Especially for test and debug, short info about widget.
|
buildKey, checkRefresh, createImplWidget_Gthread, createWindowConfirmSearchGthread, currentDir, currentFile, fillIn, fillInCurrentDir, fillInOriginDir, forcefillIn, getCurrentDir, getCurrentDirPath, getSelectedFiles, selectFile, setActionOnEnterDirectory, setActionOnEnterFile, setActionOnEnterPathNewFile, setActionSetFileLineAttrib, setDateFormat, setNameWidget, setOriginDir, setSortOrder, setSortOrderFiles, setVisible, specifyActionOnFileSelected, XXXgetSelectedFile
chgPos, clearShowParam, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFormat, getGralWidget, getHtmlHelp, getImpl, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getValue, getVariable, getVariableFromContentInfo, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, pos, refreshFromVariable, refreshFromVariable, repaint, repaint, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPanelMng, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, setValue, setValue, setValue, setVisibleState, setVisibleStateWidget, specifyActionChange, specifyContextMenu, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThread, XXXsetVisibleGThread
public static final int version
searchCompareResult(File)
supports working with
comparison result, used to set equal if a file was copied.
FcmdFavorCard favorCard
final FcmdLeftMidRightPanel mainPanel
GralColor[] colorSelectFocused123
final java.lang.String nameFilePanel
final java.lang.String label
final GralHorizontalSelector<java.lang.Object> wdgCardSelector
FcmdFavorPathSelector.FavorPath favorPathInfo
FcmdFileCard otherFileCardtoSync
java.lang.String sDirSync
otherFileCardtoSync
.
It will be set in FcmdFilesCp.setDirs()
.int zDirSync
FcmdFilesCp.setDirs()
.java.lang.String sLocalpath
java.lang.String sLocaldir
GralUserAction actionOnFileSelection
GralUserAction actionSetFileLineAttrib
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.GralUserAction actionSetFromTabSelection
FcmdFileCard(FcmdLeftMidRightPanel mainPanelP, java.lang.String label)
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.private void buildGraphic()
void setNewContent(FcmdFavorPathSelector.FavorPath favorPathInfoP, FileRemote dir)
favorPathInfoP
- dir
- mode
- 0 no tab, 1 -temporary tab, 2 - new tabvoid setFocusFavorOrFile()
public void setFocus()
GralFileSelector.setFocus()
and calls him, before that 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.setFocus
in interface GralWidget_ifc
setFocus
in class GralFileSelector
GralWidget_ifc.setFocus()
public boolean remove()
remove
in interface Removeable
remove
in class GralFileSelector
FileCompare.Result searchCompareResult(java.io.File file)
file
- The file, usual selected in the file tablepublic boolean actionUserKey(int keyCode, java.lang.Object oData, GralTableLine_ifc line)
GralFileSelector
actionUserKey
in class GralFileSelector
oData
- The user data stored in the line of table.line
- The table line.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)
private void setActFilePanel_setColorCurrLine()
Fcmd.lastFavorCard
, FcmdLeftMidRightPanel.actFileCard
,
Fcmd.lastFilePanels
.public java.lang.String toString()
GralWidget
toString
in class GralWidget
Object.toString()