Metal L&F implementation of a FileChooser.
Metal L&F implementation of a FileChooser.
(*create-ui c)
c - javax.swing.JComponent
returns: javax.swing.plaf.ComponentUI
c - `javax.swing.JComponent` returns: `javax.swing.plaf.ComponentUI`
(->metal-file-chooser-ui filechooser)
Constructor.
filechooser - javax.swing.JFileChooser
Constructor. filechooser - `javax.swing.JFileChooser`
(create-list-selection-listener this fc)
Creates a selection listener for the list of files and directories.
fc - a JFileChooser - javax.swing.JFileChooser
returns: a ListSelectionListener - javax.swing.event.ListSelectionListener
Creates a selection listener for the list of files and directories. fc - a JFileChooser - `javax.swing.JFileChooser` returns: a ListSelectionListener - `javax.swing.event.ListSelectionListener`
(create-property-change-listener this fc)
fc - javax.swing.JFileChooser
returns: java.beans.PropertyChangeListener
fc - `javax.swing.JFileChooser` returns: `java.beans.PropertyChangeListener`
(ensure-file-is-visible this fc f)
fc - javax.swing.JFileChooser
f - java.io.File
fc - `javax.swing.JFileChooser` f - `java.io.File`
(get-directory-name this)
returns: java.lang.String
returns: `java.lang.String`
(get-file-name this)
returns: java.lang.String
returns: `java.lang.String`
(get-maximum-size this c)
Returns the maximum size of the JFileChooser.
c - a JFileChooser - javax.swing.JComponent
returns: a Dimension specifying the maximum
width and height of the file chooser - java.awt.Dimension
Returns the maximum size of the JFileChooser. c - a JFileChooser - `javax.swing.JComponent` returns: a Dimension specifying the maximum width and height of the file chooser - `java.awt.Dimension`
(get-minimum-size this c)
Returns the minimum size of the JFileChooser.
c - a JFileChooser - javax.swing.JComponent
returns: a Dimension specifying the minimum
width and height of the file chooser - java.awt.Dimension
Returns the minimum size of the JFileChooser. c - a JFileChooser - `javax.swing.JComponent` returns: a Dimension specifying the minimum width and height of the file chooser - `java.awt.Dimension`
(get-preferred-size this c)
Returns the preferred size of the specified JFileChooser. The preferred size is at least as large, in both height and width, as the preferred size recommended by the file chooser's layout manager.
c - a JFileChooser - javax.swing.JComponent
returns: a Dimension specifying the preferred
width and height of the file chooser - java.awt.Dimension
Returns the preferred size of the specified JFileChooser. The preferred size is at least as large, in both height and width, as the preferred size recommended by the file chooser's layout manager. c - a JFileChooser - `javax.swing.JComponent` returns: a Dimension specifying the preferred width and height of the file chooser - `java.awt.Dimension`
(install-components this fc)
fc - javax.swing.JFileChooser
fc - `javax.swing.JFileChooser`
(install-ui this c)
Description copied from class: ComponentUI
c - the component where this UI delegate is being installed - javax.swing.JComponent
Description copied from class: ComponentUI c - the component where this UI delegate is being installed - `javax.swing.JComponent`
(rescan-current-directory this fc)
fc - javax.swing.JFileChooser
fc - `javax.swing.JFileChooser`
(set-directory-name this dirname)
dirname - java.lang.String
dirname - `java.lang.String`
(set-file-name this filename)
filename - java.lang.String
filename - `java.lang.String`
(uninstall-components this fc)
fc - javax.swing.JFileChooser
fc - `javax.swing.JFileChooser`
(uninstall-ui this c)
Description copied from class: ComponentUI
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent
Description copied from class: ComponentUI c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
(value-changed this e)
e - javax.swing.event.ListSelectionEvent
e - `javax.swing.event.ListSelectionEvent`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close