|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JFileChooser jpicedt.ui.dialog.PEFileChooser
public class PEFileChooser
A factory that produces and caches frequently accessed JFileChooser's.
JFileChooser's get instanciated on first call,
and are then cached for better efficiency. As a side-effect, the last accessed directory is
kept in memory, unless a call to configure(Properties)
is made, which reinit the
file chooser's.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFileChooser |
---|
JFileChooser.AccessibleJFileChooser |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
BROWSEFILEDIR
file chooser type for browsing the save/open file directory |
static String |
DEFAULT_DIRECTORY
the user's home directory |
static String |
KEY_FILE_DIRECTORY
properties's key for open-file-directory |
static int |
OPENFILE
file chooser type for opening files |
static int |
OPENFRAGMENT
file chooser type for opening fragments |
static int |
SAVEFILE
file chooser type for saving files |
static int |
SAVEFRAGMENT
file chooser type for saving fragments |
Fields inherited from class javax.swing.JComponent |
---|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
---|---|
static void |
configure(Properties preferences)
Configure the default directory for the static JFileChooser's from the given Properties object, using the following key/value pairs : key = KEY_FILE_DIRECTORY, value = path-to-a-directory-for-opening-new-files Then reinits the static JFileChooser so that they'll reflect the new preferences next time they're called. |
static String |
getFileName(int chooserType,
String contentTypeClassName)
Opens (and possibly inits on first call) a JFileChooser, the type of which is specified by one of the hereabove constants. |
static void |
store(Properties preferences)
Store the current file and fragment directories to the given Properties object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String KEY_FILE_DIRECTORY
public static final int SAVEFILE
public static final int SAVEFRAGMENT
public static final int OPENFILE
public static final int OPENFRAGMENT
public static final int BROWSEFILEDIR
public static final String DEFAULT_DIRECTORY
Method Detail |
---|
public static String getFileName(int chooserType, String contentTypeClassName)
configure(Properties)
.
chooserType
- allows to initialize the file chooser to be opened.
public static void configure(Properties preferences)
Should be called on start-up, then each time preferences change.
public static void store(Properties preferences)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |