edu.harvard.mgh.purcell.gPLINK2
Class OpenHapDialog.myActionListener

java.lang.Object
  extended by edu.harvard.mgh.purcell.gPLINK2.OpenHapDialog.myActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
OpenHapDialog

private class OpenHapDialog.myActionListener
extends java.lang.Object
implements java.awt.event.ActionListener

Create a generic ActionListener for a browse button that launches a local file browse.

Author:
Kathe Todd-Brown

Field Summary
private  GCFileChooser chooser
          A GCFileChooser that selects the file
private  java.lang.String disc
          A String that is a discription of the suffex's
private  java.lang.String[] suffix
          A String array that holds the suffix of the files we are looking for
private  javax.swing.JTextField text
          A JTextField that holds the file name and is the target of the GCFileChooser
 
Constructor Summary
OpenHapDialog.myActionListener(javax.swing.JTextField myText, java.lang.String[] mySuffix, java.lang.String myDisc)
          Create myActionListener.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Create and show the file chooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chooser

private GCFileChooser chooser
A GCFileChooser that selects the file


text

private javax.swing.JTextField text
A JTextField that holds the file name and is the target of the GCFileChooser


suffix

private java.lang.String[] suffix
A String array that holds the suffix of the files we are looking for


disc

private java.lang.String disc
A String that is a discription of the suffex's

Constructor Detail

OpenHapDialog.myActionListener

public OpenHapDialog.myActionListener(javax.swing.JTextField myText,
                                      java.lang.String[] mySuffix,
                                      java.lang.String myDisc)
Create myActionListener.

Parameters:
myText - A JTextField the field where the the file name will appear.
mySuffix - A String array that is the prefered suffex for this file chooser.
myDisc - A String that discribes the prefered suffex.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Create and show the file chooser.

Specified by:
actionPerformed in interface java.awt.event.ActionListener