|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.FileChooserUI com.alee.laf.filechooser.WebFileChooserUI
public class WebFileChooserUI
Custom UI for JFileChooser component.
Nested Class Summary | |
---|---|
protected class |
WebFileChooserUI.WebFileView
Special FileView for file chooser. |
Constructor Summary | |
---|---|
WebFileChooserUI()
Constructs new WebFileChooserUI. |
Method Summary | |
---|---|
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)
|
AbstractFileFilter |
getActiveFileFilter()
Returns currenly active file filter. |
java.lang.String |
getApproveButtonText(javax.swing.JFileChooser fc)
|
java.util.List<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. |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebFileChooserUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
c
- component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
c
- component with this UIpublic WebFileChooserPanel getFileChooserPanel()
public java.util.List<AbstractFileFilter> getAvailableFilters()
public 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.FileChooserUI
public javax.swing.filechooser.FileView getFileView(javax.swing.JFileChooser fc)
getFileView
in class javax.swing.plaf.FileChooserUI
public void setFileView(WebFileChooserUI.WebFileView fileView)
fileView
- public java.lang.String getApproveButtonText(javax.swing.JFileChooser fc)
getApproveButtonText
in class javax.swing.plaf.FileChooserUI
public java.lang.String getDialogTitle(javax.swing.JFileChooser fc)
getDialogTitle
in class javax.swing.plaf.FileChooserUI
public void rescanCurrentDirectory(javax.swing.JFileChooser fc)
rescanCurrentDirectory
in class javax.swing.plaf.FileChooserUI
public void ensureFileIsVisible(javax.swing.JFileChooser fc, java.io.File f)
ensureFileIsVisible
in class javax.swing.plaf.FileChooserUI
public FileChooserType getFileChooserType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |