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
-
HTMLFromString(String)
- Imports HTML-Text directly.
-
HTMLFromUrl(String)
- Imports HTML-Text from an URL in the InternalWindow.
-
modally()
- Shows the ButtonWindow and waits modally for user input.
-
mouseDown(MouseEvent)
-
-
performCommand(String, Object)
- Implementation of the Target Interface.
-
pressedButton()
- returns the button that the user pressed
-
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 where the HTML-Text is.
modally
public String modally()
- Shows the ButtonWindow and waits modally for user input.
- Returns:
- the pressed button.
performCommand
public void performCommand(String command,
Object data)
- Implementation of the Target Interface. 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
All Packages Class Hierarchy This Package Previous Next Index