|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileView
unbbayes.gui.FileIcon
public class FileIcon
Essa classe extende o FileView que é o responsável por
mostrar os ícones correspondentes para cada tipo de aquivo e pasta.
FileView| Nested Class Summary | |
|---|---|
class |
FileIcon.Icon16
Classe que extende ImageIcon responsavel por desenhar
um icone. |
| Field Summary | |
|---|---|
protected IconController |
iconController
|
| Constructor Summary | |
|---|---|
FileIcon(Component c)
Constroi um observer para desenhar ícones e um JFileChooser para pegar ícones ( Icon) padrões. |
|
| Method Summary | |
|---|---|
String |
getDescription(File f)
Retorna a descricao do arquivo desejado. |
Icon |
getIcon(File f)
Retorna o icone ( Icon) correnspondente ao arquivo desejado. |
String |
getName(File f)
Retorna o name do arquivo desejado. |
String |
getTypeDescription(File f)
Retorna o tipo do arquivo. |
boolean |
isTranversable(File f)
Retorna se e tranversable ou nao. |
| Methods inherited from class javax.swing.filechooser.FileView |
|---|
isTraversable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IconController iconController
| Constructor Detail |
|---|
public FileIcon(Component c)
Icon) padrões.
c - o componente (Component) que sera o observer para desenhar icones.Component,
Icon| Method Detail |
|---|
public String getDescription(File f)
getDescription in class FileViewf - o arquivo (File) ao qual se deseja a descricao
String)File,
Stringpublic Icon getIcon(File f)
Icon) correnspondente ao arquivo desejado.
getIcon in class FileViewf - o arquivo (File) que se deseja pegar o icone
Icon,
Filepublic String getName(File f)
getName in class FileViewf - o arquivo (File) que se deseja receber o name
String)String,
Filepublic String getTypeDescription(File f)
getTypeDescription in class FileViewf - o arquivo (File) que se deseja descricao do tipo
String)String,
Filepublic boolean isTranversable(File f)
f - o arquivo (File) que se deseja saber se e tranversable
File
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||