story.flashback.gui
Class ReferencesTreeView

java.lang.Object
  extended by story.flashback.gui.ReferencesTreeView
All Implemented Interfaces:
TreeView

public class ReferencesTreeView
extends java.lang.Object
implements TreeView

A TreeView for the References tree that displays the Title for the name of the node and sorts nodes into bins by Author (reformatted from the BibTex format).


Constructor Summary
ReferencesTreeView(DBCAccessor dbca, java.lang.String selectedReferencesSort)
           
 
Method Summary
static java.lang.String[][] availableSorts()
          Return an n by 2 String matrix where for each of the n available sorts of the References tree, result[i][0] is the name of the sort and result[i][1] is a textual description
 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)
          Put a Reference node in as many bins as authors, one for each author.
 java.lang.String nodeText(TreeType type, NodeAddress node)
          Given a node, what should the text of the node be in the Forest tree?
 void setSort(java.lang.String selectedReferencesSort)
           
 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

ReferencesTreeView

public ReferencesTreeView(DBCAccessor dbca,
                          java.lang.String selectedReferencesSort)
                   throws Scheherexception
Throws:
Scheherexception
Method Detail

setSort

public void setSort(java.lang.String selectedReferencesSort)
             throws Scheherexception
Throws:
Scheherexception

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)
Put a Reference node in as many bins as authors, one for each author.

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

availableSorts

public static java.lang.String[][] availableSorts()
Return an n by 2 String matrix where for each of the n available sorts of the References tree, result[i][0] is the name of the sort and result[i][1] is a textual description


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.