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.3 $
See Also:
Data

Variable Index

 o data
 o dataComponent
 o dialog
 o fileDialog
 o filename
 o headPanel

Constructor Index

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

Method Index

 o dispose()
Disposes of this DisplayModuleDialog.
 o okButtonActionPerformed()
Ok button pressed, the window will be removed.
 o saveButtonActionPerformed()
Save button pressed, save the Data.
 o setVisible(boolean)
Draw the DisplayDialog.

Variables

 o dialog
 private Dialog dialog
 o dataComponent
 private Component dataComponent
 o headPanel
 private ScrollPane headPanel
 o data
 private Data data
 o fileDialog
 private FileDialog fileDialog
 o filename
 private String filename

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 okButtonActionPerformed
 private void okButtonActionPerformed()
Ok button pressed, the window will be removed.

 o saveButtonActionPerformed
 private void saveButtonActionPerformed()
Save button pressed, save the Data.

 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