BioLegato 0.7.5 Core API

org.biolegato.menu
Class TempFile

java.lang.Object
  extended by org.biolegato.menu.TempFile
All Implemented Interfaces:
Widget

public class TempFile
extends java.lang.Object
implements Widget

Stores information about the file fields used by the command

Author:
Graham Alvare, Brian Fristensky

Constructor Summary
TempFile(boolean input, boolean output, boolean save, boolean overwrite, java.lang.String format)
          Creates a new instance of EZComboBox (represents "choice_list" in GDE menu files).
 
Method Summary
 void close()
          Releases any files currently in use by this class
 void display(java.awt.Container dest)
          Displays the current widget
 java.lang.Object getValue()
          Gets the current filename corresponding to this variable If the file does not exists, then this function creates a file to use for IO and writes any initial contents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempFile

public TempFile(boolean input,
                boolean output,
                boolean save,
                boolean overwrite,
                java.lang.String format)
Creates a new instance of EZComboBox (represents "choice_list" in GDE menu files).

Parameters:
data - the data to create the combobox with.
Method Detail

getValue

public java.lang.Object getValue()
Gets the current filename corresponding to this variable If the file does not exists, then this function creates a file to use for IO and writes any initial contents

Specified by:
getValue in interface Widget
Returns:
the filename to use for command line substitution.

close

public void close()
Releases any files currently in use by this class

Specified by:
close in interface Widget

display

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

Specified by:
display in interface Widget
Parameters:
dest - the destination to display the widget

BioLegato 0.7.5 Core API

Copyright © 2008-2011 University of Manitoba.