All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.awt.dialog.ConfirmDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----tea.awt.dialog.BoxDialog
                                           |
                                           +----tea.awt.dialog.ConfirmDialog

public class ConfirmDialog
extends BoxDialog

This is a Dialog that waits for a confirm action of the user. It can send Yes, No and Cancel messages.

Version:
1.0 beta - 31 May 1997
Author:
Leonardo Boselli

Constructor Index

 o ConfirmDialog(Frame, String)
Constructs the components of the Dialog.

Method Index

 o afterReply()
Method to be performed after the action is delivered to ActioListeners.
 o changeSpokenLanguage(String)
Implements the LanguageSpeaker interface and listens to the changes of the spoken language.
 o getAnswer()
This method returns the Answer corresponding to the user's action.
 o requestFocus()
Overloads the requestFocus method to give the Focus to the Ok button.

Constructors

 o ConfirmDialog
 public ConfirmDialog(Frame parent,
                      String title)
Constructs the components of the Dialog.

Parameters:
parent - the Frame parent.
title - the title.

Methods

 o afterReply
 public void afterReply()
Method to be performed after the action is delivered to ActioListeners.

Overrides:
afterReply in class BoxDialog
 o getAnswer
 public String getAnswer()
This method returns the Answer corresponding to the user's action.

Returns:
the answer.
 o requestFocus
 public void requestFocus()
Overloads the requestFocus method to give the Focus to the Ok button.

Overrides:
requestFocus in class Component
 o changeSpokenLanguage
 public boolean changeSpokenLanguage(String l)
Implements the LanguageSpeaker interface and listens to the changes of the spoken language.

Parameters:
l - the spoken language.
Returns:
if the language is supported or not.
Overrides:
changeSpokenLanguage in class BoxDialog

All Packages  Class Hierarchy  This Package  Previous  Next  Index