public class JUploadFileView extends FileView implements PropertyChangeListener, ThreadFactory
| Modifier and Type | Field and Description |
|---|---|
static ImageIcon |
emptyIcon
An empty icon, having the good file size.
|
| Constructor and Description |
|---|
JUploadFileView(UploadPolicy uploadPolicy,
JFileChooser fileChooser)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription(File f)
#see javax.swing.filechooser.FileView#getDescription(File))
|
Icon |
getIcon(File file)
The fileChooserIconFromFileContent applet parameter defies which icon is
to be returned here.
|
String |
getName(File f)
|
String |
getTypeDescription(File f)
|
Boolean |
isTraversable(File f)
|
Thread |
newThread(Runnable runnable)
Implementation of ThreadFactory.
|
void |
propertyChange(PropertyChangeEvent e)
Waiting for JFileChooser events.
|
void |
shutdownNow()
Stop all current and to come thread.
|
public static ImageIcon emptyIcon
public JUploadFileView(UploadPolicy uploadPolicy, JFileChooser fileChooser)
uploadPolicy - The upload policy to apply.fileChooser - The desired file chooser to use.public void shutdownNow()
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenere - public String getDescription(File f)
getDescription in class FileViewpublic Icon getIcon(File file)
getIcon in class FileViewFileView.getIcon(java.io.File),
UploadPolicy.PROP_FILE_CHOOSER_ICON_FROM_FILE_CONTENTpublic String getTypeDescription(File f)
getTypeDescription in class FileViewpublic Boolean isTraversable(File f)
isTraversable in class FileViewpublic Thread newThread(Runnable runnable)
newThread in interface ThreadFactoryrunnable - The runnable instance to start.Copyright © 2015. All rights reserved.