BioLegato 0.7.3 Core API

org.biolegato.core.pcdmenu
Class TempFile

java.lang.Object
  extended by org.biolegato.core.pcdmenu.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
 java.awt.Component display()
          Displays the current object
static java.lang.String getType()
          Returns the type name
 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

getType

public static java.lang.String getType()
Returns the type name

Returns:
"tempfile"

display

public java.awt.Component display()
Description copied from interface: Widget
Displays the current object

Specified by:
display in interface Widget

BioLegato 0.7.3 Core API

Copyright © 2008-2010 University of Manitoba.