story.dbcore.gui
Class DetailBox

java.lang.Object
  extended by story.dbcore.gui.DetailBox
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener

public class DetailBox
extends java.lang.Object
implements java.awt.event.ComponentListener

Creates a box for details about a particular node including name, attribute, and links.


Constructor Summary
DetailBox(DBCoreInterface dbci, CoreBrowser parentBrowser)
           
DetailBox(DBCoreInterface dbci, CoreBrowser parentBrowser, NodeAddress node)
           
 
Method Summary
 void clear()
          Set the DetailBox back to its state of not pointing to any node.
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
 java.util.Comparator getAttributeSorter()
           
 javax.swing.JComponent getBox()
          Get the JComponent containing the content of the DetailBox, including the node name, attributes, and links
 NodeAddress nodeInFocus()
          Returns the NodeAddress of the node that the DetailBox is currently examining, or null of no such node
 void setAttributeSorter(java.util.Comparator attributeSorter)
           
 void setToNode(NodeAddress node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailBox

public DetailBox(DBCoreInterface dbci,
                 CoreBrowser parentBrowser)
          throws Scheherexception
Throws:
Scheherexception

DetailBox

public DetailBox(DBCoreInterface dbci,
                 CoreBrowser parentBrowser,
                 NodeAddress node)
          throws Scheherexception
Throws:
Scheherexception
Method Detail

setAttributeSorter

public void setAttributeSorter(java.util.Comparator attributeSorter)

getAttributeSorter

public java.util.Comparator getAttributeSorter()

getBox

public javax.swing.JComponent getBox()
Get the JComponent containing the content of the DetailBox, including the node name, attributes, and links


clear

public void clear()
           throws Scheherexception
Set the DetailBox back to its state of not pointing to any node.

Throws:
Scheherexception

setToNode

public void setToNode(NodeAddress node)
               throws Scheherexception
Throws:
Scheherexception

nodeInFocus

public NodeAddress nodeInFocus()
Returns the NodeAddress of the node that the DetailBox is currently examining, or null of no such node


componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener


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