- java.lang.Object
-
- javafx.scene.control.TreeItem<T>
-
- eu.ess.xaos.ui.control.tree.directory.TreeDirectoryItems.PathItem<T>
-
- eu.ess.xaos.ui.control.tree.directory.TreeDirectoryItems.FileItem<T>
-
- Type Parameters:
T
- Type of the object returned byTreeItem.getValue()
.
- All Implemented Interfaces:
EventTarget
- Enclosing class:
- TreeDirectoryItems
public static class TreeDirectoryItems.FileItem<T> extends TreeDirectoryItems.PathItem<T>
ATreeItem
representing a file.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javafx.scene.control.TreeItem
TreeItem.TreeModificationEvent<T extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileTime
getLastModified()
boolean
isDirectory()
boolean
updateModificationTime(FileTime lastModified)
Updates the modification time associated with the file path.-
Methods inherited from class eu.ess.xaos.ui.control.tree.directory.TreeDirectoryItems.PathItem
asDirectoryItem, asFileItem, getPath, getProjector, getRelativeChild, isLeaf, resolve
-
Methods inherited from class javafx.scene.control.TreeItem
addEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getChildren, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, toString, treeNotificationEvent, valueChangedEvent, valueProperty
-
-
-
-
Method Detail
-
getLastModified
public final FileTime getLastModified()
- Returns:
- The last modification time for the file associated with this item.
-
isDirectory
public final boolean isDirectory()
- Specified by:
isDirectory
in classTreeDirectoryItems.PathItem<T>
- Returns:
true
if this item represents a directory.
-
updateModificationTime
public boolean updateModificationTime(FileTime lastModified)
Updates the modification time associated with the file path.- Parameters:
lastModified
- The new modification time.- Returns:
true
if the given value is greater than the current one.
-
-