story.dbcore.gui
Class DefaultTreeView

java.lang.Object
  extended by story.dbcore.gui.DefaultTreeView
All Implemented Interfaces:
TreeView

public class DefaultTreeView
extends java.lang.Object
implements TreeView

A TreeView that just takes the ID of the node and does not use bins.


Constructor Summary
DefaultTreeView()
           
 
Method Summary
 boolean hierarchicalTree(TreeType type)
          Should the tree for a certain type organize its nodes hierarchically, putting SUBTYPEOF and INSTANCEOF nodes inside their respective parents, or list all nodes without hierarchy?
 java.lang.String[] nodeBin(TreeType type, NodeAddress node)
          How should nodes be sorted in the tree?
 java.lang.String nodeText(TreeType type, NodeAddress node)
          Given a node, what should the text of the node be in the Forest tree?
 boolean triggersReload(NodeType type, AttributeID ID)
          If the argued attribute is changed to a new value, should the Forest reload its tree models?
 boolean useBins(TreeType type)
          Should nodeBin() be used or should all the nodes just be listed without bins?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTreeView

public DefaultTreeView()
Method Detail

nodeText

public java.lang.String nodeText(TreeType type,
                                 NodeAddress node)
Description copied from interface: TreeView
Given a node, what should the text of the node be in the Forest tree?

Specified by:
nodeText in interface TreeView

nodeBin

public java.lang.String[] nodeBin(TreeType type,
                                  NodeAddress node)
Description copied from interface: TreeView
How should nodes be sorted in the tree?

Specified by:
nodeBin in interface TreeView

useBins

public boolean useBins(TreeType type)
Description copied from interface: TreeView
Should nodeBin() be used or should all the nodes just be listed without bins?

Specified by:
useBins in interface TreeView

triggersReload

public boolean triggersReload(NodeType type,
                              AttributeID ID)
Description copied from interface: TreeView
If the argued attribute is changed to a new value, should the Forest reload its tree models?

Specified by:
triggersReload in interface TreeView

hierarchicalTree

public boolean hierarchicalTree(TreeType type)
Description copied from interface: TreeView
Should the tree for a certain type organize its nodes hierarchically, putting SUBTYPEOF and INSTANCEOF nodes inside their respective parents, or list all nodes without hierarchy?

Specified by:
hierarchicalTree in interface TreeView


Copyright © 2011 David K. Elson. All Rights Reserved.