GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI
javax.swing.plaf.metal.MetalFileChooserUI
public class MetalFileChooserUI
extends BasicFileChooserUI
JFileChooser
component. This class is only
partially implemented and is not usable yet.
Nested Class Summary | |
protected class |
|
protected class |
|
protected class |
|
protected class |
|
class |
|
protected class |
|
Field Summary |
Constructor Summary | |
|
Method Summary | |
protected void |
|
protected ActionMap |
|
protected JPanel |
|
protected MetalFileChooserUI.DirectoryComboBoxModel |
|
protected javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxRenderer |
|
protected MetalFileChooserUI.FilterComboBoxModel |
|
protected MetalFileChooserUI.FilterComboBoxRenderer |
|
protected JPanel |
|
ListSelectionListener |
|
PropertyChangeListener |
|
static ComponentUI |
|
protected ActionMap | |
protected JButton |
|
protected JPanel |
|
protected JPanel |
|
String |
|
Dimension |
|
Dimension |
|
Dimension |
|
void |
|
protected void |
|
protected void |
|
void | |
protected void |
|
void |
|
void |
|
void |
|
protected void | |
void | |
void |
|
Methods inherited from class javax.swing.plaf.FileChooserUI | |
ensureFileIsVisible , getAcceptAllFileFilter , getApproveButtonText , getDialogTitle , getFileView , rescanCurrentDirectory |
Methods inherited from class javax.swing.plaf.ComponentUI | |
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , installUI , paint , uninstallUI , update |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public MetalFileChooserUI(JFileChooser filechooser)
Creates a new instance of this UI delegate.
- Parameters:
filechooser
- the file chooser component.
protected void addControlButtons()
Adds the control buttons ('up', 'home' etc.) to the panel.
protected ActionMap createActionMap()
Creates and returns an action map.
- Returns:
- The action map.
protected JPanel createDetailsView(JFileChooser fc)
Creates a panel containing a table within a scroll pane.
- Parameters:
fc
- the file chooser.
- Returns:
- The details view.
protected MetalFileChooserUI.DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc)
Creates and returns a new instance ofMetalFileChooserUI.DirectoryComboBoxModel
.
- Returns:
- A new instance of
MetalFileChooserUI.DirectoryComboBoxModel
.
protected javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxRenderer createDirectoryComboBoxRenderer(JFileChooser fc)
Creates a new instance of the renderer used in the directory combo box.
- Parameters:
fc
- the file chooser.
- Returns:
- The renderer.
protected MetalFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()
Creates and returns a new instance ofMetalFileChooserUI.FilterComboBoxModel
.
- Returns:
- A new instance of
MetalFileChooserUI.FilterComboBoxModel
.
protected MetalFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()
Creates and returns a new instance ofMetalFileChooserUI.FilterComboBoxRenderer
.
- Returns:
- A new instance of
MetalFileChooserUI.FilterComboBoxRenderer
.
protected JPanel createList(JFileChooser fc)
Creates a panel containing a list of files.
- Parameters:
fc
- the file chooser.
- Returns:
- A panel.
public ListSelectionListener createListSelectionListener(JFileChooser fc)
Creates a listener that monitors selections in the directory/file list and keeps theJFileChooser
component up to date.
- Overrides:
- createListSelectionListener in interface BasicFileChooserUI
- Parameters:
fc
- the file chooser.
- Returns:
- The listener.
- See Also:
installListeners(JFileChooser)
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
Creates a property change listener that monitors theJFileChooser
for property change events and updates the component display accordingly.
- Overrides:
- createPropertyChangeListener in interface BasicFileChooserUI
- Parameters:
fc
- the file chooser.
- Returns:
- The property change listener.
- See Also:
installListeners(JFileChooser)
public static ComponentUI createUI(JComponent c)
A factory method that returns a UI delegate for the specified component.
- Overrides:
- createUI in interface BasicFileChooserUI
- Parameters:
c
- the component (which should be aJFileChooser
).
protected JButton getApproveButton(JFileChooser fc)
Returns the approve button.
- Overrides:
- getApproveButton in interface BasicFileChooserUI
- Returns:
- The approve button.
protected JPanel getBottomPanel()
Creates and returns a new panel that will be used for the controls at the bottom of the file chooser.
- Returns:
- A new panel.
protected JPanel getButtonPanel()
Returns the panel that contains the 'Open' (or 'Save') and 'Cancel' buttons.
- Returns:
- The panel.
public String getFileName()
Returns the file name in the text field.
- Overrides:
- getFileName in interface BasicFileChooserUI
- Returns:
- The file name.
public Dimension getMaximumSize(JComponent c)
Returns the maximum size for the file chooser component.
- Overrides:
- getMaximumSize in interface ComponentUI
- Returns:
- The maximum size.
public Dimension getMinimumSize(JComponent c)
Returns the minimum size for the file chooser component.
- Overrides:
- getMinimumSize in interface ComponentUI
- Returns:
- The minimum size.
public Dimension getPreferredSize(JComponent c)
Returns the preferred size for the file chooser component.
- Overrides:
- getPreferredSize in interface ComponentUI
- Returns:
- The preferred size.
public void installComponents(JFileChooser fc)
Installs the sub-components of the file chooser.
- Overrides:
- installComponents in interface BasicFileChooserUI
- Parameters:
fc
- the file chooser component.
protected void installListeners(JFileChooser fc)
Installs the listeners required.
- Overrides:
- installListeners in interface BasicFileChooserUI
- Parameters:
fc
- the file chooser.
protected void installStrings(JFileChooser fc)
Fetches localised strings for use by the labels and buttons on the file chooser.
- Overrides:
- installStrings in interface BasicFileChooserUI
- Parameters:
fc
- the file chooser.
protected void removeControlButtons()
Removes all the buttons from the control panel.
public void rescanCurrentDirectory(JFileChooser fc)
Updates the current directory.
- Overrides:
- rescanCurrentDirectory in interface BasicFileChooserUI
- Parameters:
fc
- the file chooser to update.
public void setFileName(String filename)
Sets the file name in the text field.
- Overrides:
- setFileName in interface BasicFileChooserUI
- Parameters:
filename
- the file name.
public void uninstallComponents(JFileChooser fc)
Uninstalls the components added byinstallComponents(JFileChooser)
.
- Overrides:
- uninstallComponents in interface BasicFileChooserUI
- Parameters:
fc
- the file chooser.
protected void uninstallListeners(JFileChooser fc)
- Overrides:
- uninstallListeners in interface BasicFileChooserUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in interface BasicFileChooserUI
public void valueChanged(ListSelectionEvent e)
DOCUMENT ME!!
- Parameters:
e
- - DOCUMENT ME!
GNU Classpath (0.95) |