|
||||||||||
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. |
(package private) static boolean |
printLog
Flag to enable debug message printing for this class. |
Constructor Summary | |
---|---|
DefaultDisplaySettingsDialogActionListener(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
Constructor Detail |
---|
public DefaultDisplaySettingsDialogActionListener(DisplaySettingsDialog dialog)
dialog
- the DisplaySettingsDialogMethod Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
private 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 |