Uses of Class
ca.corbett.forms.fields.FileField
Packages that use FileField
Package
Description
ca.corbett.forms.fields
All FormFields support optional validation in the form of a FieldValidator.
-
Uses of FileField in ca.corbett.forms.fields
Methods in ca.corbett.forms.fields that return FileFieldModifier and TypeMethodDescriptionFileField.addChoosableFileFilter(FileFilter filter) Adds a FileFilter to the list of user-selectable filters on the dialog.FileField.removeChoosableFileFilter(FileFilter filter) Removes the given FileFilter from the list of choosable filters that were provided via addChoosableFileFilter.FileField.resetChoosableFileFilters()Resets the list of choosable file filters back to the starting state.FileField.setAcceptAllFileFilterUsed(boolean enable) If true (the default value), the file chooser will automatically get an "All files" file filter in the file type dropdown, that allows selection of all files and directories.FileField.setAccessory(JComponent component) Sets an optional "accessory" component which can be used to show custom file previews.FileField.setAllowBlankValues(boolean allow) Specifies whether blank values should be allowed in the text field.FileField.setButtonIcon(Icon icon) Changes our chooser button to use the given icon.FileField.setButtonText(String text) Sets the text to use for the button.Sets the currently selected File for this field.FileField.setFileFilter(FileFilter filter) Sets which of the choosable file filters added via addChoosableFileFilter should be selected by default when the dialog comes up.FileField.setFileHidingEnabled(boolean enabled) If true (the default value), hidden files will not be displayed in the file chooser.FileField.setSelectionType(FileField.SelectionType selectionType) Sets the SelectionType for this FieldField.FileField.setSelectionType(FileField.SelectionType selectionType, boolean allowBlankValues) Sets the SelectionType for this FileField. -
Uses of FileField in ca.corbett.forms.validators
Classes in ca.corbett.forms.validators that implement interfaces with type arguments of type FileFieldModifier and TypeClassDescriptionclassA validator for use with FileField to ensure that the selected File is in a location that can be written.classA FieldValidator that ensures that the chosen file or directory can be read.classSimilar to NonBlankFieldValidator for TextFields, this FieldValidator implementation insists that a FileField cannot contain a blank value.classA FieldValidator that ensures that the chosen File can be written.classA FieldValidator that ensures that the chosen File or Directory exists.classA simple validator that can be attached to any FileField to ensure that the selected file is not a directory.classThe opposite of FileMustExistValidator, this one ensures that the selected file or directory does not already exist (such as for a save dialog).Methods in ca.corbett.forms.validators with parameters of type FileFieldModifier and TypeMethodDescription