Class Node

java.lang.Object
org.cristalise.gui.tree.Node
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
DynamicTreeBuilder, NodeCollection, NodeContext, NodeItem

public abstract class Node extends Object implements Runnable
  • Field Details

  • Constructor Details

  • Method Details

    • createTreeNode

      protected void createTreeNode()
    • getDesktop

      public ItemTabManager getDesktop()
    • newNode

      public Node newNode(Path path)
    • makeExpandable

      public void makeExpandable()
      Inserts a tree builder as the first child of the node, so it can be opened in the tree
    • getTreeNode

      public DefaultMutableTreeNode getTreeNode()
    • setTreeNode

      public void setTreeNode(DefaultMutableTreeNode treeNode)
    • subscribeNode

      public void subscribeNode(NodeSubscriber target)
      Subscription for loading node children. Note this is separate from the itemproxy subscription as it included query of the naming service and eventually should not require access to the item at all for higher performance
    • loadMore

      public void loadMore()
    • unsubscribeNode

      public void unsubscribeNode(NodeSubscriber target)
    • add

      public void add(Node newNode)
    • remove

      public void remove(Path oldPath)
    • removeAllChildren

      public void removeAllChildren()
    • getChildNode

      public Node getChildNode(Path itsPath)
    • end

      public void end(boolean more)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • loadChildren

      public abstract void loadChildren()
    • refresh

      public void refresh()
    • getItemPath

      public ItemPath getItemPath()
    • getName

      public String getName()
    • getType

      public String getType()
    • getPath

      public Path getPath()
    • getTreeBuilder

      public DynamicTreeBuilder getTreeBuilder()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getIcon

      public Icon getIcon()
    • getIconName

      public String getIconName()
    • setIcon

      public void setIcon(String icon)
    • getPopupMenu

      public JPopupMenu getPopupMenu()
    • getToolTip

      public String getToolTip()
    • setToolTip

      public void setToolTip(String tip)