com.alee.laf.filechooser
Class WebFileChooser

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JFileChooser
                  extended by com.alee.laf.filechooser.WebFileChooser
All Implemented Interfaces:
LanguageContainerMethods, LanguageMethods, SwingMethods, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class WebFileChooser
extends javax.swing.JFileChooser
implements LanguageMethods, LanguageContainerMethods

This JFileChooser extension class provides a direct access to WebFileChooserUI methods. There is also a set of additional methods that allows to modify chooser view and access its components and data directly.

Author:
Mikle Garin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFileChooser
javax.swing.JFileChooser.AccessibleJFileChooser
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  java.util.List<? extends java.awt.Image> customIcons
          Custom icons for file chooser dialog.
 
Fields inherited from class javax.swing.JFileChooser
ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY, accessibleContext, ACCESSORY_CHANGED_PROPERTY, APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY, APPROVE_BUTTON_TEXT_CHANGED_PROPERTY, APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY, APPROVE_OPTION, APPROVE_SELECTION, CANCEL_OPTION, CANCEL_SELECTION, CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY, CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY, CUSTOM_DIALOG, DIALOG_TITLE_CHANGED_PROPERTY, DIALOG_TYPE_CHANGED_PROPERTY, DIRECTORIES_ONLY, DIRECTORY_CHANGED_PROPERTY, ERROR_OPTION, FILE_FILTER_CHANGED_PROPERTY, FILE_HIDING_CHANGED_PROPERTY, FILE_SELECTION_MODE_CHANGED_PROPERTY, FILE_SYSTEM_VIEW_CHANGED_PROPERTY, FILE_VIEW_CHANGED_PROPERTY, FILES_AND_DIRECTORIES, FILES_ONLY, MULTI_SELECTION_ENABLED_CHANGED_PROPERTY, OPEN_DIALOG, SAVE_DIALOG, SELECTED_FILE_CHANGED_PROPERTY, SELECTED_FILES_CHANGED_PROPERTY
 
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
 
Constructor Summary
WebFileChooser()
          Constructs a WebFileChooser pointing to the user's default directory.
WebFileChooser(java.io.File currentDirectory)
          Constructs a WebFileChooser using the given File as the path.
WebFileChooser(java.io.File currentDirectory, javax.swing.filechooser.FileSystemView fsv)
          Constructs a WebFileChooser using the given current directory and FileSystemView.
WebFileChooser(javax.swing.filechooser.FileSystemView fsv)
          Constructs a WebFileChooser using the given FileSystemView.
WebFileChooser(java.lang.String currentDirectoryPath)
          Constructs a WebFileChooser using the given path.
WebFileChooser(java.lang.String currentDirectoryPath, javax.swing.filechooser.FileSystemView fsv)
          Constructs a WebFileChooser using the given current directory path and FileSystemView.
 
Method Summary
protected  javax.swing.JDialog createDialog(java.awt.Component parent)
          
 AbstractFileFilter getActiveFileFilter()
          Returns currenly active file filter.
 java.util.List<AbstractFileFilter> getAvailableFilters()
          Returns list of available file filters.
 java.awt.Image getDialogIcon()
          Returns custom dialog icon.
 java.util.List<? extends java.awt.Image> getDialogIcons()
          Returns custom dialog icons.
 WebFileChooserPanel getFileChooserPanel()
          Returns file chooser panel.
 java.lang.String getLanguageContainerKey()
          Returns language container key for container which implements this interface.
 WebFileChooserUI getWebUI()
          Returns Web-UI applied to this class.
 boolean isGenerateThumbnails()
          Returns whether file thumbnails are generated or not.
 boolean isLanguageSet()
          Returns whether this component registered in LanguageManager or not.
 void removeLanguage()
          Unregisters component from LanguageManager.
 void removeLanguageContainerKey()
          Removes language container key for container which implements this interface.
 void removeLanguageUpdater()
          Unregisters any custom language updater set for this component.
 void setApproveButtonLanguage(java.lang.String key)
          Sets approve button language key.
 void setApproveButtonText(FileApproveText approveText)
          Sets approve button text type.
 void setCurrentDirectory(java.lang.String directoryPath)
          Sets currently displayed directory.
 void setDialogIcon(javax.swing.ImageIcon icon)
          Sets custom dialog icon.
 void setDialogIcons(java.util.List<? extends javax.swing.ImageIcon> customIcons)
          Sets custom dialog icons.
 void setDialogImage(java.awt.Image icon)
          Sets custom dialog icon.
 void setDialogImages(java.util.List<? extends java.awt.Image> customIcons)
          Sets custom dialog icons.
 void setDialogTitleKey(java.lang.String dialogTitle)
          Sets dialog title language key.
 void setGenerateThumbnails(boolean generate)
          Sets whether file thumbnails should be generated or not.
 void setLanguage(java.lang.String key, java.lang.Object... data)
          Registers component in LanguageManager under specified key and with specified formatting data.
 void setLanguageContainerKey(java.lang.String key)
          Sets language container key for container which implements this interface.
 void setLanguageUpdater(LanguageUpdater updater)
          Registers custom language updater for this component.
 void setSelectedFile(java.lang.String filePath)
          Sets currently selected file.
