Package com.io7m.jwheatsheaf.ui
Class JWFileSourceEntryRecentItems
- java.lang.Object
-
- com.io7m.jwheatsheaf.ui.JWFileSourceEntryRecentItems
-
- All Implemented Interfaces:
JWFileListingRetrieverType,JWFileSourceEntryType
public final class JWFileSourceEntryRecentItems extends java.lang.Object implements JWFileSourceEntryType
A source entry representing a list of recent items.
-
-
Constructor Summary
Constructors Constructor Description JWFileSourceEntryRecentItems(JWFileChooserConfiguration inConfiguration)Construct a source entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<JWFileItem>onFileItemsRequested()voidonListCell(JWFileImageSetType images, JWStrings strings, javafx.scene.control.ListCell<JWFileSourceEntryType> cell)Configure the given list cell to show this item.java.util.Optional<java.nio.file.Path>path()
-
-
-
Constructor Detail
-
JWFileSourceEntryRecentItems
public JWFileSourceEntryRecentItems(JWFileChooserConfiguration inConfiguration)
Construct a source entry.- Parameters:
inConfiguration- The file chooser configuration
-
-
Method Detail
-
onListCell
public void onListCell(JWFileImageSetType images, JWStrings strings, javafx.scene.control.ListCell<JWFileSourceEntryType> cell)
Description copied from interface:JWFileSourceEntryTypeConfigure the given list cell to show this item.- Specified by:
onListCellin interfaceJWFileSourceEntryType- Parameters:
images- The image resolverstrings- The string resourcescell- The list cell
-
path
public java.util.Optional<java.nio.file.Path> path()
- Specified by:
pathin interfaceJWFileSourceEntryType- Returns:
- The path associated with this source entry, if any
-
onFileItemsRequested
public java.util.List<JWFileItem> onFileItemsRequested()
- Specified by:
onFileItemsRequestedin interfaceJWFileListingRetrieverType- Returns:
- The file items
-
-