public class GralFileProperties extends GralWidgetBase
GralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidget
Modifier and Type | Field and Description |
---|---|
(package private) FileRemote |
actDir
The file given on
showFileInfos(FileRemote, GralFileSelector) . |
(package private) FileRemote |
actFile
The file given on
showFileInfos(FileRemote, GralFileSelector) . |
(package private) GralUserAction |
actionBtnCntLen
Action for Key F2 for view command.
|
(package private) GralUserAction |
actionButton
Action for all buttons of 'file properties' window:
|
(package private) GralUserAction |
actionInvisible |
(package private) GralUserAction |
actionRefresh
This action is called after changing the file.
|
(package private) GralUserAction |
actionsetNameToRenameCopy |
(package private) boolean |
bUnixSystem
True if it is a unix system.
|
(package private) java.lang.String |
buttonFilePropsAbort |
(package private) java.lang.String |
buttonFilePropsChanging |
(package private) java.lang.String |
buttonFilePropsChg |
(package private) java.lang.String |
buttonFilePropsChgRecurisve |
(package private) java.lang.String |
buttonFilePropsCntLen |
(package private) java.lang.String |
buttonFilePropsCopy |
(package private) java.lang.String |
buttonFilePropsCopying |
(package private) java.lang.String |
buttonFilePropsGetAll |
(package private) java.lang.String |
buttonFilePropsOk |
(package private) java.lang.String |
buttonFilePropsRetry |
(package private) FileRemoteProgressEventConsumer |
callbackChgProps |
(package private) FileRemoteProgressEventConsumer |
callbackCntLen |
(package private) FileRemoteProgressEventConsumer |
callbackCopyMove
Callback this in the execution thread of the file system.
|
(package private) GralColor |
colorChanged |
(package private) GralColor |
colorGrayed |
(package private) GralColor |
colorProgress |
(package private) GralColor |
colorUnchanged |
(package private) GralColor |
colorWrong |
(package private) EventSource |
evSrc |
(package private) GralFileSelector |
fileSelector
The fileSelector given on
showFileInfos(FileRemote, GralFileSelector) . |
(package private) java.text.DateFormat |
formatDate |
(package private) boolean |
isVisible
True then the window is opened.
|
(package private) int |
nFlagsOriginal
The flags how written on
#showFileInfos(FileRemote)
It is compared with maybe changed content in the widgRd etc.. |
(package private) GralPanelContent |
panel |
(package private) static java.lang.String |
sCmdAbort |
(package private) static java.lang.String |
sCmdChg |
(package private) static java.lang.String |
sCmdChgRecurs |
(package private) static java.lang.String |
sCmdCopy |
(package private) static java.lang.String |
sCmdQuit |
(package private) java.lang.String |
sDateOriginal
The time stamp string how written on
#showFileInfos(FileRemote)
It is compared with maybe changed content in the widgDate . |
(package private) java.lang.String |
sHidden |
(package private) java.lang.String |
sNameNew |
(package private) java.lang.String |
sNonHidden |
(package private) java.lang.String |
sNonSubdir |
(package private) java.lang.String |
sRdOnly |
(package private) java.lang.String |
sSubdir |
(package private) java.lang.String |
sWidgCallbackTextNok
This text should be set after action to
widgBtnCallback . |
(package private) java.lang.String |
sWidgCallbackTextOk
This text should be set after action to
widgBtnCallback . |
(package private) java.lang.String |
sWrAble |
static java.lang.String |
version
Version, history and license.
|
(package private) GralButton |
widgBtnCallback
This button is changed on start of an file action.
|
(package private) GralButton |
widgChgFile
Action button.
|
(package private) GralButton |
widgChgRecurs
Action button.
|
(package private) GralButton |
widgCopyFile
Action button.
|
(package private) GralButton |
widgCreateDirFile
Action button.
|
(package private) GralTextField |
widgDate |
(package private) GralButton |
widgDelFile
Action button.
|
(package private) GralTextField |
widgDir |
(package private) GralButton |
widgDirectory |
(package private) GralButton |
widGetAllProps
Action button.
|
(package private) GralButton[] |
widgEx |
(package private) GralButton |
widgGID |
(package private) GralButton |
widgHidden |
(package private) GralTextField |
widgLength |
(package private) GralTextField |
widgLink |
(package private) GralTextField |
widgName |
(package private) GralTextField |
widgNameNew |
(package private) GralButton[] |
widgRd |
(package private) GralButton |
widgRename
Action button.
|
(package private) GralButton |
widgSticky |
(package private) GralButton |
widgUID |
(package private) GralButton[] |
widgWr |
(package private) GralWindow_ifc |
windFileProps |
_cdata, _wdgPos, bVisibleState, gralMng, name, pixSize, sVersion
Constructor and Description |
---|
GralFileProperties(GralPos refPos,
java.lang.String sPosName,
GralWindow wind)
Ctor either with a given new window or to create a Panel
|
Modifier and Type | Method and Description |
---|---|
boolean |
createImplWidget_Gthread()
This operation is called to create the implementation widget appearance.
|
static GralFileProperties |
createWindow(GralPos refPosP,
java.lang.String sPosName,
java.lang.String sTitle)
Builds the content of the file property window.
|
(package private) boolean |
doActionButtons(GralWidget btn) |
GralWidgetBase_ifc |
getFocusedWidget()
Returns the widget which is in focus of a panel or comprehensive widget.
|
boolean |
isInFocus()
Returns true if this widget is the focused one.
|
boolean |
isVisible()
Returns whether the widget is visible or not.
|
(package private) void |
openDialog(FileRemote src,
GralFileSelector fileSelector)
Opens the view window and fills its content.
|
void |
removeImplWidget_Gthread()
Removes the implementation widget, maybe to re-create with changed properties
or also if the GralWidget itself should be removed.
|
void |
setActionRefresh(GralUserAction actionRefresh) |
void |
setFocus()
Sets the focus to the widget. .
|
void |
setFocus(int delay,
int latest) |
void |
setFocusedWidget(GralWidgetBase_ifc widg)
If this widget is a comprehensive widget or a panel, it sets one of the content as focused.
|
(package private) void |
setRename() |
boolean |
setVisible(boolean visible)
Sets this widget visible on graphic or invisible.
|
void |
showFileInfos(FileRemote src,
GralFileSelector fileSelector)
This can be called from outside to show the properties of the given file.
|
checkImplWidgetCreation, createImplWidget, getImplAccess, getName, gralMng, hasFocus, pos, remove, resizePostPreparation, setFocused, toString, toString
public static final java.lang.String version
GralFileSelector
GralColor colorChanged
GralColor colorProgress
GralColor colorUnchanged
GralColor colorWrong
GralColor colorGrayed
final java.lang.String buttonFilePropsChg
final java.lang.String buttonFilePropsChanging
final java.lang.String buttonFilePropsCopying
final java.lang.String buttonFilePropsRetry
final java.lang.String buttonFilePropsAbort
final java.lang.String buttonFilePropsOk
final java.lang.String buttonFilePropsCopy
final java.lang.String buttonFilePropsChgRecurisve
final java.lang.String buttonFilePropsGetAll
final java.lang.String buttonFilePropsCntLen
final GralWindow_ifc windFileProps
final GralPanelContent panel
final GralTextField widgName
final GralTextField widgNameNew
final GralTextField widgDir
final GralTextField widgLink
final GralTextField widgDate
final GralTextField widgLength
final GralButton[] widgRd
final GralButton[] widgWr
final GralButton[] widgEx
final GralButton widgUID
final GralButton widgGID
final GralButton widgSticky
final GralButton widgHidden
final GralButton widgDirectory
final GralButton widGetAllProps
final GralButton widgChgRecurs
final GralButton widgChgFile
final GralButton widgCopyFile
final GralButton widgDelFile
final GralButton widgRename
final GralButton widgCreateDirFile
GralButton widgBtnCallback
java.lang.String sWidgCallbackTextOk
widgBtnCallback
.java.lang.String sWidgCallbackTextNok
widgBtnCallback
.GralUserAction actionRefresh
setActionRefresh(GralUserAction)
.java.text.DateFormat formatDate
final java.lang.String sWrAble
final java.lang.String sRdOnly
final java.lang.String sHidden
final java.lang.String sNonHidden
final java.lang.String sSubdir
final java.lang.String sNonSubdir
static final java.lang.String sCmdChg
static final java.lang.String sCmdCopy
static final java.lang.String sCmdChgRecurs
static final java.lang.String sCmdQuit
static final java.lang.String sCmdAbort
boolean bUnixSystem
boolean isVisible
java.lang.String sNameNew
java.lang.String sDateOriginal
#showFileInfos(FileRemote)
It is compared with maybe changed content in the widgDate
.
Only if the content is changed, a new time stamp will be set.int nFlagsOriginal
#showFileInfos(FileRemote)
It is compared with maybe changed content in the widgRd
etc..
Only if the buttons are changed, a new time stamp will be set.FileRemote actFile
showFileInfos(FileRemote, GralFileSelector)
.FileRemote actDir
showFileInfos(FileRemote, GralFileSelector)
.GralFileSelector fileSelector
showFileInfos(FileRemote, GralFileSelector)
.
used for refresh.EventSource evSrc
GralUserAction actionButton
GralUserAction actionInvisible
FileRemoteProgressEventConsumer callbackChgProps
GralUserAction actionBtnCntLen
final FileRemoteProgressEventConsumer callbackCntLen
final FileRemoteProgressEventConsumer callbackCopyMove
final GralUserAction actionsetNameToRenameCopy
public GralFileProperties(GralPos refPos, java.lang.String sPosName, GralWindow wind)
refPos
- If wind is given, it is the refPos related to the wind.mainPanel,
elsewhere a reference for given sPosName in a panel to create a sub panel.sPosName
- if wind is given, the name of its mainPanel, else maybe with position Stringwind
- null, then a new Panel for this content will be created.public static GralFileProperties createWindow(GralPos refPosP, java.lang.String sPosName, java.lang.String sTitle)
refPosP
- a position related to the position of the window. It won't be changed.sPosName
- position of the window, maybe relative to given refPosPsTitle
- of the windowpublic void setActionRefresh(GralUserAction actionRefresh)
void openDialog(FileRemote src, GralFileSelector fileSelector)
src
- The path which is selected as source. It may be a directory or a file.public void showFileInfos(FileRemote src, GralFileSelector fileSelector)
src
- the filevoid setRename()
boolean doActionButtons(GralWidget btn)
public void setFocus()
GralWidgetBase_ifc
public void setFocus(int delay, int latest)
public boolean isInFocus()
GralWidgetBase_ifc
public boolean isVisible()
GralWidgetBase_ifc
isVisible
in interface GralWidgetBase_ifc
isVisible
in class GralWidgetBase
public void setFocusedWidget(GralWidgetBase_ifc widg)
GralWidgetBase_ifc
widg
- The sub widget which should be focused.
It influences for example the current tab of a tabbed panel,
or influences which widget of a comprehensive widget is first focused.
On a panel it determines which widget should get the focus if the panel gets the focus.public GralWidgetBase_ifc getFocusedWidget()
GralWidgetBase_ifc
public boolean setVisible(boolean visible)
GralWidgetBase_ifc
GralWindow
, its the visibility of the whole window.
Note that a window which is invisible is not shown in the task bar of the operation system.
Note that an application can have more as one window.
Note that a dialog window can be set to invisible if it is not need yet instead destroy and build newly.setVisible
in interface GralWidgetBase_ifc
setVisible
in class GralWidgetBase
public boolean createImplWidget_Gthread() throws java.lang.IllegalStateException
GralWidgetBase
GralWidget
by the default behavior.
Or it should be overridden in instances which are not derived from GralWidget itself,
on instances of comprehensive widgets.
This implementation is only called in GralWidget.createImplWidget_Gthread()
for composite widgets.createImplWidget_Gthread
in class GralWidgetBase
java.lang.IllegalStateException
- if called though the GralMng is not implemented.public void removeImplWidget_Gthread()
GralWidgetBase
GralMng.runGraphicThread()
and hence package private.removeImplWidget_Gthread
in class GralWidgetBase