All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.HyperLinkWindow

java.lang.Object
   |
   +----netscape.application.View
           |
           +----netscape.application.InternalWindow
                   |
                   +----semper.tinguin2.HyperLinkWindow

public class HyperLinkWindow
extends InternalWindow
implements Target
Creates an InternalWindow which can hold HTML-Text and a variable number (>=0) of Hyperlinks. The HTML-Text is imported via HTMLFromString.

Version:
0.1
Author:
Patil

Method Index

 o HTMLFromString(String)
Imports HTML-Text directly.
 o HTMLFromUrl(String)
Imports HTML-Text from an URL in the InternalWindow.
 o modally_hyperlink(String)
Shows the HyperLinkWindow and waits modally for user input for hyperlinks or button events.
 o mouseDown(MouseEvent)
 o performCommand(String, Object)
Implementation of the Target Interface.It should process hyperlinks or button.
 o pressedButton()
returns the button that the user pressed
 o ReadHTMLFile(String, String)
Reads a HTML file and returns a string
 o setBackgroundColor(Color)
Sets the background color of the ButtonWindow

Methods

 o HTMLFromString
 public void HTMLFromString(String str)
Imports HTML-Text directly.

Parameters:
str - - The HTML-Text.
 o HTMLFromUrl
 public void HTMLFromUrl(String url)
Imports HTML-Text from an URL in the InternalWindow.

Parameters:
url - - The URL and its Abs. Address
 o modally_hyperlink
 public synchronized Hashtable modally_hyperlink(String url_path)
Shows the HyperLinkWindow and waits modally for user input for hyperlinks or button events. Returns - the Hastable consisting of "hyperlink" and its "url". If the hashtable is null, then error. The error may be IOException, HTML Parsing, or Invalid Address etc

 o performCommand
 public void performCommand(String command,
                            Object data)
Implementation of the Target Interface.It should process hyperlinks or button. You should never call this method.

Overrides:
performCommand in class InternalWindow
 o pressedButton
 public String pressedButton()
returns the button that the user pressed

Returns:
- The pressed button
 o setBackgroundColor
 public void setBackgroundColor(Color c)
Sets the background color of the ButtonWindow

Parameters:
c - - The color
 o mouseDown
 public boolean mouseDown(MouseEvent e)
Overrides:
mouseDown in class InternalWindow
 o ReadHTMLFile
 public String ReadHTMLFile(String f,
                            String path)
Reads a HTML file and returns a string

Parameters:
f - = Filename and returns its equalvent String

All Packages  Class Hierarchy  This Package  Previous  Next  Index