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
-
data
-
-
dataComponent
-
-
dialog
-
-
fileDialog
-
-
filename
-
-
headPanel
-
-
DisplayModuleDialog(Frame, String, Component, Data, String)
- Creates the Dialog.
-
dispose()
- Disposes of this DisplayModuleDialog.
-
okButtonActionPerformed()
- Ok button pressed, the window will be removed.
-
saveButtonActionPerformed()
- Save button pressed, save the Data.
-
setVisible(boolean)
- Draw the DisplayDialog.
dialog
private Dialog dialog
dataComponent
private Component dataComponent
headPanel
private ScrollPane headPanel
data
private Data data
fileDialog
private FileDialog fileDialog
filename
private String filename
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.
okButtonActionPerformed
private void okButtonActionPerformed()
- Ok button pressed, the window will be removed.
saveButtonActionPerformed
private void saveButtonActionPerformed()
- Save button pressed, save the Data.
setVisible
public void setVisible(boolean b)
- Draw the DisplayDialog.
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