Class chap7.ch7_fig5
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class chap7.ch7_fig5

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----chap7.ch7_fig5

public class ch7_fig5
extends Applet
A class that prompts the user for a URL, then goes through the, presumably HTML, content of that URL checking for links to other WWW content and making sure that the documents those links connect to actually exist and that all THEIR links are valid. This is recursive and potentially time-wasting.
See Also:
TextField, Button, Panel

Variable Index

 o bSkip
Boolean telling whether to skip this HTML page or not.
 o c7
 o lineList
The list box that contains all the lines of checking output we generate.

Method Index

 o clicked()
Actually start the search, getting the URL from the TextField, and setting off a recursive LinkFollower object.
 o handleEvent(Event)
Handle the start and skip buttons, starting a new search if the start button is pushed, and breaking out a scan every time the skip button is pressed.
 o init()
Set up a TextField for entering the URL to check, a button to start the check, and a button to interrupt an undesired check.

Variables

 o c7
  public static ch7_fig5 c7
 o lineList
  public List lineList
The list box that contains all the lines of checking output we generate. Lines here tell whether the link is good or not.
 o bSkip
  public boolean bSkip
Boolean telling whether to skip this HTML page or not. Set by the skipbutton, and reset within the checking loop.

Methods

 o init
  public void init()
Set up a TextField for entering the URL to check, a button to start the check, and a button to interrupt an undesired check.
Overrides:
init in class Applet
See Also:
Panel, Button, TextField
 o handleEvent
  public boolean handleEvent(Event e)
Handle the start and skip buttons, starting a new search if the start button is pushed, and breaking out a scan every time the skip button is pressed.
Overrides:
handleEvent in class Component
 o clicked
  public void clicked()
Actually start the search, getting the URL from the TextField, and setting off a recursive LinkFollower object.
See Also:
LinkFollower

All Packages  Class Hierarchy  This Package  Previous  Next  Index