trassare.com

com.trassare.calculator.ui
Class SaveListener

java.lang.Object
  extended by com.trassare.calculator.ui.SaveListener
All Implemented Interfaces:
ActionListener, EventListener

public class SaveListener
extends Object
implements ActionListener

Handles the saving of the session results.

Version:
17 November 2005
Author:
Samuel Trassare

Constructor Summary
SaveListener(LCDPanel inDisplay, JFrame inFrame, Properties inAppProps)
          Default constructor.
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Save the file.
 void doExitSave()
          Perform the save operation if necessary.
 void doSave()
          Perform the saving action.
static boolean isLastResult()
           
static void setLastResult(boolean inLastResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveListener

public SaveListener(LCDPanel inDisplay,
                    JFrame inFrame,
                    Properties inAppProps)
Default constructor.

Parameters:
inDisplay - the LCDPanel from which to pull results.
inFrame - the application's frame.
inAppProps - the application properties
Method Detail

isLastResult

public static boolean isLastResult()
Returns:
Returns the lastResult.

setLastResult

public static void setLastResult(boolean inLastResult)
Parameters:
inLastResult - The last result to set.

actionPerformed

public final void actionPerformed(ActionEvent evt)
Save the file.

Specified by:
actionPerformed in interface ActionListener
Parameters:
evt - the save event

doSave

public final void doSave()
Perform the saving action.


doExitSave

public final void doExitSave()
Perform the save operation if necessary.


trassare.com