BioLegato 0.7.3 Core API

org.biolegato.core.pcdmenu.widgets
Class TextWidget

java.lang.Object
  extended by org.biolegato.core.pcdmenu.widgets.TextWidget
All Implemented Interfaces:
Widget
Direct Known Subclasses:
FileChooser

public class TextWidget
extends java.lang.Object
implements Widget

A wrapper class used to abstract text fields within command windows.

Author:
Graham Alvare, Brian Fristensky

Field Summary
protected  javax.swing.JTextField textfield
          The textfield for obtaining the data
 
Constructor Summary
TextWidget(java.lang.String label, java.lang.String value)
          Creates a new instance of TextWidget
 
Method Summary
 void close()
          Notifies the variable that the program has now completed successfully, and it can perform any closing operations
 java.awt.Component display()
          Displays the current object
 java.lang.Object getValue()
          Returns the value of the variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textfield

protected javax.swing.JTextField textfield
The textfield for obtaining the data

Constructor Detail

TextWidget

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

Parameters:
scope - the scope to parse for the productions
Method Detail

display

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

Specified by:
display in interface Widget

getValue

public java.lang.Object getValue()
Returns the value of the variable.

Specified by:
getValue in interface Widget
Returns:
the current value of the variable class.

close

public void close()
Description copied from interface: Widget
Notifies the variable that the program has now completed successfully, and it can perform any closing operations

Specified by:
close in interface Widget

BioLegato 0.7.3 Core API

Copyright © 2008-2010 University of Manitoba.