public abstract class

SynthFileChooserUI

extends BasicFileChooserUI
implements SynthUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.FileChooserUI
       ↳ javax.swing.plaf.basic.BasicFileChooserUI
         ↳ sun.swing.plaf.synth.SynthFileChooserUI
Known Direct Subclasses

Class Overview

Synth FileChooserUI. Note: This class is abstract. It does not actually create the file chooser GUI.

Note that the classes in the com.sun.java.swing.plaf.synth package are not part of the core Java APIs. They are a part of Sun's JDK and JRE distributions. Although other licensees may choose to distribute these classes, developers cannot depend on their availability in non-Sun implementations. Additionally this API may change in incompatible ways between releases. While this class is public, it shoud be considered an implementation detail, and subject to change.

Summary

[Expand]
Inherited Constants
From interface javax.swing.plaf.synth.SynthConstants
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicFileChooserUI
Public Constructors
SynthFileChooserUI(JFileChooser b)
Public Methods
void clearIconCache()
PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
static ComponentUI createUI(JComponent c)
SynthContext getContext(JComponent c)
Returns the Context for the specified component.
abstract String getFileName()
Action getFileNameCompletionAction()
void installComponents(JFileChooser fc)
void installUI(JComponent c)
Configures the specified component appropriate for the look and feel.
void paint(Graphics g, JComponent c)
Paints the specified component appropriate for the look and feel.
void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Paints the border.
abstract void setFileName(String fileName)
void uninstallComponents(JFileChooser fc)
void update(Graphics g, JComponent c)
Notifies this UI delegate that it's time to paint the specified component.
Protected Methods
abstract ActionMap createActionMap()
void doAccessoryChanged(PropertyChangeEvent e)
void doAncestorChanged(PropertyChangeEvent e)
void doControlButtonsChanged(PropertyChangeEvent e)
void doDirectoryChanged(PropertyChangeEvent e)
void doFileSelectionModeChanged(PropertyChangeEvent e)
void doMultiSelectionChanged(PropertyChangeEvent e)
void doSelectedFileChanged(PropertyChangeEvent e)
void doSelectedFilesChanged(PropertyChangeEvent e)
JButton getApproveButton(JFileChooser fc)
JButton getCancelButton(JFileChooser fc)
SynthContext getContext(JComponent c, int state)
void installDefaults(JFileChooser fc)
void installIcons(JFileChooser fc)
void installListeners(JFileChooser fc)
void paint(SynthContext context, Graphics g)
void uninstallDefaults(JFileChooser fc)
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicFileChooserUI
From class javax.swing.plaf.FileChooserUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object
From interface sun.swing.plaf.synth.SynthUI

Public Constructors

public SynthFileChooserUI (JFileChooser b)

Public Methods

public void clearIconCache ()

public PropertyChangeListener createPropertyChangeListener (JFileChooser fc)

public static ComponentUI createUI (JComponent c)

public SynthContext getContext (JComponent c)

Returns the Context for the specified component.

Parameters
c Component requesting SynthContext.
Returns
  • SynthContext describing component.

public abstract String getFileName ()

public Action getFileNameCompletionAction ()

public void installComponents (JFileChooser fc)

public void installUI (JComponent c)

Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:

  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Parameters
c the component where this UI delegate is being installed

public void paint (Graphics g, JComponent c)

Paints the specified component appropriate for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Parameters
g the Graphics context in which to paint
c the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

public void paintBorder (SynthContext context, Graphics g, int x, int y, int w, int h)

Paints the border.

public abstract void setFileName (String fileName)

public void uninstallComponents (JFileChooser fc)

public void update (Graphics g, JComponent c)

Notifies this UI delegate that it's time to paint the specified component. This method is invoked by JComponent when the specified component is being painted. By default this method will fill the specified component with its background color (if its opaque property is true) and then immediately call paint. In general this method need not be overridden by subclasses; all look-and-feel rendering code should reside in the paint method.

Parameters
g the Graphics context in which to paint
c the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

Protected Methods

protected abstract ActionMap createActionMap ()

protected void doAccessoryChanged (PropertyChangeEvent e)

protected void doAncestorChanged (PropertyChangeEvent e)

protected void doControlButtonsChanged (PropertyChangeEvent e)

protected void doDirectoryChanged (PropertyChangeEvent e)

protected void doFileSelectionModeChanged (PropertyChangeEvent e)

protected void doMultiSelectionChanged (PropertyChangeEvent e)

protected void doSelectedFileChanged (PropertyChangeEvent e)

protected void doSelectedFilesChanged (PropertyChangeEvent e)

protected JButton getApproveButton (JFileChooser fc)

protected JButton getCancelButton (JFileChooser fc)

protected SynthContext getContext (JComponent c, int state)

protected void installDefaults (JFileChooser fc)

protected void installIcons (JFileChooser fc)

protected void installListeners (JFileChooser fc)

protected void paint (SynthContext context, Graphics g)

protected void uninstallDefaults (JFileChooser fc)