APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.swing

public Class FilePane

extends JPanel
implements PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener
Annotations
@SuppressWarnings:serial
Imports
java.awt.BorderLayout, .Color, .Component, .ComponentOrientation, .Container, .Cursor, .DefaultKeyboardFocusManager, .Dimension, .Font, .Insets, .KeyboardFocusManager, .Point, .Rectangle, java.awt.event.ActionEvent, .ActionListener, .ComponentAdapter, .ComponentEvent, .FocusAdapter, .FocusEvent, .FocusListener, .KeyAdapter, .KeyEvent, .KeyListener, .MouseAdapter, .MouseEvent, .MouseListener, java.beans.PropertyChangeEvent, .PropertyChangeListener, java.io.File, .FileNotFoundException, java.text.DateFormat, .MessageFormat, .NumberFormat, java.util.ArrayList, .Arrays, .Comparator, .Date, .List, .Locale, java.util.concurrent.Callable, javax.accessibility.AccessibleContext, javax.swing.AbstractAction, .AbstractListModel, .Action, .ActionMap, .ButtonGroup, .DefaultCellEditor, .DefaultListCellRenderer, .DefaultListSelectionModel, .Icon, .InputMap, .JComponent, .JFileChooser, .JLabel, .JList, .JMenu, .JOptionPane, .JPanel, .JPopupMenu, .JRadioButtonMenuItem, .JScrollPane, .JTable, .JTextField, .KeyStroke, .ListModel, .ListSelectionModel, .LookAndFeel, .RowSorter, .SwingConstants, .SwingUtilities, .TransferHandler, .UIManager, javax.swing.border.Border, javax.swing.event.ListDataEvent, .ListDataListener, .ListSelectionListener, .RowSorterEvent, .RowSorterListener, .TableModelEvent, .TableModelListener, javax.swing.filechooser.FileSystemView, javax.swing.plaf.basic.BasicDirectoryModel, javax.swing.table.AbstractTableModel, .DefaultTableCellRenderer, .DefaultTableColumnModel, .TableCellEditor, .TableCellRenderer, .TableColumn, .TableColumnModel, .TableModel, .TableRowSorter, javax.swing.text.Position, sun.awt.AWTAccessor, .AWTAccessor.MouseEventAccessor, sun.awt.shell.ShellFolder, .ShellFolderColumnInfo

Warning

This class is an implementation detail and is only public so that it can be used by two packages. You should NOT consider this public API.

This component is intended to be used in a subclass of javax.swing.plaf.basic.BasicFileChooserUI. It relies heavily on the implementation of BasicFileChooserUI and is intended to be API compatible with earlier implementations of MetalFileChooserUI and WindowsFileChooserUI.

Author
Leif Samuelsson

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
pack-priv class
pack-priv class
private class
private class
FilePane.DirectoriesFirstComparatorWrapper

This class sorts directories before files, comparing directory to directory and file to file using the wrapped comparator.

pack-priv class
public static interface
protected class
private class
private class
FilePane.SortableListModel

This model allows for sorting JList

pack-priv class

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
private Action[]
private static final int
private JPopupMenu
private JPanel
private final KeyListener
private JTable
private FilePane.DetailsTableModel
pack-priv JTextField
pack-priv File
private FocusListener
private FilePane.FileChooserUIAccessor
private String
private String
private boolean
private String
private FilePane.Handler
private String
pack-priv int
private JList<?>
private ListSelectionModel
private Color
private Border
private boolean
private String
protected Action
private String
private File
private boolean
private String
private String
private String
private String
private static FocusListener
private FilePane.DetailsTableRowSorter
private boolean
private FilePane.DetailsTableCellEditor
private JMenu
private String
private JPanel[]
private int
private static final int
public static final int
public static final int
private String[]
private static final Cursor

Constructor Summary

AccessConstructor and Description
public
FilePane(FilePane.FileChooserUIAccessor fileChooserUIAccessor)

Method Summary

Modifier and TypeMethod and Description
public static void
private void
private void
public boolean
public void
protected void
public JPanel
public JPanel
public ListSelectionListener

Returns:

a ListSelectionListener
createListSelectionListener
()

Creates a selection listener for the list of files and directories.

private void
doDeselectFile(Object fileToDeselect)

private void
private void
private void
private void
private void
private void
private void
doSelectFile(File fileToSelect)

private void
editFileName(int
visual index of the file to be edited
index
)

public void
private void
private <T> T
findChildComponent(Container container, Class<T> cls)

private void
fixNameColumnWidth(int viewWidth)

public Action[]

Returns:

the command list
getActions
()

Fetches the command list for the FilePane.

public JPopupMenu
getComponentPopupMenu()

Overrides javax.swing.JComponent.getComponentPopupMenu.

Returns JPopupMenu that assigned for this component.

private FilePane.DetailsTableCellEditor
private FilePane.DetailsTableModel
protected File

Returns:

the value of the directory property
getDirectory
()

Property to remember the directory that is currently selected in the UI.

private int
protected JFileChooser
protected BasicDirectoryModel
protected FilePane.Handler
public Action
private FilePane.DetailsTableRowSorter
public JMenu
public int
public Action
getViewTypeAction(int viewType)

protected void
protected boolean

Returns:

true iff a directory is currently selected.
isDirectorySelected
()

Property to remember whether a directory is currently selected in the UI.

public void
propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

private static void
public void
private void
private void
setEditIndex(int i)

pack-priv void
public void
setViewType(int viewType)

public void
private void
private void
private void
public static boolean
usesShellFolder(JFileChooser chooser)

Returns true if specified FileChooser should use ShellFolder

Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI