All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.ButtonWindow

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

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

Version:
0.1
Author:
Christian Haag

Method Index

 o HTMLFromString(String)
Imports HTML-Text directly.
 o HTMLFromUrl(String)
Imports HTML-Text from an URL in the InternalWindow.
 o modally()
Shows the ButtonWindow and waits modally for user input.
 o mouseDown(MouseEvent)
 o performCommand(String, Object)
Implementation of the Target Interface.
 o pressedButton()
returns the button that the user pressed
 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 where the HTML-Text is.
 o modally
 public String modally()
Shows the ButtonWindow and waits modally for user input.

Returns:
the pressed button.
 o performCommand
 public void performCommand(String command,
                            Object data)
Implementation of the Target Interface. 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index