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 PropertyChangeListener
e
- public String getDescription(File f)
getDescription
in class FileView
public Icon getIcon(File file)
getIcon
in class FileView
FileView.getIcon(java.io.File)
,
UploadPolicy.PROP_FILE_CHOOSER_ICON_FROM_FILE_CONTENT
public String getTypeDescription(File f)
getTypeDescription
in class FileView
public Boolean isTraversable(File f)
isTraversable
in class FileView
public Thread newThread(Runnable runnable)
newThread
in interface ThreadFactory
runnable
- The runnable instance to start.Copyright © 2015. All rights reserved.