public class FcmdFavorCard extends GralSelectList<FcmdFavorPathSelector.FavorPath>
Modifier and Type | Field and Description |
---|---|
(package private) GralUserAction |
actionFavorSelected
Action is called any time if a line was focused in the favor table.
|
(package private) FcmdFileCard |
fileTable |
(package private) java.util.Map<java.lang.String,FcmdFavorPathSelector.FavorPath> |
indexFavorPaths
Index of all entries in the visible list.
|
(package private) Fcmd |
main
The component
|
(package private) FcmdLeftMidRightPanel |
mainPanel
The tabbed panel where this class is member of.
|
(package private) java.lang.String |
sActSelectedFavorPath
Stores the last selected and used favor path (pressing enter or double click)
to select the same line if the favor path will be re-opened.
|
Constructor and Description |
---|
FcmdFavorCard(Fcmd main,
java.lang.String name,
FcmdFileCard fileTable,
FcmdLeftMidRightPanel panel) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionLeft(java.lang.Object userData,
GralTableLine_ifc line)
Action if a table line is selected and ctrl-left is pressed or the release button is pressed.
|
protected boolean |
actionOk(java.lang.Object userData,
GralTableLine_ifc line)
Action if a table line is selected and entered.
|
protected 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.
|
protected boolean |
actionUserKey(int key,
java.lang.Object userData,
GralTableLine_ifc line)
Handle the keys for the JavaCommander-Selection of favorites
sh-F1 .. shF3: activates fileSelector for left, middle and right panel.
|
(package private) GralTableLine_ifc<FcmdFavorPathSelector.FavorPath> |
add(FcmdFavorPathSelector.FavorPath favorPathInfo)
Adds a line to this table.
|
(package private) void |
clear() |
(package private) void |
fillFavorPaths(FcmdFavorPathSelector.FavorFolder favorTabInfo)
Add all favor paths from the SelectTab newly
|
boolean |
remove()
Removes this file card with its widgets and data.
|
boolean |
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. |
java.lang.String |
toString() |
createImplWidget_Gthread, set, setLeftRightKeys, XXXsetToPanel
final FcmdLeftMidRightPanel mainPanel
final FcmdFileCard fileTable
java.lang.String sActSelectedFavorPath
java.util.Map<java.lang.String,FcmdFavorPathSelector.FavorPath> indexFavorPaths
GralUserAction actionFavorSelected
public FcmdFavorCard(Fcmd main, java.lang.String name, FcmdFileCard fileTable, FcmdLeftMidRightPanel panel)
GralTableLine_ifc<FcmdFavorPathSelector.FavorPath> add(FcmdFavorPathSelector.FavorPath favorPathInfo)
ix
- Show which index is used for a local table, 0..2 for left, mid, right,
than show the label in the left cell (column)favorPathInfo
- The favorite infovoid clear()
void fillFavorPaths(FcmdFavorPathSelector.FavorFolder favorTabInfo)
favorTabInfo
- public boolean 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 class GralSelectList<FcmdFavorPathSelector.FavorPath>
public boolean remove()
remove
in interface Removeable
remove
in class GralSelectList<FcmdFavorPathSelector.FavorPath>
protected boolean actionOk(java.lang.Object userData, GralTableLine_ifc line)
GralSelectList
actionOk
in class GralSelectList<FcmdFavorPathSelector.FavorPath>
userData
- The user data stored in the line of table.protected void actionLeft(java.lang.Object userData, GralTableLine_ifc line)
GralSelectList
actionLeft
in class GralSelectList<FcmdFavorPathSelector.FavorPath>
userData
- The user data stored in the line of table.protected void actionRight(java.lang.Object userData, GralTableLine_ifc line)
GralSelectList
actionRight
in class GralSelectList<FcmdFavorPathSelector.FavorPath>
userData
- The user data stored in the line of table.protected boolean actionUserKey(int key, java.lang.Object userData, GralTableLine_ifc line)
actionUserKey
in class GralSelectList<FcmdFavorPathSelector.FavorPath>
key
- code or mouse code, one of constans from KeyCode
.userData
- The user data stored in the line of table.line
- The table line.GralSelectList.actionUserKey(int, java.lang.Object, org.vishia.gral.ifc.GralTableLine_ifc)
public java.lang.String toString()
toString
in class java.lang.Object