Module xaos.ui
Interface TreeDirectoryModel.GraphicFactory
-
- All Superinterfaces:
TriFunction<Path,Boolean,Boolean,Node>
- All Known Implementing Classes:
TreeDirectoryModel.DefaultGraphicFactory
- Enclosing class:
- TreeDirectoryModel<I,T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface TreeDirectoryModel.GraphicFactory extends TriFunction<Path,Boolean,Boolean,Node>
Factory to create graphics forTreeItem
s in aDirectoryModel
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Node
apply(Path path, Boolean isDirectory, Boolean isExpanded)
Applies this function to the given arguments.Node
createGraphic(Path path, boolean isDirectory, boolean isExpanded)
-
Methods inherited from interface eu.ess.xaos.core.util.function.TriFunction
andThen
-
-
-
-
Method Detail
-
createGraphic
Node createGraphic(Path path, boolean isDirectory, boolean isExpanded)
- Parameters:
path
- ThePath
needing a graphical representation.isDirectory
- The returned graphics must represent a node.isExpanded
- IfisDirectory
istrue
, then this parameter tells if the directory must be represented as expanded or collapsed.- Returns:
- The graphical representation for the given
Path
.
-
apply
default Node apply(Path path, Boolean isDirectory, Boolean isExpanded)
Description copied from interface:TriFunction
Applies this function to the given arguments.
-
-