All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.YesNoQuitHTML

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

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

Version:
0.1
Author:
Patil

Variable Index

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

Constructor Index

 o YesNoQuitHTML(String)
Yes-No-Quit Dialog with the HTML-Text message.
 o YesNoQuitHTML(String, String, String, String)
Yes-No-Quit Dialog with the HTML-Text message.
 o YesNoQuitHTML(String, String, String, String, String)
Yes-No-Quit Dialog with the HTML-Text message.
 o YesNoQuitHTML(String, String, String, String, String, int, int, int, int)
Yes-No-Quit 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()
 o quitPressed()

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

 o QUIT_BUTTON
 public static String QUIT_BUTTON
Constant for the text of the middle button

Constructors

 o YesNoQuitHTML
 public YesNoQuitHTML(String message)
Yes-No-Quit Dialog with the HTML-Text message. The left button is labeled "OK" and the right button is labeled "Cancel" and the middle button is labeled "Quit">/B>.

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

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

Parameters:
message - The HTML-Text
ok - The text for the left button
cancel - The text for the right button
quit - The text for the middle button
title - The title for the InternalWindow
 o YesNoQuitHTML
 public YesNoQuitHTML(String message,
                      String ok,
                      String cancel,
                      String quit,
                      String title,
                      int x,
                      int y,
                      int w,
                      int h)
Yes-No-Quit Dialog with the HTML-Text message. The left button is labeled ok and the right button is labeled cancel and the middle nutton is labeled quit. 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
quit - The text for the middle 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 quitPressed
 public boolean quitPressed()
Returns:
true if the middle 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