BioLegato 0.7.5 Core API

org.biolegato.menu
Class ComboBoxWidget

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

public class ComboBoxWidget
extends ListWidget

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

Author:
Graham Alvare, Brian Fristensky

Field Summary
protected  javax.swing.JComboBox combobox
          The combobox contianing the data
 javax.swing.plaf.basic.BasicComboBoxUI comboboxUI
          The UI to enable scrolling of the JComboBox.
 
Fields inherited from class org.biolegato.menu.ListWidget
index, label, names, values
 
Constructor Summary
ComboBoxWidget(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
 void close()
          Notifies the variable that the program has now completed successfully, and it can perform any closing operations
 void display(java.awt.Container dest)
          Displays the combobox widget
 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

combobox

protected javax.swing.JComboBox combobox
The combobox contianing the data


comboboxUI

public final javax.swing.plaf.basic.BasicComboBoxUI comboboxUI
The UI to enable scrolling of the JComboBox.

Constructor Detail

ComboBoxWidget

public ComboBoxWidget(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.
Method Detail

display

public void display(java.awt.Container dest)
Displays the combobox widget

Parameters:
dest - the destination to display the combobox widget

getValue

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

Returns:
the value of the variable.

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


BioLegato 0.7.5 Core API

Copyright © 2008-2011 University of Manitoba.