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
-
HTMLFromString(String)
- Imports HTML-Text directly.
-
HTMLFromUrl(String)
- Imports HTML-Text from an URL in the InternalWindow.
-
modally_hyperlink(String)
- Shows the HyperLinkWindow and waits modally for user input for
hyperlinks or button events.
-
mouseDown(MouseEvent)
-
-
performCommand(String, Object)
- Implementation of the Target Interface.It should process hyperlinks or button.
-
pressedButton()
- returns the button that the user pressed
-
ReadHTMLFile(String, String)
- Reads a HTML file and returns a string
-
setBackgroundColor(Color)
- Sets the background color of the ButtonWindow
HTMLFromString
public void HTMLFromString(String str)
- Imports HTML-Text directly.
- Parameters:
- str - - The HTML-Text.
HTMLFromUrl
public void HTMLFromUrl(String url)
- Imports HTML-Text from an URL in the InternalWindow.
- Parameters:
- url - - The URL and its Abs. Address
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
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
pressedButton
public String pressedButton()
- returns the button that the user pressed
- Returns:
- - The pressed button
setBackgroundColor
public void setBackgroundColor(Color c)
- Sets the background color of the ButtonWindow
- Parameters:
- c - - The color
mouseDown
public boolean mouseDown(MouseEvent e)
- Overrides:
- mouseDown in class InternalWindow
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