static java.util.List<java.io.File> showMultiOpenDialog()
          Constructs and displays multiply files open dialog and returns selected files list as a result.
static java.util.List<java.io.File> showMultiOpenDialog(java.awt.Component parent, Customizer<WebFileChooser> customizer)
          Constructs and displays multiply files open dialog and returns selected files list as a result.
static java.util.List<java.io.File> showMultiOpenDialog(java.awt.Component parent, java.lang.String currentDirectory)
          Constructs and displays multiply files open dialog and returns selected files list as a result.
static java.util.List<java.io.File> showMultiOpenDialog(java.awt.Component parent, java.lang.String currentDirectory, Customizer<WebFileChooser> customizer)
          Constructs and displays multiply files open dialog and returns selected files list as a result.
static java.util.List<java.io.File> showMultiOpenDialog(Customizer<WebFileChooser> customizer)
          Constructs and displays multiply files open dialog and returns selected files list as a result.
static java.util.List<java.io.File> showMultiOpenDialog(java.lang.String currentDirectory, Customizer<WebFileChooser> customizer)
          Constructs and displays multiply files open dialog and returns selected files list as a result.
static java.io.File showOpenDialog()
          Constructs and displays file open dialog and returns selected file as a result.
static java.io.File showOpenDialog(java.awt.Component parent, Customizer<WebFileChooser> customizer)
          Constructs and displays file open dialog and returns selected file as a result.
static java.io.File showOpenDialog(java.awt.Component parent, java.lang.String currentDirectory)
          Constructs and displays file open dialog and returns selected file as a result.
static java.io.File showOpenDialog(java.awt.Component parent, java.lang.String currentDirectory, Customizer<WebFileChooser> customizer)
          Constructs and displays file open dialog and returns selected file as a result.
static java.io.File showOpenDialog(Customizer<WebFileChooser> customizer)
          Constructs and displays file open dialog and returns selected file as a result.
static java.io.File showOpenDialog(java.lang.String currentDirectory, Customizer<WebFileChooser> customizer)
          Constructs and displays file open dialog and returns selected file as a result.
static java.io.File showSaveDialog()
          Constructs and displays file save dialog and returns selected file as a result.
static java.io.File showSaveDialog(java.awt.Component parent, Customizer<WebFileChooser> customizer)
          Constructs and displays file save dialog and returns selected file as a result.
static java.io.File showSaveDialog(java.awt.Component parent, java.lang.String currentDirectory)
          Constructs and displays file save dialog and returns selected file as a result.
static java.io.File showSaveDialog(java.awt.Component parent, java.lang.String currentDirectory, Customizer<WebFileChooser> customizer)
          Constructs and displays file save dialog and returns selected file as a result.
static java.io.File showSaveDialog(Customizer<WebFileChooser> customizer)
          Constructs and displays file save dialog and returns selected file as a result.
static java.io.File showSaveDialog(java.lang.String currentDirectory, Customizer<WebFileChooser> customizer)
          Constructs and displays file save dialog and returns selected file as a result.
 void updateLanguage(java.lang.Object... data)
          Updates component language and formatting data.
 void updateLanguage(java.lang.String key, java.lang.Object... data)
          Changes component language key and updates its language and formatting data.
 void updateUI()
          Installs a Web-UI into this component.
 
