|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileView wjhk.jupload2.gui.JUploadFileView
public class JUploadFileView
This class provides the icon view for the file selector.
Field Summary | |
---|---|
static ImageIcon |
emptyIcon
An empty icon, having the good file size. |
(package private) ExecutorService |
executorService
This executor will crate icons from files, one at a time. |
(package private) JFileChooser |
fileChooser
The current file chooser. |
(package private) ConcurrentHashMap<String,IconWorker> |
hashMap
This map will contain all instances of IconWorker . |
(package private) ThreadGroup |
iconWorkerThreadGroup
This thread group is used to contain all icon worker threads. |
(package private) UploadPolicy |
uploadPolicy
The current upload policy. |
Constructor Summary | |
---|---|
JUploadFileView(UploadPolicy uploadPolicy,
JFileChooser fileChooser)
Creates a new instance. |
Method Summary | |
---|---|
(package private) void |
execute(IconWorker iconWorker)
|
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)
#see FileView.getName(File) |
String |
getTypeDescription(File f)
#see FileView.getTypeDescription(File) |
Boolean |
isTraversable(File f)
#see FileView.isTraversable(File) |
Thread |
newThread(Runnable runnable)
Implementation of ThreadFactory. |
void |
propertyChange(PropertyChangeEvent e)
Waiting for JFileChooser events. |
void |
shutdownNow()
Stop all current and to come thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
ThreadGroup iconWorkerThreadGroup
JUploadFileView(UploadPolicy, JFileChooser)
constructor.
UploadPolicy uploadPolicy
JFileChooser fileChooser
ConcurrentHashMap<String,IconWorker> hashMap
IconWorker
.
ExecutorService executorService
execute(IconWorker)
public static ImageIcon emptyIcon
Constructor Detail |
---|
public JUploadFileView(UploadPolicy uploadPolicy, JFileChooser fileChooser)
uploadPolicy
- The upload policy to apply.fileChooser
- The desired file chooser to use.Method Detail |
---|
void execute(IconWorker iconWorker)
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 getName(File f)
FileView.getName(File)
getName
in class FileView
public String getTypeDescription(File f)
FileView.getTypeDescription(File)
getTypeDescription
in class FileView
public Boolean isTraversable(File f)
FileView.isTraversable(File)
isTraversable
in class FileView
public Thread newThread(Runnable runnable)
newThread
in interface ThreadFactory
runnable
- The runnable instance to start.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |