|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectactionListeners.DefaultDisplaySettingsDialogActionListener
public class DefaultDisplaySettingsDialogActionListener
ActionListener for the Ok button of a ChartDisplaySettingsPanel that was instantiated
using the constructor form ChartDisplaySettingsPanel.ChartDisplaySettingsPanel(Main, DisplaySettingsDialog).
When a ChartDisplaySettingsPanel is instantiated without a ChartFrame object as the last argument, the settings
made in the panel are applied to the default settings in the UserPreferences.
In order to do this correctly when the Ok button is pressed, the button must use this dedicated ActionListener.
ChartSpecificDisplaySettingsDialogActionListener| Field Summary | |
|---|---|
private DisplaySettingsDialog |
dialog
The dialog. |
private Main |
mainWindow
The main window. |
(package private) static boolean |
printLog
Flag to enable debug message printing for this class. |
| Constructor Summary | |
|---|---|
DefaultDisplaySettingsDialogActionListener(Main mainWindow,
DisplaySettingsDialog dialog)
Instantiates a new default display settings dialog action listener. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
private void |
log(java.lang.String message)
Prints debug information to stdout when printLog is set to true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final boolean printLog
private DisplaySettingsDialog dialog
private Main mainWindow
| Constructor Detail |
|---|
public DefaultDisplaySettingsDialogActionListener(Main mainWindow,
DisplaySettingsDialog dialog)
mainWindow - the main windowdialog - the dialog| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerprivate void log(java.lang.String message)
message - the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||