org.jfree.ui

Class StandardDialog

Implemented Interfaces:
ActionListener
Known Direct Subclasses:
FontChooserDialog

public class StandardDialog
extends JDialog
implements ActionListener

The base class for standard dialogs.
Author:
David Gilbert

Field Summary

protected static ResourceBundle
localizationResources
The resourceBundle for the localization.

Constructor Summary

StandardDialog(Dialog owner, String title, boolean modal)
Standard constructor - builds a dialog...
StandardDialog(Frame owner, String title, boolean modal)
Standard constructor - builds a dialog...

Method Summary

void
actionPerformed(ActionEvent event)
Handles clicks on the standard buttons.
protected JPanel
createButtonPanel()
Builds and returns the user interface for the dialog.
boolean
isCancelled()
Returns a flag that indicates whether or not the dialog has been cancelled.

Field Details

localizationResources

protected static final ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Details

StandardDialog

public StandardDialog(Dialog owner,
                      String title,
                      boolean modal)
Standard constructor - builds a dialog...
Parameters:
owner - the owner.
title - the title.
modal - modal?

StandardDialog

public StandardDialog(Frame owner,
                      String title,
                      boolean modal)
Standard constructor - builds a dialog...
Parameters:
owner - the owner.
title - the title.
modal - modal?

Method Details

actionPerformed

public void actionPerformed(ActionEvent event)
Handles clicks on the standard buttons.
Parameters:
event - the event.

createButtonPanel

protected JPanel createButtonPanel()
Builds and returns the user interface for the dialog. This method is shared among the constructors.
Returns:
the button panel.

isCancelled

public boolean isCancelled()
Returns a flag that indicates whether or not the dialog has been cancelled.
Returns:
boolean.