| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class MetalFileChooserUI extends BasicFileChooserUI
Metal L&F implementation of a FileChooser.
Nested Class Summary | |
---|---|
protected class |
Acts when DirectoryComboBox has changed the selected item. |
protected class |
Data model for a type-face selection combo-box. |
protected class |
|
protected class |
Data model for a type-face selection combo-box. |
class |
Render different type sizes and styles. |
protected class |
|
Field Summary |
---|
Constructor Summary | |
---|---|
MetalFileChooserUI(JFileChooser filechooser) |
Method Summary | |
---|---|
protected void |
|
protected ActionMap |
|
protected JPanel |
|
protected MetalFileChooserUI.DirectoryComboBoxModel |
|
protected MetalFileChooserUI.DirectoryComboBoxRenderer |
|
protected MetalFileChooserUI.FilterComboBoxModel |
|
protected MetalFileChooserUI.FilterComboBoxRenderer |
|
protected JPanel |
|
ListSelectionListener |
Creates a selection listener for the list of files and directories. |
PropertyChangeListener |
|
static ComponentUI |
|
void |
ensureFileIsVisible(JFileChooser fc, File f) |
protected ActionMap |
|
protected JButton |
|
protected JPanel |
|
protected JPanel |
|
String |
|
String |
|
Dimension |
Returns the maximum size of the JFileChooser .
|
Dimension |
Returns the minimum size of the JFileChooser .
|
Dimension |
Returns the preferred size of the specified JFileChooser .
|
void |
|
protected void |
|
protected void |
|
void |
|
protected void |
|
void |
|
void |
setDirectoryName(String dirname) |
protected void |
setDirectorySelected(boolean directorySelected) Property to remember whether a directory is currently selected in the UI. |
void |
setFileName(String filename) |
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, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetalFileChooserUI(JFileChooser filechooser)
filechooser
Method Detail |
---|
protected void addControlButtons()
protected ActionMap createActionMap()
protected JPanel createDetailsView(JFileChooser fc)
fc
protected MetalFileChooserUI.DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc)
fc
protected MetalFileChooserUI.DirectoryComboBoxRenderer createDirectoryComboBoxRenderer(JFileChooser fc)
fc
protected MetalFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()
protected MetalFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()
protected JPanel createList(JFileChooser fc)
fc
public ListSelectionListener createListSelectionListener(JFileChooser fc)
createListSelectionListener
in class BasicFileChooserUI
fc
- a JFileChooser
ListSelectionListener
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
createPropertyChangeListener
in class BasicFileChooserUI
fc
public static ComponentUI createUI(JComponent c)
c
public void ensureFileIsVisible(JFileChooser fc, File f)
ensureFileIsVisible
in class BasicFileChooserUI
fc
f
protected ActionMap getActionMap()
protected JButton getApproveButton(JFileChooser fc)
getApproveButton
in class BasicFileChooserUI
fc
protected JPanel getBottomPanel()
protected JPanel getButtonPanel()
public String getDirectoryName()
getDirectoryName
in class BasicFileChooserUI
public String getFileName()
getFileName
in class BasicFileChooserUI
public Dimension getMaximumSize(JComponent c)
JFileChooser
.
getMaximumSize
in class ComponentUI
c
- a JFileChooser
Dimension
specifying the maximum
width and height of the file chooserpublic Dimension getMinimumSize(JComponent c)
JFileChooser
.
getMinimumSize
in class ComponentUI
c
- a JFileChooser
Dimension
specifying the minimum
width and height of the file chooserpublic Dimension getPreferredSize(JComponent c)
JFileChooser
.
The preferred size is at least as large,
in both height and width,
as the preferred size recommended
by the file chooser's layout manager.
getPreferredSize
in class ComponentUI
c
- a JFileChooser
Dimension
specifying the preferred
width and height of the file chooserpublic void installComponents(JFileChooser fc)
installComponents
in class BasicFileChooserUI
fc
protected void installListeners(JFileChooser fc)
installListeners
in class BasicFileChooserUI
fc
protected void installStrings(JFileChooser fc)
installStrings
in class BasicFileChooserUI
fc
public void installUI(JComponent c)
installUI
in class BasicFileChooserUI
c
protected void removeControlButtons()
public void rescanCurrentDirectory(JFileChooser fc)
rescanCurrentDirectory
in class BasicFileChooserUI
fc
public void setDirectoryName(String dirname)
setDirectoryName
in class BasicFileChooserUI
dirname
protected void setDirectorySelected(boolean directorySelected)
setDirectorySelected
in class BasicFileChooserUI
directorySelected
- if a directory is currently selected.public void setFileName(String filename)
setFileName
in class BasicFileChooserUI
filename
public void uninstallComponents(JFileChooser fc)
uninstallComponents
in class BasicFileChooserUI
fc
public void uninstallUI(JComponent c)
uninstallUI
in class BasicFileChooserUI
c
public void valueChanged(ListSelectionEvent e)
e
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |