|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.googlecode.vfsjfilechooser2.VFSJFileChooser
adams.gui.chooser.BaseFileChooser
adams.gui.chooser.AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>
adams.gui.chooser.EmailFileChooser
public class EmailFileChooser
A specialized JFileChooser that lists all available file Readers and Writers for emails.
| Nested Class Summary | |
|---|---|
static class |
EmailFileChooser.EmailFileExtensionFilter
A custom filter class that stores the associated class along the description and extensions. |
| Nested classes/interfaces inherited from class adams.gui.chooser.BaseFileChooser |
|---|
BaseFileChooser.BaseVFSFileChooserUI, BaseFileChooser.PlaceholderFileConverter |
| Nested classes/interfaces inherited from class com.googlecode.vfsjfilechooser2.VFSJFileChooser |
|---|
com.googlecode.vfsjfilechooser2.VFSJFileChooser.AccessibleJFileChooser, com.googlecode.vfsjfilechooser2.VFSJFileChooser.DIALOG_TYPE, com.googlecode.vfsjfilechooser2.VFSJFileChooser.RETURN_TYPE, com.googlecode.vfsjfilechooser2.VFSJFileChooser.SELECTION_MODE |
| 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 | |
|---|---|
protected JCheckBox |
m_CheckBoxOptions
the checkbox for bringing up the GenericObjectEditor. |
protected JButton |
m_ConfigureButton
the configure button. |
protected GenericObjectEditor |
m_Editor
the GOE for displaying the options of a reader/writer. |
protected JLabel |
m_LabelOptions
the note about the options dialog. |
protected static Vector<EmailFileChooser.EmailFileExtensionFilter> |
m_ReaderFileFilters
the file filters for the readers. |
protected static Vector<EmailFileChooser.EmailFileExtensionFilter> |
m_WriterFileFilters
the file filters for the writers. |
| Fields inherited from class adams.gui.chooser.AbstractExtensionFileFilterFileChooser |
|---|
m_CurrentHandler, m_DialogType, m_FileMustExist, m_LastFilter, m_Listener, m_Self, OPEN_DIALOG, SAVE_DIALOG, UNHANDLED_DIALOG |
| Fields inherited from class adams.gui.chooser.BaseFileChooser |
|---|
m_AllowGlobFilters, m_AutoAppendExtension, m_DefaultExtension, m_PromptOverwriteFile |
| Fields inherited from class com.googlecode.vfsjfilechooser2.VFSJFileChooser |
|---|
fileObjectConverter, m_accessibleContext |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, 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 |
| Constructor Summary | |
|---|---|
EmailFileChooser()
Constructs a FileChooser pointing to the user's default directory. |
|
EmailFileChooser(File currentDirectory)
Constructs a FileChooser using the given File as the path. |
|
EmailFileChooser(String currentDirectory)
Constructs a FileChooser using the given path. |
|
| Method Summary | |
|---|---|
protected void |
configureCurrentHandlerHook(int dialogType)
configures the current converter. |
protected void |
doInitializeFilters()
Performs the actual initialization of the filters. |
protected EmailFileReader |
getDefaultReader()
Returns the default reader. |
protected EmailFileWriter |
getDefaultWriter()
Returns the default writer. |
protected boolean |
getFiltersInitialized()
Returns whether the filters have already been initialized. |
protected Vector<EmailFileChooser.EmailFileExtensionFilter> |
getOpenFileFilters()
Returns the file filters for opening files. |
EmailFileReader |
getReader()
returns the reader that was chosen by the user, can be null in case the user aborted the dialog or the save dialog was shown. |
EmailFileReader |
getReaderForFile(File file)
Returns the reader for the specified file. |
protected Vector<EmailFileChooser.EmailFileExtensionFilter> |
getSaveFileFilters()
Returns the file filters for writing files. |
EmailFileWriter |
getWriter()
returns the writer that was chosen by the user, can be null in case the user aborted the dialog or the open dialog was shown. |
EmailFileWriter |
getWriterForFile(File file)
Returns the writer for the specified file. |
protected static void |
initFilters(boolean reader,
String[] classnames)
initializes the SpreadSheetFileExtensionFilters. |
protected void |
initGUI(int dialogType)
initializes the GUI. |
protected void |
initialize()
Further initializations. |
com.googlecode.vfsjfilechooser2.VFSJFileChooser.RETURN_TYPE |
showOpenDialog(Component parent)
Pops up an "Open File" file chooser dialog. |
com.googlecode.vfsjfilechooser2.VFSJFileChooser.RETURN_TYPE |
showSaveDialog(Component parent)
Pops up an "Save File" file chooser dialog. |
protected void |
updateCurrentHandlerHook()
sets the current converter according to the current filefilter. |
| Methods inherited from class adams.gui.chooser.AbstractExtensionFileFilterFileChooser |
|---|
getFileMustExist, initializeFilters, restoreLastFilter, setAcceptAllFileFilterUsed, setFileMustExist, showDialog |
| Methods inherited from class com.googlecode.vfsjfilechooser2.VFSJFileChooser |
|---|
accept, addActionListener, approveSelection, cancelSelection, changeToParentDirectory, createDialog, ensureFileIsVisible, fireActionPerformed, getAcceptAllFileFilter, getAccessibleContext, getAccessory, getActionListeners, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getChoosableFileFilters, getControlButtonsAreShown, getCurrentDirectory, getCurrentDirectoryObject, getDescription, getDialogTitle, getDialogType, getDragEnabled, getFileFilter, getFileObjectConverter, getFileSelectionMode, getFileSystemView, getFileView, getHomeFolderButton, getIcon, getName, getNavigationButtonsPanel, getNewFolderButton, getSelectedFile, getSelectedFileObject, getSelectedFileObjects, getSelectedFiles, getTypeDescription, getUI, getUIClassID, getUpFolderButton, isAcceptAllFileFilterUsed, isDirectorySelectionEnabled, isFileHidingEnabled, isFileSelectionEnabled, isMultiSelectionEnabled, isTraversable, paramString, removeActionListener, removeChoosableFileFilter, rescanCurrentDirectory, resetChoosableFileFilters, setAccessory, setApproveButtonMnemonic, setApproveButtonMnemonic, setApproveButtonText, setApproveButtonToolTipText, setControlButtonsAreShown, setCurrentDirectoryObject, setDialogTitle, setDialogType, setDragEnabled, setFileFilter, setFileHidingEnabled, setFileObjectConverter, setFileSelectionMode, setFileSystemView, setFileView, setMultiSelectionEnabled, setSelectedFileObject, setSelectedFileObjects, setup, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Vector<EmailFileChooser.EmailFileExtensionFilter> m_ReaderFileFilters
protected static Vector<EmailFileChooser.EmailFileExtensionFilter> m_WriterFileFilters
protected JButton m_ConfigureButton
protected JCheckBox m_CheckBoxOptions
protected JLabel m_LabelOptions
protected GenericObjectEditor m_Editor
| Constructor Detail |
|---|
public EmailFileChooser()
public EmailFileChooser(File currentDirectory)
currentDirectory - the path to start inpublic EmailFileChooser(String currentDirectory)
currentDirectory - the path to start in| Method Detail |
|---|
protected void initialize()
initialize in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>protected boolean getFiltersInitialized()
getFiltersInitialized in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>protected void doInitializeFilters()
doInitializeFilters in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>
protected static void initFilters(boolean reader,
String[] classnames)
reader - if true then the reader filters are initializedclassnames - the classnames of the convertersprotected Vector<EmailFileChooser.EmailFileExtensionFilter> getOpenFileFilters()
getOpenFileFilters in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>protected Vector<EmailFileChooser.EmailFileExtensionFilter> getSaveFileFilters()
getSaveFileFilters in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>protected void initGUI(int dialogType)
initGUI in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>dialogType - the type of dialog to setup the GUI forprotected EmailFileReader getDefaultReader()
protected EmailFileWriter getDefaultWriter()
public com.googlecode.vfsjfilechooser2.VFSJFileChooser.RETURN_TYPE showOpenDialog(Component parent)
showOpenDialog in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>parent - the parent of this file chooser
public com.googlecode.vfsjfilechooser2.VFSJFileChooser.RETURN_TYPE showSaveDialog(Component parent)
showSaveDialog in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>parent - the parent of this file chooser
public EmailFileReader getReader()
public EmailFileWriter getWriter()
protected void updateCurrentHandlerHook()
updateCurrentHandlerHook in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>protected void configureCurrentHandlerHook(int dialogType)
configureCurrentHandlerHook in class AbstractExtensionFileFilterFileChooser<EmailFileChooser.EmailFileExtensionFilter>dialogType - the type of dialog to configure forpublic EmailFileReader getReaderForFile(File file)
getReaderForFile in interface FileTypeDeterminingFileChooser<EmailFileReader,EmailFileWriter>file - the file to determine a reader for
public EmailFileWriter getWriterForFile(File file)
getWriterForFile in interface FileTypeDeterminingFileChooser<EmailFileReader,EmailFileWriter>file - the file to determine a reader for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||