Methods inherited from class javax.swing.JFileChooser
accept, addActionListener, addChoosableFileFilter, approveSelection, cancelSelection, changeToParentDirectory, ensureFileIsVisible, fireActionPerformed, getAcceptAllFileFilter, getAccessibleContext, getAccessory, getActionListeners, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getChoosableFileFilters, getControlButtonsAreShown, getCurrentDirectory, getDescription, getDialogTitle, getDialogType, getDragEnabled, getFileFilter, getFileSelectionMode, getFileSystemView, getFileView, getIcon, getName, getSelectedFile, getSelectedFiles, getTypeDescription, getUI, getUIClassID, isAcceptAllFileFilterUsed, isDirectorySelectionEnabled, isFileHidingEnabled, isFileSelectionEnabled, isMultiSelectionEnabled, isTraversable, paramString, removeActionListener, removeChoosableFileFilter, rescanCurrentDirectory, resetChoosableFileFilters, setAcceptAllFileFilterUsed, setAccessory, setApproveButtonMnemonic, setApproveButtonMnemonic, setApproveButtonText, setApproveButtonToolTipText, setControlButtonsAreShown, setCurrentDirectory, setDialogTitle, setDialogType, setDragEnabled, setFileFilter, setFileHidingEnabled, setFileSelectionMode, setFileSystemView, setFileView, setMultiSelectionEnabled, setSelectedFile, setSelectedFiles, setup, showDialog, showOpenDialog, showSaveDialog
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

customIcons

protected java.util.List<? extends java.awt.Image> customIcons
Custom icons for file chooser dialog.

Constructor Detail

WebFileChooser

public WebFileChooser()
Constructs a WebFileChooser pointing to the user's default directory.


WebFileChooser

public WebFileChooser(java.lang.String currentDirectoryPath)
Constructs a WebFileChooser using the given path. Passing in a null string causes the file chooser to point to the user's default directory.

Parameters:
currentDirectoryPath - a String giving the path to a file or directory

WebFileChooser

public WebFileChooser(java.io.File currentDirectory)
Constructs a WebFileChooser using the given File as the path. Passing in a null file causes the file chooser to point to the user's default directory.

Parameters:
currentDirectory - a File object specifying the path to a file or directory

WebFileChooser

public WebFileChooser(javax.swing.filechooser.FileSystemView fsv)
Constructs a WebFileChooser using the given FileSystemView.


WebFileChooser

public WebFileChooser(java.io.File currentDirectory,
                      javax.swing.filechooser.FileSystemView fsv)
Constructs a WebFileChooser using the given current directory and FileSystemView.


WebFileChooser

public WebFileChooser(java.lang.String currentDirectoryPath,
                      javax.swing.filechooser.FileSystemView fsv)
Constructs a WebFileChooser using the given current directory path and FileSystemView.

Method Detail

createDialog

protected javax.swing.JDialog createDialog(java.awt.Component parent)
                                    throws java.awt.HeadlessException

Overrides:
createDialog in class javax.swing.JFileChooser
Throws:
java.awt.HeadlessException

getDialogIcon

public java.awt.Image getDialogIcon()
Returns custom dialog icon.

Returns:
custom dialog icon

getDialogIcons

public java.util.List<? extends java.awt.Image> getDialogIcons()
Returns custom dialog icons.

Returns:
custom dialog icons

setDialogIcon

public void setDialogIcon(javax.swing.ImageIcon icon)
Sets custom dialog icon.

Parameters:
icon - new custom dialog icon

setDialogImage

public void setDialogImage(java.awt.Image icon)
Sets custom dialog icon.

Parameters:
icon - new custom dialog icon

setDialogIcons

public void setDialogIcons(java.util.List<? extends javax.swing.ImageIcon> customIcons)
Sets custom dialog icons.

Parameters:
customIcons - new custom dialog icons

setDialogImages

public void setDialogImages(java.util.List<? extends java.awt.Image> customIcons)
Sets custom dialog icons.

Parameters:
customIcons - new custom dialog icons

setDialogTitleKey

public void setDialogTitleKey(java.lang.String dialogTitle)
Sets dialog title language key.

Parameters:
dialogTitle - title language key

setCurrentDirectory

public void setCurrentDirectory(java.lang.String directoryPath)
Sets currently displayed directory.

Parameters:
directoryPath - directory to display

setSelectedFile

public void setSelectedFile(java.lang.String filePath)
Sets currently selected file.

