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
public class BasicFileChooserUI
extends FileChooserUI
JFileChooser
component under the
BasicLookAndFeel
.
Nested Class Summary | |
protected class |
|
protected class |
|
protected class |
|
protected class |
|
protected class |
|
protected class |
|
protected class |
|
protected class |
|
protected class |
|
protected class |
|
Field Summary | |
protected int |
|
protected String |
|
protected String |
|
protected Icon |
|
protected Icon |
|
protected Icon |
|
protected int |
|
protected String |
|
protected String |
|
protected Icon |
|
protected Icon |
|
protected Icon |
|
protected int |
|
protected String |
|
protected String |
|
protected Icon |
|
protected Icon |
|
protected Icon |
|
protected int |
|
protected String |
|
protected String |
|
protected int |
|
protected String |
|
protected String |
|
protected Icon |
|
protected int |
|
protected String |
|
protected String |
|
Constructor Summary | |
|
Method Summary | |
void |
|
protected MouseListener |
|
ListSelectionListener |
|
protected void |
|
PropertyChangeListener |
|
static ComponentUI |
|
void |
|
FileFilter |
|
JPanel |
|
protected JButton |
|
int |
|
String |
|
String |
|
Action |
|
Action |
|
Action |
|
String |
|
protected File |
|
String |
|
JFileChooser |
|
String |
|
FileView |
|
Action |
|
BasicDirectoryModel |
|
Action |
|
Action |
|
void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
void |
|
protected boolean |
|
void |
|
protected void |
|
void |
|
protected void |
|
void |
|
void |
|
protected void |
|
protected void |
|
protected void |
|
protected 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 |
protected String cancelButtonToolTipText
The localised tool tip text for the cancel button.
protected int directoryOpenButtonMnemonic
The localised Mnemonic for the open button.
protected String directoryOpenButtonText
The localised text for the open button.
protected String directoryOpenButtonToolTipText
The localised tool tip text for the open button.
protected String helpButtonToolTipText
The localised tool tip text for the help button.
protected String openButtonToolTipText
The localised tool tip text for the "open" button.
protected String saveButtonToolTipText
The localised tool tip text for the save button.
protected int updateButtonMnemonic
The localised mnemonic for the "update" button.
protected String updateButtonToolTipText
The localised tool tip text for the "update" button.
public BasicFileChooserUI(JFileChooser b)
Creates a newBasicFileChooserUI
object.
- Parameters:
b
- the file chooser component.
protected MouseListener createDoubleClickListener(JFileChooser fc, JList list)
Creates a new listener to handle double-click events.
- Parameters:
fc
- the file chooser component.list
- the list.
- Returns:
- A new instance of
BasicFileChooserUI.DoubleClickListener
.
public ListSelectionListener createListSelectionListener(JFileChooser fc)
Creates a new listener to handle selections in the file list.
- Parameters:
fc
- the file chooser component.
- Returns:
- A new instance of
BasicFileChooserUI.SelectionListener
.
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
Creates a listener to handle changes to the properties of the given file chooser component.
- Parameters:
fc
- the file chooser component.
- Returns:
- A new listener.
public static ComponentUI createUI(JComponent c)
Returns a UI delegate for the given component.
- Overrides:
- createUI in interface ComponentUI
- Parameters:
c
- the component (should be aJFileChooser
).
- Returns:
- A new UI delegate.
public void ensureFileIsVisible(JFileChooser fc, File f)
NOT YET IMPLEMENTED.
- Overrides:
- ensureFileIsVisible in interface FileChooserUI
- Parameters:
fc
- the file chooser.f
- the file.
public FileFilter getAcceptAllFileFilter(JFileChooser fc)
Returns the "accept all" file filter.
- Overrides:
- getAcceptAllFileFilter in interface FileChooserUI
- Parameters:
fc
- the file chooser component.
- Returns:
- The "accept all" file filter.
public JPanel getAccessoryPanel()
Returns the optional accessory panel.
- Returns:
- The optional accessory panel.
protected JButton getApproveButton(JFileChooser fc)
Returns the approve (open or save) button for the dialog.
- Parameters:
fc
- the file chooser.
- Returns:
- The button.
public int getApproveButtonMnemonic(JFileChooser fc)
Returns the approve button mnemonic.
- Parameters:
fc
- the file chooser (null
not permitted).
- Returns:
- The approve button mnemonic.
public String getApproveButtonText(JFileChooser fc)
Returns the approve button text.
- Overrides:
- getApproveButtonText in interface FileChooserUI
- Parameters:
fc
- the file chooser (null
not permitted).
- Returns:
- The approve button text.
- See Also:
JFileChooser.getApproveButtonText()
public String getApproveButtonToolTipText(JFileChooser fc)
Returns the tool tip text for the approve (open/save) button. This first checks the file chooser to see if a value has been explicitly set - if not, a default value appropriate for the type of file chooser is returned.
- Parameters:
fc
- the file chooser.
- Returns:
- The tool tip text.
public Action getApproveSelectionAction()
Returns the action that handles events for the "approve" button.
- Returns:
- An instance of
BasicFileChooserUI.ApproveSelectionAction
.
public Action getCancelSelectionAction()
Returns the action that handles events for the "cancel" button.
- Returns:
- An instance of
BasicFileChooserUI.CancelSelectionAction
.
public Action getChangeToParentDirectoryAction()
Returns the action that handles events for the "up folder" control button.
- Returns:
- An instance of
BasicFileChooserUI.ChangeToParentDirectoryAction
.
public String getDialogTitle(JFileChooser fc)
Returns the dialog title.
- Overrides:
- getDialogTitle in interface FileChooserUI
- Parameters:
fc
- the file chooser (null
not permitted).
- Returns:
- The dialog title.
- See Also:
JFileChooser.getDialogTitle()
protected File getDirectory()
Returns the current directory.
- Returns:
- The current directory.
public String getDirectoryName()
Returns the current directory name.
- Returns:
- The directory name.
- See Also:
setDirectoryName(String)
public JFileChooser getFileChooser()
Returns theJFileChooser
component that this UI delegate represents.
- Returns:
- The component represented by this UI delegate.
public String getFileName()
Returns the current file name.
- Returns:
- The current file name.
public FileView getFileView(JFileChooser fc)
Returns the default file view (NOT the file view from the file chooser, if there is one).
- Overrides:
- getFileView in interface FileChooserUI
- Parameters:
fc
- the file chooser component.
- Returns:
- The file view.
- See Also:
JFileChooser.getFileView()
public Action getGoHomeAction()
Creates and returns a new action that will be used with the "home folder" button.
- Returns:
- A new instance of
BasicFileChooserUI.GoHomeAction
.
public BasicDirectoryModel getModel()
Returns the directory model.
- Returns:
- The directory model.
public Action getNewFolderAction()
Creates and returns a new action that will be used with the "new folder" button.
- Returns:
- A new instance of
BasicFileChooserUI.NewFolderAction
.
public Action getUpdateAction()
Returns the update action (an instance ofBasicFileChooserUI.UpdateAction
).
- Returns:
- An action.
public void installComponents(JFileChooser fc)
Creates and install the subcomponents for the file chooser.
- Parameters:
fc
- the file chooser.
protected void installDefaults(JFileChooser fc)
Installs the defaults for this UI delegate.
- Parameters:
fc
- the file chooser.
protected void installIcons(JFileChooser fc)
Installs the icons for this UI delegate.
- Parameters:
fc
- the file chooser (ignored).
protected void installListeners(JFileChooser fc)
Installs the listeners required by this UI delegate.
- Parameters:
fc
- the file chooser.
protected void installStrings(JFileChooser fc)
Installs the strings used by this UI delegate.
- Parameters:
fc
- the file chooser.
public void installUI(JComponent c)
Installs the UI for the specified component.
- Overrides:
- installUI in interface ComponentUI
- Parameters:
c
- the component (should be aJFileChooser
).
protected boolean isDirectorySelected()
Returnstrue
if a directory is selected, andfalse
otherwise.
- Returns:
- A boolean.
public void rescanCurrentDirectory(JFileChooser fc)
Rescans the current directory.
- Overrides:
- rescanCurrentDirectory in interface FileChooserUI
- Parameters:
fc
- the file chooser.
protected void setDirectory(File f)
Sets the current directory.
- Parameters:
f
- the directory.
public void setDirectoryName(String dirname)
Sets the directory name (NOT IMPLEMENTED).
- Parameters:
dirname
- the directory name.
- See Also:
getDirectoryName()
protected void setDirectorySelected(boolean selected)
Sets the flag that indicates whether the current directory is selected.
- Parameters:
selected
- the new flag value.
public void setFileName(String filename)
Sets the file name.
- Parameters:
filename
- the file name.
- See Also:
getFileName()
public void uninstallComponents(JFileChooser fc)
Uninstalls the components from the file chooser.
- Parameters:
fc
- the file chooser.
protected void uninstallDefaults(JFileChooser fc)
Uninstalls the defaults previously added by this UI delegate.
- Parameters:
fc
- the file chooser.
protected void uninstallIcons(JFileChooser fc)
Uninstalls the icons previously added by this UI delegate.
- Parameters:
fc
- the file chooser.
protected void uninstallListeners(JFileChooser fc)
Uninstalls the listeners previously installed by this UI delegate.
- Parameters:
fc
- the file chooser.
protected void uninstallStrings(JFileChooser fc)
Uninstalls the strings previously added by this UI delegate.
- Parameters:
fc
- the file chooser.
public void uninstallUI(JComponent c)
Uninstalls this UI from the given component.
- Overrides:
- uninstallUI in interface ComponentUI
- Parameters:
c
- the component (should be aJFileChooser
).
GNU Classpath (0.95) |