All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.awt.dialog.SearchDialog

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

public abstract class SearchDialog
extends BoxDialog

This Dialog is an abstract base Dialog used by FindDialog and ReplaceDialog. It contains the common elements of the two Dialogs.

Version:
1.0 beta - 31 May 1997
Author:
Leonardo Boselli
See Also:
FindDialog, ReplaceDialog

Variable Index

 o border
 o cancelBtn
 o okBtn
 o textField
 o textLbl

Constructor Index

 o SearchDialog(Frame, String, String, String)
The most significative parameter in this constructor is the defStr: the default String that appears in the Find String field.

Method Index

 o changeSpokenLanguage(String)
Implements a method of the LanguageSpeaker interface and listens to the changes of the spoken language.
 o getFindString()
Returns the user's String to be found.

Variables

 o textField
 protected TextField textField
 o border
 protected int border
 o textLbl
 protected Label textLbl
 o okBtn
 protected Button okBtn
 o cancelBtn
 protected Button cancelBtn

Constructors

 o SearchDialog
 protected SearchDialog(Frame parent,
                        String title,
                        String name,
                        String defStr)
The most significative parameter in this constructor is the defStr: the default String that appears in the Find String field.

Parameters:
parent - the Frame parent.
title - the Dialog title.
name - the name of the Dialog (used by the persistent properties support).
defStr - the default String.

Methods

 o getFindString
 public String getFindString()
Returns the user's String to be found.

Returns:
the Find String.
 o changeSpokenLanguage
 public boolean changeSpokenLanguage(String l)
Implements a method of 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