All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.YesNoHTML

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

public class YesNoHTML
extends ButtonWindow
implements DragDestination
Creates a Yes-No Dialog within an InternalWindow. This dialog has a textfield for HTML-Text and 2 buttons.

Version:
0.1
Author:
Christian Haag

Variable Index

 o CANCEL_BUTTON
Constant for the text of the right button
 o OK_BUTTON
Constant for the text of the left button

Constructor Index

 o YesNoHTML(String)
Yes-No Dialog with the HTML-Text message.
 o YesNoHTML(String, String, String)
Yes-No Dialog with the HTML-Text message.
 o YesNoHTML(String, String, String, String)
Yes-No Dialog with the HTML-Text message.
 o YesNoHTML(String, String, String, String, int, int, int, int)
Yes-No Dialog with the HTML-Text message.

Method Index

 o acceptsDrag(DragSession, int, int)
You should never call this method.
 o dragDropped(DragSession)
Implementation of the DragDestination interface.
 o dragEntered(DragSession)
Implementation of the DragDestination interface.
 o dragExited(DragSession)
Implementation of the DragDestination interface.
 o dragMoved(DragSession)
Implementation of the DragDestination interface.
 o okPressed()

Variables

 o OK_BUTTON
 public static String OK_BUTTON
Constant for the text of the left button

 o CANCEL_BUTTON
 public static String CANCEL_BUTTON
Constant for the text of the right button

Constructors

 o YesNoHTML
 public YesNoHTML(String message)
Yes-No Dialog with the HTML-Text message. The left button is labeled "OK" and the right button is labeled "Cancel".

Parameters:
message - The HTML-Text
 o YesNoHTML
 public YesNoHTML(String message,
                  String ok,
                  String cancel)
Yes-No Dialog with the HTML-Text message. The left button is labeled ok and the right button is labeled cancel.

Parameters:
message - The HTML-Text
ok - The text for the left button
cancel - The text for the right button
 o YesNoHTML
 public YesNoHTML(String message,
                  String ok,
                  String cancel,
                  String title)
Yes-No Dialog with the HTML-Text message. The left button is labeled ok and the right button is labeled cancel.

Parameters:
message - The HTML-Text
ok - The text for the left button
cancel - The text for the right button
title - The title for the InternalWindow
 o YesNoHTML
 public YesNoHTML(String message,
                  String ok,
                  String cancel,
                  String title,
                  int x,
                  int y,
                  int w,
                  int h)
Yes-No Dialog with the HTML-Text message. The left button is labeled ok and the right button is labeled cancel. The window is shown at the position x,y with width w and height h.

Parameters:
message - The HTML-Text
ok - The text for the left button
cancel - The text for the right button
title - The title for the InternalWindow
x - The X-Position of the InternalWindow
y - The Y-Position of the InternalWindow
w - The width of the InternalWindow
h - The height of the InternalWindow

Methods

 o okPressed
 public boolean okPressed()
Returns:
true if the left button was pressed
 o acceptsDrag
 public DragDestination acceptsDrag(DragSession dragSession,
                                    int x,
                                    int y)
You should never call this method.

Overrides:
acceptsDrag in class View
 o dragDropped
 public boolean dragDropped(DragSession dragSession)
Implementation of the DragDestination interface. You should never call this method.

 o dragEntered
 public boolean dragEntered(DragSession dragSession)
Implementation of the DragDestination interface. You should never call this method.

 o dragExited
 public void dragExited(DragSession dragSession)
Implementation of the DragDestination interface. You should never call this method.

 o dragMoved
 public boolean dragMoved(DragSession dragSession)
Implementation of the DragDestination interface. You should never call this method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index