BioLegato 0.7.5 Core API

org.biolegato.menu
Class ChoiceList

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

public class ChoiceList
extends ListWidget

A wrapper class used to abstract choice lists within command windows.

Author:
Graham Alvare, Brian Fristensky

Field Summary
protected  javax.swing.JList choice_list
          The list containing the data.
 
Fields inherited from class org.biolegato.menu.ListWidget
index, label, names, values
 
Constructor Summary
ChoiceList(java.lang.String label, java.lang.String[] names, java.lang.String[] values, int index)
          Creates a new instance of GDEComboBox (represents "choice_list" in GDE menu files).
 
Method Summary
 void close()
          Closes the open object
 void display(java.awt.Container dest)
          Displays the choice list
 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

choice_list

protected javax.swing.JList choice_list
The list containing the data.

Constructor Detail

ChoiceList

public ChoiceList(java.lang.String label,
                  java.lang.String[] names,
                  java.lang.String[] values,
                  int index)
Creates a new instance of GDEComboBox (represents "choice_list" in GDE menu files).

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

getValue

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

Returns:
the current value of the widget.

display

public void display(java.awt.Container dest)
Displays the choice list

Parameters:
dest - the destination to display the choice list widget

close

public void close()
Closes the open object


BioLegato 0.7.5 Core API

Copyright © 2008-2011 University of Manitoba.