BioLegato 0.7.5 Core API

org.biolegato.menu
Class FileChooser

java.lang.Object
  extended by org.biolegato.menu.TextWidget
      extended by org.biolegato.menu.FileChooser
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, Widget

public class FileChooser
extends TextWidget
implements java.awt.event.ActionListener

A wrapper class used to abstract file selection within command windows.

Author:
Graham Alvare, Brian Fristensky

Field Summary
 
Fields inherited from class org.biolegato.menu.TextWidget
textfield
 
Constructor Summary
FileChooser(java.lang.String label, java.lang.String value)
          Creates a new instance of GDETempFile.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handle the choose file button
 void display(java.awt.Container dest)
          Displays the file chooser widget
 
Methods inherited from class org.biolegato.menu.TextWidget
close, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooser

public FileChooser(java.lang.String label,
                   java.lang.String value)
Creates a new instance of GDETempFile.

Parameters:
data - the data to create the temporary file variable with.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handle the choose file button

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ignored because there is only one widget calling this method.

display

public void display(java.awt.Container dest)
Displays the file chooser widget

Specified by:
display in interface Widget
Overrides:
display in class TextWidget
Parameters:
dest - the destination to display the file chooser widget

BioLegato 0.7.5 Core API

Copyright © 2008-2011 University of Manitoba.