All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Webcrawler.Visualizer.HTMLNodePanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----Webcrawler.Visualizer.HTMLNodePanel

public class HTMLNodePanel
extends JPanel
implements ActionListener
This panel displays all the info of an HTMLNode that was added when HTMLNode was derived from LoadableNode (e.g: title, links, ...) The sons of the specified HTMLNode are listed in ListBox and can be selected and examined in a new NodeViewer.


Variable Index

 o bordp
 o linkButton
 o linksList
 o sonIcon
 o theNode
 o thenodeviewer
 o titleField
 o viewLocalButton

Constructor Index

 o HTMLNodePanel(HTMLNode, NodeViewer)
Creates a new panel for displaying the info of n If the node n contains links to other HTMLNodes, the user can select one and view it in a new NodeViewer window.

Method Index

 o actionPerformed(ActionEvent)
When the user pressed the ViewLink button, a new NodeViwer for the selected link will be opened.
 o refreshDisplay()
Sets all the fields in this panel to the values stored in the node that this object was created with.

Variables

 o sonIcon
 static ImageIcon sonIcon
 o titleField
 protected JTextField titleField
 o viewLocalButton
 protected JButton viewLocalButton
 o bordp
 protected JPanel bordp
 o linksList
 protected JList linksList
 o linkButton
 protected JButton linkButton
 o theNode
 private HTMLNode theNode
 o thenodeviewer
 private NodeViewer thenodeviewer

Constructors

 o HTMLNodePanel
 public HTMLNodePanel(HTMLNode n,
                      NodeViewer v)
Creates a new panel for displaying the info of n If the node n contains links to other HTMLNodes, the user can select one and view it in a new NodeViewer window.

Methods

 o refreshDisplay
 protected void refreshDisplay()
Sets all the fields in this panel to the values stored in the node that this object was created with.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
When the user pressed the ViewLink button, a new NodeViwer for the selected link will be opened.


All Packages  Class Hierarchy  This Package  Previous  Next  Index