Module xaos.ui
Class TreeDirectoryModel.DefaultGraphicFactory
- java.lang.Object
-
- eu.ess.xaos.ui.control.tree.directory.TreeDirectoryModel.DefaultGraphicFactory
-
- All Implemented Interfaces:
TriFunction<Path,Boolean,Boolean,Node>
,TreeDirectoryModel.GraphicFactory
- Enclosing class:
- TreeDirectoryModel<I,T>
public static class TreeDirectoryModel.DefaultGraphicFactory extends Object implements TreeDirectoryModel.GraphicFactory
Default graphic factory returning a folder icon for a directory and a document icon for a regular file.
-
-
Constructor Summary
Constructors Constructor Description DefaultGraphicFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
createGraphic(Path path, boolean isDirectory, boolean isExpanded)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface eu.ess.xaos.ui.control.tree.directory.TreeDirectoryModel.GraphicFactory
apply
-
Methods inherited from interface eu.ess.xaos.core.util.function.TriFunction
andThen
-
-
-
-
Method Detail
-
createGraphic
public Node createGraphic(Path path, boolean isDirectory, boolean isExpanded)
Description copied from interface:TreeDirectoryModel.GraphicFactory
- Specified by:
createGraphic
in interfaceTreeDirectoryModel.GraphicFactory
- 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
.
-
-