All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ch.swisslife.ibgm.mc2.WarnDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----ch.swisslife.ibgm.mc2.WarnDialog

public class WarnDialog
extends Dialog
implements ActionListener, WindowListener
Info or error dialog with OK button. Caution: should be called using main(title, message).


Variable Index

 o button
 o label

Constructor Index

 o WarnDialog(Frame, String, String)
Constructor with title and message and a frame.

Method Index

 o actionPerformed(ActionEvent)
Closes window if button is pressed.
 o main(String[])
Main method with title and message as argument.
 o windowActivated(WindowEvent)
 o windowClosed(WindowEvent)
 o windowClosing(WindowEvent)
Closes window if button is pressed.
 o windowDeactivated(WindowEvent)
 o windowDeiconified(WindowEvent)
 o windowIconified(WindowEvent)
 o windowOpened(WindowEvent)

Variables

 o button
 protected Button button
 o label
 protected MultiLineLabel label

Constructors

 o WarnDialog
 public WarnDialog(Frame parent,
                   String title,
                   String message)
Constructor with title and message and a frame.

Parameters:
title - String containing the Title of the dialog
message - String with the message of the dialog

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent event)
Closes window if button is pressed.

Parameters:
event - Event received by the button
 o windowClosing
 public void windowClosing(WindowEvent e)
Closes window if button is pressed.

Parameters:
event - Event received by the button
 o windowOpened
 public void windowOpened(WindowEvent e)
 o windowClosed
 public void windowClosed(WindowEvent e)
 o windowIconified
 public void windowIconified(WindowEvent e)
 o windowDeiconified
 public void windowDeiconified(WindowEvent e)
 o windowActivated
 public void windowActivated(WindowEvent e)
 o windowDeactivated
 public void windowDeactivated(WindowEvent e)
 o main
 public static void main(String argv[])
Main method with title and message as argument. Class should be used with a call to main().


All Packages  Class Hierarchy  This Package  Previous  Next  Index