Class Node

Summary

#
  This class represents a node in a {Tree} object.

Package:
(main)
File:
_node.icn
Methods:
add, expand, generate_all_postorder, generate_all_preorder, generate_open_postorder, generate_open_preorder, node_delete, node_delete2, set_always_expandable, set_bmps, set_label, toggle_opened

Fields:
always_expandable, bmps, depth, draw_line, is_open, label, subnodes

Source code.

Details
Constructor

Node(argv)

Methods:

add(n)

#
  Add the given {Node} to this {Node}'s list of subnodes.
  @param  The {Node} to add.


expand()

#
  Expand all the {Nodes} below this node.


generate_all_postorder()

#
  Generate all the {Nodes} in this subtree, including this {Node},
  in postorder ordering.


generate_all_preorder()

#
  Generate all the {Nodes} in this subtree, including this {Node},
  in preorder ordering.


generate_open_postorder()

#
  Generate all open {Nodes} in this subtree, including this {Node},
  in postorder ordering.


generate_open_preorder()

#
  Generate all the open {Nodes} in this subtree, including this {Node},
  in preorder ordering.


node_delete(n)

#
  Delete the given {Node} from the subnodes.


node_delete2(x, n)


set_always_expandable()

#
  This configures the {Node} so that it is always treated as though it has subnodes
  for display purposes, event though it may in fact have no subnodes.


set_bmps(x)

#
  Set the bitmaps for this node.  The parameter should provide a list of 3
  bitmaps.  The first is displayed if the {Node} is open and has subnodes, the
  second is displayed if the {Node} is closed and has subnodes, and the third is
  displayed if the node has no subnodes.
  @param x  A list of 3 bitmaps.


set_label(x)

#
  Set the label for this node.


toggle_opened()

#
  Toggle the opened status of the {Node}.


Fields:
always_expandable

bmps

depth

draw_line

is_open

label

subnodes


This page produced by UniDoc on 2021/04/15 @ 23:59:53.