org.annotation.wordfreak
Interface GuiListener

All Known Implementing Classes:
Gui

public interface GuiListener

Interface between the main WordFreak gui and components containwd within it. Using this interface, dynamicaly loaded components can update system menus.


Method Summary
 void addViewer(java.lang.String name, java.awt.Component viewer)
          Adds the specified viewer to the GUI with the specified name.
 void removeViewer(java.lang.String name, java.awt.Component viewer)
          Removes the specified viewer with the specified name from the GUI.
 void renameProject(java.lang.String name)
          Renames the current project to the specified name.
 

Method Detail

addViewer

public void addViewer(java.lang.String name,
                      java.awt.Component viewer)
Adds the specified viewer to the GUI with the specified name.

Parameters:
name - The name of the viewer to be added.
viewer - The viewer or multi-viewer to be added to the GUI.

removeViewer

public void removeViewer(java.lang.String name,
                         java.awt.Component viewer)
Removes the specified viewer with the specified name from the GUI.

Parameters:
name - The name of the viewer being removed.
viewer - The viewer being removed.

renameProject

public void renameProject(java.lang.String name)
Renames the current project to the specified name. This is used when saving the current project to a different name.

Parameters:
name - The new name of the project.


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.