BioLegato 0.7.5 Core API

org.biolegato.menu
Class ListWidget

java.lang.Object
  extended by org.biolegato.menu.ListWidget
All Implemented Interfaces:
Widget
Direct Known Subclasses:
ChoiceList, Chooser, ComboBoxWidget

public abstract class ListWidget
extends java.lang.Object
implements Widget

A wrapper class used to abstract combo boxes within command windows.

Author:
Graham Alvare, Brian Fristensky

Field Summary
protected  int index
          Stores the current value selected by the chooser.
protected  java.lang.String label
          The label to associate with the list widget
protected  java.lang.String[] names
          The list of choice names
protected  java.lang.String[] values
          The list of choice values
 
Constructor Summary
ListWidget(java.lang.String label, java.lang.String[] names, java.lang.String[] values, int index)
          Creates a new instance of EZComboBox (represents "choice_list" in GDE menu files).
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.biolegato.menu.Widget
close, display, getValue
 

Field Detail

index

protected int index
Stores the current value selected by the chooser.


label

protected java.lang.String label
The label to associate with the list widget


names

protected java.lang.String[] names
The list of choice names


values

protected java.lang.String[] values
The list of choice values

Constructor Detail

ListWidget

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

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

BioLegato 0.7.5 Core API

Copyright © 2008-2011 University of Manitoba.