Parameters:
filePath - file to select

getFileChooserPanel

public WebFileChooserPanel getFileChooserPanel()
Returns file chooser panel.

Returns:
file chooser panel

getAvailableFilters

public java.util.List<AbstractFileFilter> getAvailableFilters()
Returns list of available file filters.

Returns:
list of available file filters

getActiveFileFilter

public AbstractFileFilter getActiveFileFilter()
Returns currenly active file filter.

Returns:
currenly active file filter

isGenerateThumbnails

public boolean isGenerateThumbnails()
Returns whether file thumbnails are generated or not.

Returns:
true if file thumbnails are generated, false otherwise

setGenerateThumbnails

public void setGenerateThumbnails(boolean generate)
Sets whether file thumbnails should be generated or not.

Parameters:
generate - whether file thumbnails should be generated or not

setApproveButtonText

public void setApproveButtonText(FileApproveText approveText)
Sets approve button text type.

Parameters:
approveText - approve button text type

setApproveButtonLanguage

public void setApproveButtonLanguage(java.lang.String key)
Sets approve button language key.

Parameters:
key - approve button language key

getWebUI

public WebFileChooserUI getWebUI()
Returns Web-UI applied to this class.

Returns:
Web-UI applied to this class

updateUI

public void updateUI()
Installs a Web-UI into this component.

Overrides:
updateUI in class javax.swing.JFileChooser

setLanguage

public void setLanguage(java.lang.String key,
                        java.lang.Object... data)
Registers component in LanguageManager under specified key and with specified formatting data.

Specified by:
setLanguage in interface LanguageMethods
Parameters:
key - language record key
data - formatting data

updateLanguage

public void updateLanguage(java.lang.Object... data)
Updates component language and formatting data.

Specified by:
updateLanguage in interface LanguageMethods
Parameters:
data - new formatting data

updateLanguage

public void updateLanguage(java.lang.String key,
                           java.lang.Object... data)
Changes component language key and updates its language and formatting data.

Specified by:
updateLanguage in interface LanguageMethods
Parameters:
key - new language key
data - new formatting data

removeLanguage

public void removeLanguage()
Unregisters component from LanguageManager.

Specified by:
removeLanguage in interface LanguageMethods

isLanguageSet

public boolean isLanguageSet()
Returns whether this component registered in LanguageManager or not.

Specified by:
isLanguageSet in interface LanguageMethods
Returns:
true if component is registered in LanguageManager, false otherwise

setLanguageUpdater

public void setLanguageUpdater(LanguageUpdater updater)
Registers custom language updater for this component.

Specified by:
setLanguageUpdater in interface LanguageMethods
Parameters:
updater - component language updater

removeLanguageUpdater

public void removeLanguageUpdater()
Unregisters any custom language updater set for this component.

Specified by:
removeLanguageUpdater in interface LanguageMethods

setLanguageContainerKey

public void setLanguageContainerKey(java.lang.String key)
Sets language container key for container which implements this interface.

Specified by:
setLanguageContainerKey in interface LanguageContainerMethods
Parameters:
key - language container key

removeLanguageContainerKey

public void removeLanguageContainerKey()
Removes language container key for container which implements this interface.

Specified by:
removeLanguageContainerKey in interface LanguageContainerMethods

getLanguageContainerKey

public java.lang.String getLanguageContainerKey()
Returns language container key for container which implements this interface.

Specified by:
getLanguageContainerKey in interface LanguageContainerMethods
Returns:
language container key for container which implements this interface

showOpenDialog

public static java.io.File showOpenDialog()
Constructs and displays file open dialog and returns selected file as a result.

Returns:
selected file

showOpenDialog

public static java.io.File showOpenDialog(Customizer<WebFileChooser> customizer)
Constructs and displays file open dialog and returns selected file as a result.

Parameters:
customizer - file chooser customizer
Returns:
selected file

showOpenDialog

public static java.io.File showOpenDialog(java.awt.Component parent,
                                          Customizer<WebFileChooser> customizer)
Constructs and displays file open dialog and returns selected file as a result.

Parameters:
parent - parent component
customizer - file chooser customizer
Returns:
selected file

showOpenDialog

public static java.io.File showOpenDialog(java.lang.String currentDirectory,
                                          Customizer<WebFileChooser> customizer)
