org.lyra.Interface.Chart
Class SaveDialog.Interact

java.lang.Object
  extended by org.lyra.Interface.Chart.SaveDialog.Interact
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.util.EventListener
Enclosing class:
SaveDialog

private class SaveDialog.Interact
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.WindowListener

A class dedicated to the action handling for the org.lyra.Host.Create' class. Since there is no real code re-use beyond the implementation it was placed as a sub-class for code segregation.

Author:
Martin Foster

Field Summary
private  javax.swing.JDialog Caller
           
 
Constructor Summary
SaveDialog.Interact(javax.swing.JDialog caller)
          Base constructor which provides the calling Class ability to grant access to its windowing capability.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
private  java.lang.String getSelected(javax.swing.ButtonGroup group)
          Will look at a specific ButtonGroup and determine exactly which one is selected.
 void windowActivated(java.awt.event.WindowEvent evt)
           
 void windowClosed(java.awt.event.WindowEvent evt)
           
 void windowClosing(java.awt.event.WindowEvent evt)
           
 void windowDeactivated(java.awt.event.WindowEvent evt)
           
 void windowDeiconified(java.awt.event.WindowEvent evt)
           
 void windowIconified(java.awt.event.WindowEvent evt)
           
 void windowOpened(java.awt.event.WindowEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Caller

private javax.swing.JDialog Caller
Constructor Detail

SaveDialog.Interact

public SaveDialog.Interact(javax.swing.JDialog caller)
Base constructor which provides the calling Class ability to grant access to its windowing capability. Such as window size.

Parameters:
caller - JDialog instance.
Method Detail

getSelected

private java.lang.String getSelected(javax.swing.ButtonGroup group)
Will look at a specific ButtonGroup and determine exactly which one is selected.

Parameters:
group - ButtonGroup instance to compare.
Returns:
String containing selected item's name.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent evt)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent evt)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent evt)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent evt)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent evt)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent evt)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent evt)
Specified by:
windowOpened in interface java.awt.event.WindowListener