All Packages Class Hierarchy This Package Previous Next Index
Class tea.awt.dialog.BoxDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----tea.awt.dialog.BoxDialog
- public abstract class BoxDialog
- extends Dialog
- implements ActionListener, LanguageSpeaker
This is an abstract class that performs some common tasks of Dialogs.
It defines support for international languages, persistent properties and
action delivering events.
- Version:
- 1.0 beta - 31 May 1997
- Author:
- Leonardo Boselli
- See Also:
- PropertiesOwner, LanguageSpeaker
-
keyAdapter
- An Adapter that listens to KeyEvents and takes the right action.
-
name
- the name od the dialog.
-
propertiesOwner
-
-
BoxDialog(Frame, String, String, boolean)
- Construcs the Box.
-
actionPerformed(ActionEvent)
- Implements the ActionListener interface and sends commands to the
ActionListeners.
-
addActionListener(ActionListener)
- Adds an ActionListener to 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.
-
close()
- Closes the dialog.
-
getActionCommand()
- Gets the actionCommand of the Dialog.
-
getLanguageLearner()
- Returns a LanguageLearner for the Dialog (it's used to learn other
languages).
-
getPropLocation()
- Gets the stored location of the Dialog (Properties support).
-
getSpokenLanguages()
- Gets the languages spoken by the Dialog.
-
removeActionListener(ActionListener)
- Removes an ActionListener from the Dialog.
-
reply()
- This method is called by actionPerformed() when the contents of
the dialog are accepted by the user and sent to the ActionListeners.
-
setActionCommand(String)
- Sets the actionCommand of the Dialog.
-
setPropLocation(Point)
- Sets the location of the Dialog in the persistent properties.
-
setVisible(boolean)
- Overloads the setVisible() method to perform some common tasks
of dialogs (e.g.
propertiesOwner
protected PropertiesOwner propertiesOwner
name
protected String name
- the name od the dialog. Used to store persistent properties.
keyAdapter
protected KeyAdapter keyAdapter
- An Adapter that listens to KeyEvents and takes the right action.
BoxDialog
public BoxDialog(Frame parent,
String title,
String name,
boolean modal)
- Construcs the Box.
- Parameters:
- parent - the Frame parent.
- title - the title.
- name - the name.
- modal - the modal dialog flag.
setVisible
public void setVisible(boolean v)
- Overloads the setVisible() method to perform some common tasks
of dialogs (e.g. persistent properties storing).
- Parameters:
- v - show or hide?
- Overrides:
- setVisible in class Component
close
protected void close()
- Closes the dialog.
addActionListener
public synchronized void addActionListener(ActionListener l)
- Adds an ActionListener to the Dialog.
- Parameters:
- l - the ActionListener.
removeActionListener
public synchronized void removeActionListener(ActionListener l)
- Removes an ActionListener from the Dialog.
- Parameters:
- l - the ActionListener.
getActionCommand
public String getActionCommand()
- Gets the actionCommand of the Dialog.
- Returns:
- the action command.
setActionCommand
public void setActionCommand(String ac)
- Sets the actionCommand of the Dialog.
- Parameters:
- ac - the action command.
actionPerformed
public void actionPerformed(ActionEvent ae)
- Implements the ActionListener interface and sends commands to the
ActionListeners.
- Parameters:
- ae - the ActionEvent.
reply
public void reply()
- This method is called by actionPerformed() when the contents of
the dialog are accepted by the user and sent to the ActionListeners.
ActionListeners.
afterReply
public void afterReply()
- Method to be performed after the action is delivered to ActioListeners.
getPropLocation
protected Point getPropLocation()
- Gets the stored location of the Dialog (Properties support).
- Returns:
- the location.
setPropLocation
protected void setPropLocation(Point loc)
- Sets the location of the Dialog in the persistent properties.
- Parameters:
- loc - the location.
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.
getSpokenLanguages
public Enumeration getSpokenLanguages()
- Gets the languages spoken by the Dialog.
- Returns:
- languages spoken.
getLanguageLearner
public LanguageLearner getLanguageLearner()
- Returns a LanguageLearner for the Dialog (it's used to learn other
languages).
- Returns:
- the LanguageLearner.
All Packages Class Hierarchy This Package Previous Next Index