File Extension Stage
On some platforms where file access may be restricted or not part of the user model (for example, on some mobile or embedded devices), opening a file dialog may always result in a no-op (that is, null file(s) being returned).
A FileChooser
can be used to invoke file open dialogs for selecting single file (showOpenDialog
), file open dialogs for selecting multiple files (showOpenMultipleDialog
) and file save dialogs (showSaveDialog
). The configuration of the displayed dialog is controlled by the values of the FileChooser
properties set before the corresponding show*Dialog
method is called. This configuration includes the dialog's title, the initial directory displayed in the dialog and the extension filter(s) for the listed files. For configuration properties which values haven't been set explicitly, the displayed dialog uses their platform default values. A call to a show dialog method is blocked until the user makes a choice or cancels the dialog. The return value specifies the selected file(s) or equals to null
if the dialog has been canceled.
홈 다운로드 기능 회사 소개 연락처 개인 정보 보호 EULA 지원 Uninstall File Extension.STAGE ©2009-2014 Solvusoft.
Example:
File Tax Extension
Constructor Detail
FileChooser.ExtensionFilter
Creates anExtensionFilter
with the specified description and the file name extensions.File name extension should be specified in the
*.<extension>
format.- Parameters:
description
- the textual description for the filterextensions
- the accepted file name extensions- Throws:
java.lang.NullPointerException
- if the description or the extensions arenull
java.lang.IllegalArgumentException
- if the description or the extensions are empty
FileChooser.ExtensionFilter
Creates anExtensionFilter
with the specified description and the file name extensions.File name extension should be specified in the
*.<extension>
format.- Parameters:
description
- the textual description for the filterextensions
- the accepted file name extensions- Throws:
java.lang.NullPointerException
- if the description or the extensions arenull
java.lang.IllegalArgumentException
- if the description or the extensions are empty
Method Detail
getDescription
- Returns:
- the description
getExtensions
Gets the file name extensions for thisExtensionFilter
.The returned list is unmodifiable and will throw
UnsupportedOperationException
on each modification attempt.- Returns:
- the file name extensions