palmed.file
Class FileBrowser

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.List
              extended by palmed.file.FileBrowser
All Implemented Interfaces:
javax.microedition.io.file.FileSystemListener, javax.microedition.lcdui.Choice, javax.microedition.lcdui.CommandListener

public final class FileBrowser
extends javax.microedition.lcdui.List
implements javax.microedition.lcdui.CommandListener, javax.microedition.io.file.FileSystemListener

This class implements a file browser.

Version:
$Revision: 359 $ $Date: 2005-12-23 23:26:53 +0900 (ven., 23 déc. 2005) $
Author:
Mathieu Champlon

Field Summary
 
Fields inherited from class javax.microedition.lcdui.List
SELECT_COMMAND
 
Fields inherited from interface javax.microedition.io.file.FileSystemListener
ROOT_ADDED, ROOT_REMOVED
 
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, javax.microedition.lcdui.Displayable next)
          Create a file browser.
 
Method Summary
 void allowCreation(boolean canCreateFiles)
          Add or remove the possibility to create a new file and select it.
 void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
          
 void rootChanged(int state, java.lang.String rootName)
          
 void setListener(IFileBrowserListener listener)
          Set or change the file browser listener.
 
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, setTitle, size
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, setCommandListener, sizeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBrowser

public FileBrowser(javax.microedition.lcdui.Display display,
                   javax.microedition.lcdui.Displayable next)
Create a file browser.

Parameters:
display - the display
next - the displayable to display when closing the file browser
Method Detail

allowCreation

public void allowCreation(boolean canCreateFiles)
Add or remove the possibility to create a new file and select it.

Parameters:
canCreateFiles - whether file creation is allowed or not

setListener

public void setListener(IFileBrowserListener listener)
Set or change the file browser listener.

Parameters:
listener - the file browser listener

commandAction

public void commandAction(javax.microedition.lcdui.Command command,
                          javax.microedition.lcdui.Displayable displayable)

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

rootChanged

public void rootChanged(int state,
                        java.lang.String rootName)

Specified by:
rootChanged in interface javax.microedition.io.file.FileSystemListener


Copyright © 2004-2006 PalmEd. All Rights Reserved.