All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.awt.frame.editor.MultiMainToolbar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----tea.awt.bar.Toolbar
                                   |
                                   +----tea.awt.frame.editor.MainToolbar
                                           |
                                           +----tea.awt.frame.editor.MultiMainToolbar

public class MultiMainToolbar
extends MainToolbar
implements ItemListener

This is a class used to build an implementation of Toolbar explicitely written for the MultiTextEditor Frame. It's derived from tea.awt.frame.editor.MainToolbar and adds all the necessary icons for the actionCommands raised by the MultiTextEditor.

Version:
1.0 beta - 21 June 1997
Author:
Leonardo Boselli
See Also:
MultiTextEditor

Constructor Index

 o MultiMainToolbar(ActionListener)
This constructor associates an ActionListener, defines the descriptive text and actionCommands of the icons and a LanguageLearner to extend the International Languages support.

Method Index

 o addSelectableItem(String)
Adds a selectable item.
 o changeSpokenLanguage(String)
Implements the LanguageSpeaker interface and listens to the changes of the spoken language.
 o itemStateChanged(ItemEvent)
Implements the ItemListener interface and changes the shown page when a method is selected in the list.
 o removeAllItems()
Removes all the selectable items.
 o selectSelectableItem(int)
Selects a selectable item.

Constructors

 o MultiMainToolbar
 public MultiMainToolbar(ActionListener al)
This constructor associates an ActionListener, defines the descriptive text and actionCommands of the icons and a LanguageLearner to extend the International Languages support.

Parameters:
al - the ActionListener.

Methods

 o removeAllItems
 public void removeAllItems()
Removes all the selectable items.

 o addSelectableItem
 public void addSelectableItem(String s)
Adds a selectable item.

Parameters:
s - the item String.
 o selectSelectableItem
 public void selectSelectableItem(int id)
Selects a selectable item.

Parameters:
s - the item String.
 o itemStateChanged
 public void itemStateChanged(ItemEvent ie)
Implements the ItemListener interface and changes the shown page when a method is selected in the list.

Parameters:
ie - the ItemEvent.
 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 MainToolbar

All Packages  Class Hierarchy  This Package  Previous  Next  Index