Class ChangeFrequency

java.lang.Object
  |
  +--ChangeFrequency

public class ChangeFrequency
extends java.lang.Object
implements java.awt.event.ActionListener

this class constructs the window which is popped-up when selecting "Save every..." from the Options sub-menu in the Settings menu


Field Summary
(package private)  javax.swing.JDialog dialog
          the window
(package private)  javax.swing.JButton dismiss
          button to close the window
(package private)  javax.swing.JFrame mainframe
          parent of this wndow
(package private)  javax.swing.JTextField no_turns
          the text field where the user can type the new value
(package private)  javax.swing.JButton ok
          button to perform the change
(package private)  UserInterface ui
          referrence to the user interface
 
Constructor Summary
(package private) ChangeFrequency(javax.swing.JFrame mainframe, UserInterface ui)
          builts a JDialog window with a textfield and the two buttons
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          adds controls to the buttons
 void HideDialog()
          dismiss the window
 void ShowDialog()
          makes visible the window
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

no_turns

javax.swing.JTextField no_turns
the text field where the user can type the new value

ok

javax.swing.JButton ok
button to perform the change

dismiss

javax.swing.JButton dismiss
button to close the window

mainframe

javax.swing.JFrame mainframe
parent of this wndow

dialog

javax.swing.JDialog dialog
the window

ui

UserInterface ui
referrence to the user interface
Constructor Detail

ChangeFrequency

ChangeFrequency(javax.swing.JFrame mainframe,
                UserInterface ui)
builts a JDialog window with a textfield and the two buttons
Method Detail

ShowDialog

public void ShowDialog()
makes visible the window

HideDialog

public void HideDialog()
dismiss the window

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
adds controls to the buttons
Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
UserInterface.getCurrentDocument(), Document.setFrequencytoSave(int)