public class WebFileChooserUI
extends javax.swing.plaf.FileChooserUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
WebFileChooserUI.WebFileView
Special FileView for file chooser.
|
| Constructor and Description |
|---|
WebFileChooserUI()
Constructs new WebFileChooserUI.
|
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebFileChooserUI for the specified component.
|
void |
ensureFileIsVisible(javax.swing.JFileChooser fc,
java.io.File f) |
javax.swing.filechooser.FileFilter |
getAcceptAllFileFilter(javax.swing.JFileChooser fc) |
com.alee.utils.filefilter.AbstractFileFilter |
getActiveFileFilter()
Returns currenly active file filter.
|
java.lang.String |
getApproveButtonText(javax.swing.JFileChooser fc) |
java.util.List<com.alee.utils.filefilter.AbstractFileFilter> |
getAvailableFilters()
Returns list of available file filters.
|
java.lang.String |
getDialogTitle(javax.swing.JFileChooser fc) |
WebFileChooserPanel |
getFileChooserPanel()
Returns file chooser panel.
|
FileChooserType |
getFileChooserType()
Returns JFileChooser type converted into FileChooserType form.
|
javax.swing.filechooser.FileView |
getFileView(javax.swing.JFileChooser fc) |
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component.
|
boolean |
isGenerateThumbnails()
Returns whether file thumbnails are generated or not.
|
protected void |
propertyChanged(java.beans.PropertyChangeEvent event)
Fired when some of JFileChooser properties changes.
|
void |
rescanCurrentDirectory(javax.swing.JFileChooser fc) |
void |
setApproveButtonLanguage(java.lang.String key)
Sets approve button language key.
|
void |
setApproveButtonText(FileApproveText approveText)
Sets approve button text type.
|
void |
setFileView(WebFileChooserUI.WebFileView fileView) |
void |
setGenerateThumbnails(boolean generate)
Sets whether file thumbnails should be generated or not.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.
|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIc - component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.ComponentUIc - component with this UIpublic WebFileChooserPanel getFileChooserPanel()
public java.util.List<com.alee.utils.filefilter.AbstractFileFilter> getAvailableFilters()
public com.alee.utils.filefilter.AbstractFileFilter getActiveFileFilter()
public boolean isGenerateThumbnails()
public void setGenerateThumbnails(boolean generate)
generate - whether file thumbnails should be generated or notpublic void setApproveButtonText(FileApproveText approveText)
approveText - approve button text typepublic void setApproveButtonLanguage(java.lang.String key)
key - approve button language keyprotected void propertyChanged(java.beans.PropertyChangeEvent event)
event - property change eventpublic javax.swing.filechooser.FileFilter getAcceptAllFileFilter(javax.swing.JFileChooser fc)
getAcceptAllFileFilter in class javax.swing.plaf.FileChooserUIpublic javax.swing.filechooser.FileView getFileView(javax.swing.JFileChooser fc)
getFileView in class javax.swing.plaf.FileChooserUIpublic void setFileView(WebFileChooserUI.WebFileView fileView)
fileView - public java.lang.String getApproveButtonText(javax.swing.JFileChooser fc)
getApproveButtonText in class javax.swing.plaf.FileChooserUIpublic java.lang.String getDialogTitle(javax.swing.JFileChooser fc)
getDialogTitle in class javax.swing.plaf.FileChooserUIpublic void rescanCurrentDirectory(javax.swing.JFileChooser fc)
rescanCurrentDirectory in class javax.swing.plaf.FileChooserUIpublic void ensureFileIsVisible(javax.swing.JFileChooser fc,
java.io.File f)
ensureFileIsVisible in class javax.swing.plaf.FileChooserUIpublic FileChooserType getFileChooserType()