All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Webcrawler.Visualizer.URLNodePanel

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

public class URLNodePanel
extends JPanel
implements ActionListener
This Panel displays the information of an URLNode (such as URL, depth, info, ...). It is used by the NodeViewer as one of the tabs.

See Also:
NodeViewer, URLNode

Variable Index

 o addressInParentFileField
 o depthField
 o fatherButton
 o fatherIcon
 o infoTextField
 o myURLField
 o nodeStateField
 o theNode
 o thenodeviewer

Constructor Index

 o URLNodePanel(URLNode, NodeViewer)
Creates a new Panel for displaying a URLNode.

Method Index

 o actionPerformed(ActionEvent)
If the user pressed the father-button, a new NodeViewer will be opened.
 o refreshDisplay()
Sets all the fields in this panel so that they show the info of the node that this object was created with.

Variables

 o fatherIcon
 static ImageIcon fatherIcon
 o addressInParentFileField
 protected JTextField addressInParentFileField
 o myURLField
 protected JTextField myURLField
 o depthField
 protected JTextField depthField
 o nodeStateField
 protected JTextField nodeStateField
 o infoTextField
 protected JTextField infoTextField
 o fatherButton
 protected JButton fatherButton
 o theNode
 private URLNode theNode
 o thenodeviewer
 private NodeViewer thenodeviewer

Constructors

 o URLNodePanel
 public URLNodePanel(URLNode n,
                     NodeViewer v)
Creates a new Panel for displaying a URLNode. If the node n has a father, the panel will also contain a button that opens a new NodeViewer showing the fathers info. If not, that button is disabled.

Parameters:
n - the URLNode whose info shall be displayed

Methods

 o refreshDisplay
 protected void refreshDisplay()
Sets all the fields in this panel so that they show the info of the node that this object was created with.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
If the user pressed the father-button, a new NodeViewer will be opened.


All Packages  Class Hierarchy  This Package  Previous  Next  Index