public interface CustomDirectoryProvider
jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);. As
of implementation detail, isEnabled() must return true
in the process of creating the JFileChooser. This means that there should be an static setter method
setEnabled(boolean) and it must be set to true before the
jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); will be called.| Modifier and Type | Method and Description |
|---|---|
Icon |
getCustomDirectoryIcon()
Returns icon for custom directory.
|
boolean |
isEnabled()
Determines if custom directory provider is enabled.
|
boolean |
isValidCustomDirectory(File directory)
Determines if given directory represents valid custom directory.
|
boolean isEnabled()
boolean isValidCustomDirectory(File directory)
directory - input fileIcon getCustomDirectoryIcon()
Copyright © 2007–2016 Gephi Consortium. All rights reserved.