@MinDoc(copyright="Copyright 2001, 2004, 2009 A. Weinert", author="Albrecht Weinert", version="see enclosing interface FileVisitor", lastModified="see enclosing interface FileVisitor", lastModifiedBy="see enclosing interface FileVisitor", usage="a visitor for files", purpose="ask a question on the visited file (by dialog window)") public static class FileVisitor.AskGrafImpl extends FileVisitor.Ask
FileVisitor
the method
visit(File)
of which asks a question on the file
visited graphically using an (AskDialog
.FileVisitor.AskConsImpl
instead.FileService
,
FileVisitor
,
FileVisitor.AskConsImpl
,
Serialized FormFileVisitor.Ask, FileVisitor.AskConsImpl, FileVisitor.AskGrafImpl
Modifier and Type | Field and Description |
---|---|
protected Object |
parent
Parent object for the graphical (prompt) window. .
|
protected AskDialog |
theDialog
The Dialogue.
|
String |
title
Title for the graphical window.
|
ansPrompt, append, askPatt, deleteMode, lower, maxWait, no, yes
Constructor and Description |
---|
AskGrafImpl(boolean deleteMode,
PropMap prop,
Object parent,
boolean modal)
Make an AskGrafImpl object, setting by a PropMap.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the AskGrafImpl object and its resources.
|
int |
visit(File dD)
The "deed" or action with the file visited.
|
set, set
protected final AskDialog theDialog
public String title
protected Object parent
public AskGrafImpl(boolean deleteMode, PropMap prop, Object parent, boolean modal)
FileVisitor.Ask.deleteMode
will be set finally by the parameter provided.
It will be tried to set this objects properties by prop
.prop
has a property "fileDialogTitle" its value will
be used to set title
.parent
is not null and no CharSequence
,it will be tried
to use it as parent of the asking window. If it is a
CharSequence
it will be used as title
.parent
- used as parent window or title (if feasible)modal
- true locks a given parent window while waiting for
closing the dialog windowprop
- PropMap to set propertiespublic int visit(File dD)
dD
is null or if dispose()
was called 0 (as negative
acknowledge) is returned immediately.dD
does not exist 1 (as acknowledge) is returned
without further actions.FileVisitor.visit()
for the return values recommended and implemented here.dD
- the file or directory to act upon or to determine a filter /
function response aboutFileVisitor.visit(File)
public void dispose()
visit()
returns 0 always.dispose
in class FileVisitor.Ask