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 should be considered an implementation detail, and subject to change.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | SynthFileChooserUI.
Responds to a File Name completion request (e.g. Tab) |
| pack-priv static class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private FileFilter | |
| private JButton | |
| private JButton | |
| private Action | |
| private String | |
| private SynthFileChooserUI. | |
| private SynthStyle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearIconCache()
Overrides javax. Clears the icon cache. |
| protected abstract ActionMap | |
| public PropertyChangeListener | createPropertyChangeListener(JFileChooser fc)
Overrides javax. Creates the property change listener. |
| public static ComponentUI | createUI(JComponent c)
Hides javax. Creates a |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected JButton | getApproveButton(JFileChooser fc)
Overrides javax. Returns the approve button. |
| protected JButton | |
| private String | |
| private int | |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| protected SynthContext | |
| public abstract String | getFileName()
Overrides javax. Returns the file name. |
| public Action | |
| private Region | |
| public void | installComponents(JFileChooser fc)
Overrides javax. Installs the components. |
| protected void | installDefaults(JFileChooser fc)
Overrides javax. Installs the defaults. |
| protected void | installIcons(JFileChooser fc)
Overrides javax. Installs the icons. |
| protected void | installListeners(JFileChooser fc)
Overrides javax. Installs the listeners. |
| public void | installUI(JComponent c)
Overrides javax. Installs the UI. |
| private static boolean | |
| public void | paint(Graphics g, JComponent c)
Overrides javax. Paints the specified component appropriately for the look and feel. |
| protected void | |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the border. |
| private void | |
| public abstract void | setFileName(String fileName)
Overrides javax. Sets the file name. |
| public void | uninstallComponents(JFileChooser fc)
Overrides javax. Uninstalls the components. |
| protected void | uninstallDefaults(JFileChooser fc)
Overrides javax. Uninstalls the defaults. |
| public void | update(Graphics g, JComponent c)
Overrides javax. Notifies this UI delegate that it is time to paint the specified component. |
| private void | |
| private void |
| actualFileFilter | back to summary |
|---|---|
| private FileFilter actualFileFilter Hides javax. | |
| approveButton | back to summary |
|---|---|
| private JButton approveButton | |
| cancelButton | back to summary |
|---|---|
| private JButton cancelButton | |
| fileNameCompletionAction | back to summary |
|---|---|
| private Action fileNameCompletionAction | |
| fileNameCompletionString | back to summary |
|---|---|
| private String fileNameCompletionString | |
| globFilter | back to summary |
|---|---|
| private SynthFileChooserUI. | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| SynthFileChooserUI | back to summary |
|---|---|
| public SynthFileChooserUI(JFileChooser b) | |
| clearIconCache | back to summary |
|---|---|
| public void clearIconCache() Overrides javax. Doc from javax. Clears the icon cache. | |
| createActionMap | back to summary |
|---|---|
| protected abstract ActionMap createActionMap() Hides javax. | |
| createPropertyChangeListener | back to summary |
|---|---|
| public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) Overrides javax. Doc from javax. Creates the property change listener. | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Doc from javax. Creates a | |
| doAccessoryChanged | back to summary |
|---|---|
| protected void doAccessoryChanged(PropertyChangeEvent e) | |
| doAncestorChanged | back to summary |
|---|---|
| protected void doAncestorChanged(PropertyChangeEvent e) | |
| doControlButtonsChanged | back to summary |
|---|---|
| protected void doControlButtonsChanged(PropertyChangeEvent e) | |
| doDirectoryChanged | back to summary |
|---|---|
| protected void doDirectoryChanged(PropertyChangeEvent e) | |
| doFileSelectionModeChanged | back to summary |
|---|---|
| protected void doFileSelectionModeChanged(PropertyChangeEvent e) | |
| doMultiSelectionChanged | back to summary |
|---|---|
| protected void doMultiSelectionChanged(PropertyChangeEvent e) | |
| doSelectedFileChanged | back to summary |
|---|---|
| protected void doSelectedFileChanged(PropertyChangeEvent e) | |
| doSelectedFilesChanged | back to summary |
|---|---|
| protected void doSelectedFilesChanged(PropertyChangeEvent e) | |
| getApproveButton | back to summary |
|---|---|
| protected JButton getApproveButton(JFileChooser fc) Overrides javax. Doc from javax. Returns the approve button. | |
| getCancelButton | back to summary |
|---|---|
| protected JButton getCancelButton(JFileChooser fc) | |
| getCommonStartString | back to summary |
|---|---|
| private String getCommonStartString(File[] files) | |
| getComponentState | back to summary |
|---|---|
| private int getComponentState(JComponent c) | |
| getContext | back to summary |
|---|---|
| public SynthContext getContext(JComponent c) Implements javax. Doc from javax. Returns the Context for the specified component. | |
| getContext | back to summary |
|---|---|
| protected SynthContext getContext(JComponent c, int state) | |
| getFileName | back to summary |
|---|---|
| public abstract String getFileName() Overrides javax. Doc from javax. Returns the file name. | |
| getFileNameCompletionAction | back to summary |
|---|---|
| public Action getFileNameCompletionAction() | |
| getRegion | back to summary |
|---|---|
| private Region getRegion(JComponent c) | |
| installComponents | back to summary |
|---|---|
| public void installComponents(JFileChooser fc) Overrides javax. Doc from javax. Installs the components. | |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults(JFileChooser fc) Overrides javax. Doc from javax. Installs the defaults. | |
| installIcons | back to summary |
|---|---|
| protected void installIcons(JFileChooser fc) Overrides javax. Doc from javax. Installs the icons. | |
| installListeners | back to summary |
|---|---|
| protected void installListeners(JFileChooser fc) Overrides javax. Doc from javax. Installs the listeners. | |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent c) Overrides javax. Doc from javax. Installs the UI. | |
| isGlobPattern | back to summary |
|---|---|
| private static boolean isGlobPattern(String fileName) Hides javax. | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Doc from javax. Paints the specified component appropriately for the look and feel.
This method is invoked from the | |
| paint | back to summary |
|---|---|
| protected void paint(SynthContext context, Graphics g) | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) Implements javax. Doc from javax. Paints the border. | |
| resetGlobFilter | back to summary |
|---|---|
| private void resetGlobFilter() Hides javax. | |
| setFileName | back to summary |
|---|---|
| public abstract void setFileName(String fileName) Overrides javax. Doc from javax. Sets the file name. | |
| uninstallComponents | back to summary |
|---|---|
| public void uninstallComponents(JFileChooser fc) Overrides javax. Doc from javax. Uninstalls the components. | |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults(JFileChooser fc) Overrides javax. Doc from javax. Uninstalls the defaults. | |
| update | back to summary |
|---|---|
| public void update(Graphics g, JComponent c) Overrides javax. Doc from javax. Notifies this UI delegate that it is time to paint the specified
component. This method is invoked by By default this method fills the specified component with
its background color if its | |
| updateFileNameCompletion | back to summary |
|---|---|
| private void updateFileNameCompletion() | |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(JComponent c) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| DelayedSelectionUpdater | back to summary |
|---|---|
| pack-priv DelayedSelectionUpdater() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | actionPerformed(ActionEvent e)
Implements java. Invoked when an action occurs. |
| FileNameCompletionAction | back to summary |
|---|---|
| protected FileNameCompletionAction() | |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(ActionEvent e) Implements java. Doc from java. Invoked when an action occurs. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accept(File f)
Implements abstract javax. Whether the given file is accepted by this filter. |
| public String | getDescription()
Implements abstract javax. The description of this filter. |
| public void |
| globPattern | back to summary |
|---|---|
| pack-priv String globPattern | |
| pattern | back to summary |
|---|---|
| pack-priv Pattern pattern | |
| GlobFilter | back to summary |
|---|---|
| pack-priv GlobFilter() | |
| accept | back to summary |
|---|---|
| public boolean accept(File f) Implements abstract javax. Doc from javax. Whether the given file is accepted by this filter. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract javax. Doc from javax. The description of this filter. For example: "JPG and GIF Images" | |
| setPattern | back to summary |
|---|---|
| public void setPattern(String globPattern) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| SynthFCPropertyChangeListener | back to summary |
|---|---|
| private SynthFCPropertyChangeListener() | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public boolean | isBorderOpaque()
Overrides javax. Implements javax. This default implementation returns false. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| _insets | back to summary |
|---|---|
| private Insets _insets | |
| UIBorder | back to summary |
|---|---|
| pack-priv UIBorder(Insets insets) | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Overrides javax. Implements javax. Doc from javax. This default implementation returns false. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |