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
-
ConfirmDialog(Frame, String)
- Constructs the components of the Dialog.
-
afterReply()
- Method to be performed after the action is delivered to ActioListeners.
-
changeSpokenLanguage(String)
- Implements the LanguageSpeaker interface and listens to the changes of
the spoken language.
-
getAnswer()
- This method returns the Answer corresponding to the user's action.
-
requestFocus()
- Overloads the requestFocus method to give the Focus to the Ok
button.
ConfirmDialog
public ConfirmDialog(Frame parent,
String title)
- Constructs the components of the Dialog.
- Parameters:
- parent - the Frame parent.
- title - the title.
afterReply
public void afterReply()
- Method to be performed after the action is delivered to ActioListeners.
- Overrides:
- afterReply in class BoxDialog
getAnswer
public String getAnswer()
- This method returns the Answer corresponding to the user's action.
- Returns:
- the answer.
requestFocus
public void requestFocus()
- Overloads the requestFocus method to give the Focus to the Ok
button.
- Overrides:
- requestFocus in class Component
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