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
-
bSkip
- Boolean telling whether to skip this HTML page or not.
-
c7
-
-
lineList
- The list box that contains all the lines of checking output we
generate.
-
clicked()
- Actually start the search, getting the URL from the
TextField, and setting off a recursive LinkFollower object.
-
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.
-
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.
c7
public static ch7_fig5 c7
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.
bSkip
public boolean bSkip
- Boolean telling whether to skip this HTML page or not. Set by the
skipbutton, and reset within the checking loop.
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
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
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