All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class framework.awt.DisplayModuleDialog

java.lang.Object
   |
   +----framework.awt.DisplayModuleDialog

public class DisplayModuleDialog
extends Object
A Dialog for displaying Data-specific Components. If a Data class wants to display its Data, it creates a Component that knows how to display the Data. The Component can be added to an instance of this class. This class creates a simple Dialog with a scrolling Panel, an Ok Button and a Save Button on the right bottom of the Dialog. The Component that will actually display the Data must be supplied to the constructor of this class by a Data class.

Version:
$Revision: 1.4 $
See Also:
Data

Constructor Index

 o DisplayModuleDialog(Frame, String, Component, Data, String)
Creates the Dialog.

Method Index

 o dispose()
Disposes of this DisplayModuleDialog.
 o setVisible(boolean)
Draw the DisplayDialog.

Constructors

 o DisplayModuleDialog
 public DisplayModuleDialog(Frame frame,
                            String title,
                            Component dataComponent,
                            Data data,
                            String filename)
Creates the Dialog.

Parameters:
frame - the Frame used to create the Dialog with.
title - the title for the Dialog.
dataComponent - the Component that will actually display the Data.
data - the Data that is displayed by the dataComponent.
filename - a default value used when the user of the Framework wants to save the Data. This filename is presented to the user as a default value when he or she is asked for the real name.

Methods

 o setVisible
 public void setVisible(boolean b)
Draw the DisplayDialog.

 o dispose
 public void dispose()
Disposes of this DisplayModuleDialog. This method must be called to release the resources that are used for this DisplayModuleDialog.


All Packages  Class Hierarchy  This Package  Previous  Next  Index