Constructs and displays file open dialog and returns selected file as a result.

Parameters:
currentDirectory - current file chooser directory
customizer - file chooser customizer
Returns:
selected file

showOpenDialog

public static java.io.File showOpenDialog(java.awt.Component parent,
                                          java.lang.String currentDirectory)
Constructs and displays file open dialog and returns selected file as a result.

Parameters:
parent - parent component
currentDirectory - current file chooser directory
Returns:
selected file

showOpenDialog

public static java.io.File showOpenDialog(java.awt.Component parent,
                                          java.lang.String currentDirectory,
                                          Customizer<WebFileChooser> customizer)
Constructs and displays file open dialog and returns selected file as a result.

Parameters:
parent - parent component
currentDirectory - current file chooser directory
customizer - file chooser customizer
Returns:
selected file

showMultiOpenDialog

public static java.util.List<java.io.File> showMultiOpenDialog()
Constructs and displays multiply files open dialog and returns selected files list as a result.

Returns:
selected files list

showMultiOpenDialog

public static java.util.List<java.io.File> showMultiOpenDialog(Customizer<WebFileChooser> customizer)
Constructs and displays multiply files open dialog and returns selected files list as a result.

Parameters:
customizer - file chooser customizer
Returns:
selected files list

showMultiOpenDialog

public static java.util.List<java.io.File> showMultiOpenDialog(java.awt.Component parent,
                                                               Customizer<WebFileChooser> customizer)
Constructs and displays multiply files open dialog and returns selected files list as a result.

Parameters:
parent - parent component
customizer - file chooser customizer
Returns:
selected files list

showMultiOpenDialog

public static java.util.List<java.io.File> showMultiOpenDialog(java.lang.String currentDirectory,
                                                               Customizer<WebFileChooser> customizer)
Constructs and displays multiply files open dialog and returns selected files list as a result.

Parameters:
currentDirectory - current file chooser directory
customizer - file chooser customizer
Returns:
selected files list

showMultiOpenDialog

public static java.util.List<java.io.File> showMultiOpenDialog(java.awt.Component parent,
                                                               java.lang.String currentDirectory)
Constructs and displays multiply files open dialog and returns selected files list as a result.

Parameters:
parent - parent component
currentDirectory - current file chooser directory
Returns:
selected files list

showMultiOpenDialog

public static java.util.List<java.io.File> showMultiOpenDialog(java.awt.Component parent,
                                                               java.lang.String currentDirectory,
                                                               Customizer<WebFileChooser> customizer)
Constructs and displays multiply files open dialog and returns selected files list as a result.

Parameters:
parent - parent component
currentDirectory - current file chooser directory
customizer - file chooser customizer
Returns:
selected files list

showSaveDialog

public static java.io.File showSaveDialog()
Constructs and displays file save dialog and returns selected file as a result.

Returns:
selected file

showSaveDialog

public static java.io.File showSaveDialog(Customizer<WebFileChooser> customizer)
Constructs and displays file save dialog and returns selected file as a result.

Parameters:
customizer - file chooser customizer
Returns:
selected file

showSaveDialog

public static java.io.File showSaveDialog(java.awt.Component parent,
                                          Customizer<WebFileChooser> customizer)
Constructs and displays file save dialog and returns selected file as a result.

Parameters:
parent - parent component
customizer - file chooser customizer
Returns:
selected file

showSaveDialog

public static java.io.File showSaveDialog(java.lang.String currentDirectory,
                                          Customizer<WebFileChooser> customizer)
Constructs and displays file save dialog and returns selected file as a result.

Parameters:
currentDirectory - current file chooser directory
customizer - file chooser customizer
Returns:
selected file

showSaveDialog

public static java.io.File showSaveDialog(java.awt.Component parent,
                                          java.lang.String currentDirectory)
Constructs and displays file save dialog and returns selected file as a result.

Parameters:
parent - parent component
currentDirectory - current file chooser directory
Returns:
selected file

showSaveDialog

public static java.io.File showSaveDialog(java.awt.Component parent,
                                          java.lang.String currentDirectory,
                                          Customizer<WebFileChooser> customizer)
Constructs and displays file save dialog and returns selected file as a result.

Parameters:
parent - parent component
currentDirectory - current file chooser directory
customizer - file chooser customizer
Returns:
selected file