@MinDoc(copyright="Copyright 2001 - 2002, 2009 A. Weinert", author="Albrecht Weinert", version="see enclosing interface FileVisitor", lastModified="see enclosing interface FileVisitor", lastModifiedBy="see enclosing interface FileVisitor", usage="a (base for a) visitor for files", purpose="ask a question on the visited file (or directory)") public abstract static class FileVisitor.Ask extends Object implements FileVisitor, Serializable
FileVisitor
, the method
FileVisitor.visit(File)
of which asks a question on the file or directory
visited. Inheriting classes are FileVisitor.AskConsImpl
and
FileVisitor.AskGrafImpl
.FileVisitor.Ask, FileVisitor.AskConsImpl, FileVisitor.AskGrafImpl
Modifier and Type | Field and Description |
---|---|
protected String |
ansPrompt
Appendix to the question respectively answer suggestions.
|
protected String |
append
Text for middle button.
|
protected String |
askPatt
The question.
|
boolean |
deleteMode
Delete mode.
|
protected String |
lower
Lower line / explanation.
|
int |
maxWait
Maximum wait time for user response in 1/10 s.
|
protected String |
no
Text for right (reject) button.
|
protected String |
yes
Text for left (acknowledge) button.
|
Modifier | Constructor and Description |
---|---|
protected |
Ask(boolean deleteMode,
PropMap prop)
Make an Ask object (sole constructor).
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the Ask object.
|
int |
set(PropMap prop)
Set by a PropMap.
|
int |
set(PropMap prop1,
PropMap prop2)
Set by (two) PropMaps.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visit
public final boolean deleteMode
protected String askPatt
askPatt
is a one line pattern for the message formatter
TextHelper.messageFormat(StringBuilder, CharSequence, Object)
.
The spot {0} will be replaced by the file path.PropMap
or AppLangMap
the key used is
"faskpatt". That (nationalised) message pattern can, of course
be used elsewhere.protected String ansPrompt
ansPrompt
is to be shown as second line in a window respectively
as not RET/LF terminated prompt in the console case.PropMap
or AppLangMap
the key used is
either "faskpmt" or "daskpmt" for
deleteMode
false / true.protected String lower
PropMap
or AppLangMap
the key used is
either "fasklow" or "dasklow" for
deleteMode
false / true.protected String yes
deleteMode
false) : "faskyes"protected String no
protected String append
deleteMode
false) : "faskappquot;deleteMode
is true append
is forced to null.public int maxWait
protected Ask(boolean deleteMode, PropMap prop)
deleteMode
before.PropMap
may be provided to set all properties
on construction.public int set(PropMap prop1, PropMap prop2)
prop1
and as
substitute prop2
. Find the keys in the documentation of the
object variables.prop1
is nullset(PropMap)
public int set(PropMap prop)
prop
and as
substitute by that of an AppLangMap
object determined by the rules
of the Prop.valueLang(CharSequence)
.prop1
is null* Schlüssel siehe in den Einzelbeschreibungen der Variablen.
,
set(PropMap, PropMap)
,
AppLangMap.getMap(CharSequence)
,
PropMap.getLanguage()
public void dispose()