|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFileChooser
public class FileChooser
This class provides a user interface to browse a file system in order to create files or directories, delete them, or select a single file. Requires JSR 75 (PDA Profile for J2ME).
Field Summary | |
---|---|
static int |
CANCELED
The current operation has been canceled. |
static int |
CHOOSEN
The user choosed an existing file. |
static int |
CHOOSEN_NULL
The user choosed NULL , which means "no file". |
static int |
NOT_CHOOSEN
No choice has been made so far. |
Constructor Summary | |
---|---|
FileChooser(Display display,
java.lang.String initFilename)
Creates a FileChooser, and sets the current pointer to the specified filename. |
Method Summary | |
---|---|
void |
commandAction(Command c,
Displayable s)
|
java.lang.String |
getFilename()
Gets the choosen filename. |
int |
getState()
Gets the current state of the process. |
void |
run()
|
void |
waitUntilFinished()
This method blocks until the user chooses a file or cancels the process. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOT_CHOOSEN
public static final int CANCELED
public static final int CHOOSEN_NULL
NULL
, which means "no file".
public static final int CHOOSEN
Constructor Detail |
---|
public FileChooser(Display display, java.lang.String initFilename)
initFilename
is null
, then the
current pointer will be set on the top of all available file systems.
display
- the current displayinitFilename
- the initial filename or null
if there is
noMethod Detail |
---|
public java.lang.String getFilename()
public int getState()
NOT_CHOOSEN
, CANCELED
,
CHOOSEN_NULL
, or CHOOSEN
.
public void waitUntilFinished()
public void commandAction(Command c, Displayable s)
public void run()
run
in interface java.lang.Runnable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |