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. |
protected abstract ActionMap | |
public PropertyChangeListener | createPropertyChangeListener(JFileChooser
the file chooser fc)Overrides javax. |
public static ComponentUI | createUI(JComponent
the c)JFileChooser which needs a UIHides javax. BasicFileChooserUI implementation
for the specified component.
|
protected void | |
protected void | |
protected void | |
protected void | |
protected void | |
protected void | |
protected void | |
protected void | |
protected JButton | getApproveButton(JFileChooser
the file chooser fc)Overrides javax. |
protected JButton | |
private String | |
private int | |
public SynthContext | getContext(JComponent
Component requesting SynthContext. c)Implements javax. |
protected SynthContext | |
public abstract String | getFileName()
Overrides javax. |
public Action | |
private Region | |
public void | installComponents(JFileChooser
the file chooser fc)Overrides javax. |
protected void | installDefaults(JFileChooser
the file chooser fc)Overrides javax. |
protected void | installIcons(JFileChooser
the file chooser fc)Overrides javax. |
protected void | installListeners(JFileChooser
the file chooser fc)Overrides javax. |
public void | installUI(JComponent
the component c)Overrides javax. |
private static boolean | |
public void | paint(Graphics
the g, JComponent Graphics context in which to paintthe component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components c)Overrides javax. |
protected void | |
public void | paintBorder(SynthContext
a component context context, Graphics Graphics to paint onthe X coordinate x, int the Y coordinate y, int width of the border w, int height of the border h)Implements javax. |
private void | |
public abstract void | setFileName(String
the file name fileName)Overrides javax. |
public void | uninstallComponents(JFileChooser
the file chooser fc)Overrides javax. |
protected void | uninstallDefaults(JFileChooser
the file chooser fc)Overrides javax. |
public void | update(Graphics
the g, JComponent Graphics context in which to paintthe component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components c)Overrides javax. |
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
the event to be processed e)Implements java. |
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
the File to test f)Implements abstract javax. |
public String | getDescription()
Implements abstract javax. |
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
A PropertyChangeEvent object describing the event source
and the property that has changed. e)Implements java. |
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
the component for which this border insets value applies c, Insets the object to be reinitialized insets)Overrides javax. |
public boolean | isBorderOpaque()
Overrides javax. Implements javax. |
public void | paintBorder(Component
the component for which this border is being painted c, Graphics the paint graphics g, int the x position of the painted border x, int the y position of the painted border y, int the width of the painted border width, int the height of the painted border height)Overrides javax. Implements javax. |
_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. |