BioLegato 0.7.3 Core API

org.biolegato.core.pcdmenu.widgets
Class FileChooser

java.lang.Object
  extended by org.biolegato.core.pcdmenu.widgets.TextWidget
      extended by org.biolegato.core.pcdmenu.widgets.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.core.pcdmenu.widgets.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
 java.awt.Component display()
          Displays the current object
 
Methods inherited from class org.biolegato.core.pcdmenu.widgets.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 java.awt.Component display()
Description copied from interface: Widget
Displays the current object

Specified by:
display in interface Widget
Overrides:
display in class TextWidget

BioLegato 0.7.3 Core API

Copyright © 2008-2010 University of Manitoba.