BioLegato 0.7.3 Core API

org.biolegato.core.pcdmenu.widgets
Class ListWidget

java.lang.Object
  extended by org.biolegato.core.pcdmenu.widgets.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  java.util.Map<java.lang.String,java.lang.String> choices
          The list of choices
protected  java.lang.String label
          The label to associate with the list widget
protected  java.lang.String value
          Stores the current value selected by the chooser.
 
Constructor Summary
ListWidget(java.lang.String label, java.util.Map<java.lang.String,java.lang.String> choices, java.lang.String value)
          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.core.pcdmenu.widgets.Widget
close, display, getValue
 

Field Detail

value

protected java.lang.String value
Stores the current value selected by the chooser.


label

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


choices

protected java.util.Map<java.lang.String,java.lang.String> choices
The list of choices

Constructor Detail

ListWidget

public ListWidget(java.lang.String label,
                  java.util.Map<java.lang.String,java.lang.String> choices,
                  java.lang.String value)
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.3 Core API

Copyright © 2008-2010 University of Manitoba.