Package com.io7m.jwheatsheaf.ui.internal
Class JWFileSourceEntryFilesystemRoot
java.lang.Object
com.io7m.jwheatsheaf.ui.internal.JWFileSourceEntryFilesystemRoot
- All Implemented Interfaces:
JWFileListingRetrieverType
,JWFileSourceEntryType
A source entry representing a filesystem root.
-
Constructor Summary
ConstructorsConstructorDescriptionJWFileSourceEntryFilesystemRoot
(boolean inWithParent, Path inRoot) Construct a source entry. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onListCell
(JWFileImageSetType images, JWStrings strings, javafx.scene.control.ListCell<JWFileSourceEntryType> cell) Configure the given list cell to show this item.path()
-
Constructor Details
-
JWFileSourceEntryFilesystemRoot
Construct a source entry.- Parameters:
inRoot
- The root directoryinWithParent
-true
if a parent directory should be shown
-
-
Method Details
-
onListCell
public void onListCell(JWFileImageSetType images, JWStrings strings, javafx.scene.control.ListCell<JWFileSourceEntryType> cell) Description copied from interface:JWFileSourceEntryType
Configure the given list cell to show this item.- Specified by:
onListCell
in interfaceJWFileSourceEntryType
- Parameters:
images
- The image resolverstrings
- The string resourcescell
- The list cell
-
path
- Specified by:
path
in interfaceJWFileSourceEntryType
- Returns:
- The path associated with this source entry, if any
-
onFileItemsRequested
- Specified by:
onFileItemsRequested
in interfaceJWFileListingRetrieverType
- Returns:
- The file items
- Throws:
Exception
- On errors
-