public class FileMark extends SelectMask
FileRemote
to store comparison or mark information.Modifier and Type | Field and Description |
---|---|
static int |
cmpAlone
Flags as result of an comparison: the other file does not exist, or any files of an directory does not exists
or there are differences.
|
static int |
cmpContentEqual
Flags as result of an comparison: the other file does not exist, or exists only with same length or with same time stamp
|
static int |
cmpContentNotEqual
Flags as result of an comparison: the other file does not exist,
or exists with other length or other timestamp, or with other content also with same length or with same time stamp
|
static int |
cmpFileDifferences
Flags as result of an comparison: the other file does not exist, or any files of an directory does not exists
or there are differences.
|
static int |
cmpLenTimeEqual
Flags as result of an comparison: the other file has the same length and same time stamp, it seems it may be equal, but not tested.
|
static int |
cmpMissingFiles
Flags as result of an comparison: the other file does not exist, or any files of an directory does not exists
or there are differences.
|
static int |
ignoreSymbolicLinks
This is not used for mark, used for selection.
|
protected FileRemote |
itsFile |
static int |
markDir
Flags means that this file is any directory which is in the mark tree.
|
static int |
markRoot
Flags means that this file is the root of mark.
|
static int |
mCmpFile
mask of all bits for comparison one file.
|
static int |
mSelectMarkBits |
long |
nrofBytesSelected |
int |
nrofFilesSelected |
static int |
orWithSelectString
This is not used for mark, used for selection.
|
static int |
resetMark
This is not used for mark, only for a mark command.
|
static int |
select
Flags is a simple marker for manual selecting for a file, also for a directory, shown in red in Fcmd.
|
static int |
selectForCopy
Flags is a marker for files or the whole dir to copy, select in orange in Fcmd.
|
static int |
selectForCopySomeInDir
Flags is a marker for directory which contains some to copy, select in light orange in Fcmd.
|
static int |
selectSomeInDir
Flags means that some but not all files are marked inside a directory.
|
static java.lang.String |
sVersion
Version, history and license.
|
static char |
XXXcharCmpContentEqual
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
static char |
XXXcharCmpContentEqualWithoutComments
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
static char |
XXXcharCmpContentEqualWithoutEndlines
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
static char |
XXXcharCmpContentEqualwithoutSpaces
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
selectMask, version
select2, select2Parent, selectParent
Constructor and Description |
---|
FileMark(FileRemote itsFile) |
Modifier and Type | Method and Description |
---|---|
int |
nrofFilesSelected() |
int |
setMarked(int mask,
java.lang.Object data)
Sets some bits of the mask.
|
void |
setMarkParent(int mask,
boolean count)
Sets a mark to all parents of this till the
markRoot is found. |
int |
setNonMarkedRecursively(int mask,
java.lang.Object data,
boolean recursively) |
java.lang.String |
toString() |
getMark, setNonMarked
public static final java.lang.String sVersion
MarkMask_ifc
de facto, but not documented.
Not documented. Enhanced with selectForCopy
=^ MarkMask_ifc.select2
.
Also shown as colors in the org.vishia.gral.widget.GralFileSelector
.
FileRemote
may have information about a select status
or about a comparison result. It is stored in a referred instance of this type. Experience.
public static final char XXXcharCmpContentEqual
public static final char XXXcharCmpContentEqualWithoutComments
public static final char XXXcharCmpContentEqualWithoutEndlines
public static final char XXXcharCmpContentEqualwithoutSpaces
public static final int select
public static final int selectSomeInDir
public static final int selectForCopy
public static final int selectForCopySomeInDir
public static final int markRoot
setMarkParent(int, boolean)
public static final int markDir
public static final int cmpAlone
public static final int cmpLenTimeEqual
public static final int cmpContentEqual
public static final int cmpContentNotEqual
public static final int mCmpFile
public static final int cmpMissingFiles
public static final int cmpFileDifferences
public static final int resetMark
public static final int orWithSelectString
public static final int ignoreSymbolicLinks
public static final int mSelectMarkBits
protected final FileRemote itsFile
public int nrofFilesSelected
public long nrofBytesSelected
public FileMark(FileRemote itsFile)
public int nrofFilesSelected()
public int setNonMarkedRecursively(int mask, java.lang.Object data, boolean recursively)
public int setMarked(int mask, java.lang.Object data)
SelectMask
setMarked
in interface MarkMask_ifc
setMarked
in class SelectMask
mask
- This bits of the SelectMask.selectMask
will be reseted.data
- not used here.public void setMarkParent(int mask, boolean count)
markRoot
is found.mask
- count
- TODOpublic java.lang.String toString()
toString
in class java.lang.Object