|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.List
org.netbeans.microedition.lcdui.pda.FileBrowser
public class FileBrowser
The FileBrowser
custom component lets the user list files and
directories. It's uses FileConnection Optional Package (JSR 75). The FileConnection
Optional Package APIs give J2ME devices access to file systems residing on mobile devices,
primarily access to removable storage media such as external memory cards.
Field Summary | |
---|---|
static javax.microedition.lcdui.Command |
SELECT_FILE_COMMAND
Command fired on file selection. |
Fields inherited from class javax.microedition.lcdui.List |
---|
SELECT_COMMAND |
Fields inherited from interface javax.microedition.lcdui.Choice |
---|
EXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ON |
Constructor Summary | |
---|---|
FileBrowser(javax.microedition.lcdui.Display display)
Creates a new instance of FileBrowser for given Display object. |
Method Summary | |
---|---|
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
Indicates that a command event has occurred on Displayable d. |
protected javax.microedition.lcdui.CommandListener |
getCommandListener()
Returns command listener. |
javax.microedition.io.file.FileConnection |
getSelectedFile()
Returns selected file as a FileConnection object. |
java.lang.String |
getSelectedFileURL()
Returns selected FileURL object. |
void |
setCommandListener(javax.microedition.lcdui.CommandListener commandListener)
Sets command listener to this component. |
void |
setFilter(java.lang.String filter)
Sets the file filter. |
void |
setTitle(java.lang.String title)
Sets component's title. |
Methods inherited from class javax.microedition.lcdui.List |
---|
append, delete, deleteAll, getFitPolicy, getFont, getImage, getSelectedFlags, getSelectedIndex, getString, insert, isSelected, removeCommand, set, setFitPolicy, setFont, setSelectCommand, setSelectedFlags, setSelectedIndex, setTicker, size |
Methods inherited from class javax.microedition.lcdui.Displayable |
---|
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, sizeChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.microedition.lcdui.Command SELECT_FILE_COMMAND
Constructor Detail |
---|
public FileBrowser(javax.microedition.lcdui.Display display)
Display
object.
display
- non null display object.Method Detail |
---|
public void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
commandAction
in interface javax.microedition.lcdui.CommandListener
c
- a Command
object identifying the command. This is either
one of the applications have been added to Displayable
with addCommand(Command)
or is the implicit SELECT_COMMAND
of List.d
- the Displayable
on which this event has occurredpublic void setTitle(java.lang.String title)
setTitle
in class javax.microedition.lcdui.List
title
- component's title.public javax.microedition.io.file.FileConnection getSelectedFile() throws java.io.IOException
FileConnection
object.
FileConection
object
java.io.IOException
public java.lang.String getSelectedFileURL()
FileURL
object.
FileURL
objectpublic void setFilter(java.lang.String filter)
filter
- file filter String objectprotected javax.microedition.lcdui.CommandListener getCommandListener()
CommandListener
objectpublic void setCommandListener(javax.microedition.lcdui.CommandListener commandListener)
setCommandListener
in class javax.microedition.lcdui.Displayable
commandListener
- CommandListener
to be used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |