|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI
org.openbp.swing.plaf.sky.SkyFileChooserUI
public class SkyFileChooserUI
This is the SkyFileChooserUI which is based on the Metal L&F FileChooser
| Nested Class Summary | |
|---|---|
protected class |
SkyFileChooserUI.DirectoryComboBoxAction
Acts when DirectoryComboBox has changed the selected item. |
protected class |
SkyFileChooserUI.DirectoryComboBoxModel
Data model for a type-face selection combo-box. |
protected class |
SkyFileChooserUI.FileRenderer
|
protected class |
SkyFileChooserUI.FilterComboBoxModel
Data model for a type-face selection combo-box. |
class |
SkyFileChooserUI.FilterComboBoxRenderer
Render different type sizes and styles. |
protected class |
SkyFileChooserUI.SingleClickListener
|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicFileChooserUI |
|---|
javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter, javax.swing.plaf.basic.BasicFileChooserUI.ApproveSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView, javax.swing.plaf.basic.BasicFileChooserUI.CancelSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.ChangeToParentDirectoryAction, javax.swing.plaf.basic.BasicFileChooserUI.DoubleClickListener, javax.swing.plaf.basic.BasicFileChooserUI.GoHomeAction, javax.swing.plaf.basic.BasicFileChooserUI.NewFolderAction, javax.swing.plaf.basic.BasicFileChooserUI.SelectionListener, javax.swing.plaf.basic.BasicFileChooserUI.UpdateAction |
| Field Summary |
|---|
| Fields inherited from class javax.swing.plaf.basic.BasicFileChooserUI |
|---|
cancelButtonMnemonic, cancelButtonText, cancelButtonToolTipText, computerIcon, detailsViewIcon, directoryIcon, directoryOpenButtonMnemonic, directoryOpenButtonText, directoryOpenButtonToolTipText, fileIcon, floppyDriveIcon, hardDriveIcon, helpButtonMnemonic, helpButtonText, helpButtonToolTipText, homeFolderIcon, listViewIcon, newFolderIcon, openButtonMnemonic, openButtonText, openButtonToolTipText, saveButtonMnemonic, saveButtonText, saveButtonToolTipText, updateButtonMnemonic, updateButtonText, updateButtonToolTipText, upFolderIcon |
| Constructor Summary | |
|---|---|
SkyFileChooserUI(javax.swing.JFileChooser filechooser)
Creates a new SkyFileChooserUI. |
|
| Method Summary | |
|---|---|
protected void |
addControlButtons()
|
protected void |
applyEdit()
|
protected javax.swing.JPanel |
createDetailsView(javax.swing.JFileChooser fc)
Creates the details view of a file chooser. |
protected SkyFileChooserUI.DirectoryComboBoxModel |
createDirectoryComboBoxModel(javax.swing.JFileChooser fc)
|
protected org.openbp.swing.plaf.sky.SkyFileChooserUI.DirectoryComboBoxRenderer |
createDirectoryComboBoxRenderer(javax.swing.JFileChooser fc)
|
protected SkyFileChooserUI.FilterComboBoxModel |
createFilterComboBoxModel()
|
protected SkyFileChooserUI.FilterComboBoxRenderer |
createFilterComboBoxRenderer()
|
protected javax.swing.JPanel |
createList(javax.swing.JFileChooser fc)
Creates the list view of the file chooser. |
javax.swing.event.ListSelectionListener |
createListSelectionListener(javax.swing.JFileChooser fc)
Creates a selection listener for the list of files and directories. |
protected javax.swing.ActionMap |
createMyActionMap()
|
java.beans.PropertyChangeListener |
createPropertyChangeListener(javax.swing.JFileChooser fc)
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
void |
ensureFileIsVisible(javax.swing.JFileChooser fc,
java.io.File f)
|
protected javax.swing.JButton |
getApproveButton(javax.swing.JFileChooser fc)
|
protected javax.swing.JPanel |
getBottomPanel()
|
protected javax.swing.JPanel |
getButtonPanel()
|
java.lang.String |
getDirectoryName()
|
java.lang.String |
getFileName()
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Returns the maximum size of the JFileChooser. |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Returns the minimum size of the JFileChooser. |
protected javax.swing.ActionMap |
getMyActionMap()
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Returns the preferred size of the specified JFileChooser. |
void |
installComponents(javax.swing.JFileChooser fc)
|
protected void |
installListeners(javax.swing.JFileChooser fc)
|
protected void |
installStrings(javax.swing.JFileChooser fc)
|
void |
installUI(javax.swing.JComponent c)
|
protected void |
removeControlButtons()
|
void |
rescanCurrentDirectory(javax.swing.JFileChooser fc)
|
void |
setDirectoryName(java.lang.String dirname)
|
protected void |
setDirectorySelected(boolean directorySelected)
Property to remember whether a directory is currently selected in the UI. |
void |
setFileName(java.lang.String filename)
|
void |
uninstallComponents(javax.swing.JFileChooser fc)
|
void |
uninstallUI(javax.swing.JComponent c)
|
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
|
| Methods inherited from class javax.swing.plaf.basic.BasicFileChooserUI |
|---|
clearIconCache, createDoubleClickListener, createModel, getAcceptAllFileFilter, getAccessoryPanel, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getFileChooser, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installIcons, isDirectorySelected, setDirectory, uninstallDefaults, uninstallIcons, uninstallListeners, uninstallStrings |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkyFileChooserUI(javax.swing.JFileChooser filechooser)
BasicFileChooserUI.BasicFileChooserUI(JFileChooser)| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicFileChooserUIpublic void uninstallComponents(javax.swing.JFileChooser fc)
uninstallComponents in class javax.swing.plaf.basic.BasicFileChooserUIpublic void installComponents(javax.swing.JFileChooser fc)
installComponents in class javax.swing.plaf.basic.BasicFileChooserUIprotected javax.swing.JPanel getButtonPanel()
protected javax.swing.JPanel getBottomPanel()
protected void installStrings(javax.swing.JFileChooser fc)
installStrings in class javax.swing.plaf.basic.BasicFileChooserUIprotected void installListeners(javax.swing.JFileChooser fc)
installListeners in class javax.swing.plaf.basic.BasicFileChooserUIprotected javax.swing.ActionMap getMyActionMap()
protected javax.swing.ActionMap createMyActionMap()
protected javax.swing.JPanel createList(javax.swing.JFileChooser fc)
fc - the filechooser
protected javax.swing.JPanel createDetailsView(javax.swing.JFileChooser fc)
fc - the file chooser
public javax.swing.event.ListSelectionListener createListSelectionListener(javax.swing.JFileChooser fc)
createListSelectionListener in class javax.swing.plaf.basic.BasicFileChooserUIfc - a JFileChooser
ListSelectionListenerprotected void applyEdit()
public void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicFileChooserUIpublic java.awt.Dimension getPreferredSize(javax.swing.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 javax.swing.plaf.ComponentUIc - a JFileChooser
Dimension specifying the preferred
width and height of the file chooserpublic java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
JFileChooser.
getMinimumSize in class javax.swing.plaf.ComponentUIc - a JFileChooser
Dimension specifying the minimum
width and height of the file chooserpublic java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
JFileChooser.
getMaximumSize in class javax.swing.plaf.ComponentUIc - a JFileChooser
Dimension specifying the maximum
width and height of the file chooserpublic java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JFileChooser fc)
createPropertyChangeListener in class javax.swing.plaf.basic.BasicFileChooserUIprotected void removeControlButtons()
protected void addControlButtons()
public void ensureFileIsVisible(javax.swing.JFileChooser fc,
java.io.File f)
ensureFileIsVisible in class javax.swing.plaf.basic.BasicFileChooserUIpublic void rescanCurrentDirectory(javax.swing.JFileChooser fc)
rescanCurrentDirectory in class javax.swing.plaf.basic.BasicFileChooserUIpublic java.lang.String getFileName()
getFileName in class javax.swing.plaf.basic.BasicFileChooserUIpublic void setFileName(java.lang.String filename)
setFileName in class javax.swing.plaf.basic.BasicFileChooserUIprotected void setDirectorySelected(boolean directorySelected)
setDirectorySelected in class javax.swing.plaf.basic.BasicFileChooserUIdirectorySelected - if a directory is currently selectedpublic java.lang.String getDirectoryName()
getDirectoryName in class javax.swing.plaf.basic.BasicFileChooserUIpublic void setDirectoryName(java.lang.String dirname)
setDirectoryName in class javax.swing.plaf.basic.BasicFileChooserUIprotected org.openbp.swing.plaf.sky.SkyFileChooserUI.DirectoryComboBoxRenderer createDirectoryComboBoxRenderer(javax.swing.JFileChooser fc)
protected SkyFileChooserUI.DirectoryComboBoxModel createDirectoryComboBoxModel(javax.swing.JFileChooser fc)
protected SkyFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()
protected SkyFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
protected javax.swing.JButton getApproveButton(javax.swing.JFileChooser fc)
getApproveButton in class javax.swing.plaf.basic.BasicFileChooserUI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||