package net.christophermerrill.FancyFxTree;

import javafx.scene.*;
import javafx.scene.control.*;

import java.util.*;

/**
 * The tree-facing API of the tree data model. Allows for a complex data structure that is not
 * constrained by the expectations of the TreeView or TreeItem.
 *
 * @author Christopher L Merrill (see LICENSE.txt for license details)
 */
public interface FancyTreeNodeFacade<T>
    {
    /**
     * Due to a design flaw in the TreeView, the only way to force an update to a specific tree node is
     * to replace it. The FancyTreeNodeFacade allows this to happen without changing the underlying
     * datamodel. This method is necessary to accomplish that. Implementers should make a copy of this
     * object, including registering/deregistering any listeners on the underlying data model.
     */
    FancyTreeNodeFacade<T> copyAndDestroy();

    /**
     * This node facade will no longer be used. Implementers should deregister listeners and should
     * no longer make calls to the item facade.
     */
    void destroy();

    List<FancyTreeNodeFacade<T>> getChildren();
    String getLabelText();
    T getModelNode();

    /**
     * Return an icon for the tree item or null if none.
     */
    Node getIcon();

    void setTreeItemFacade(FancyTreeItemFacade item_facade);
    }


@@ -64,39 +64,8 @@
 e.*;
-%0Aimport javafx.scene.control.*;
 %0A%0Aim
@@ -1063,24 +1063,52 @@
 Children();%0A
+    Node getCustomCellUI();%0A
     String g

add support for custom tree cell rendering