BioLegato 0.7.3 Core API

org.biolegato.core.pcdmenu
Class CommandButton

java.lang.Object
  extended by org.biolegato.core.pcdmenu.CommandButton
All Implemented Interfaces:
Widget

public class CommandButton
extends java.lang.Object
implements Widget

Creates a JButton, which when clicked runs internal API functions or external commands

Author:
Graham Alvare, Brian Fristensky

Constructor Summary
CommandButton(java.lang.String label, java.lang.String command, boolean close)
          Creates a new instance of CommandButton
 
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
 

Constructor Detail

CommandButton

public CommandButton(java.lang.String label,
                     java.lang.String command,
                     boolean close)
Creates a new instance of CommandButton

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()
Description copied from interface: Widget
Returns the value of the variable.

Specified by:
getValue in interface Widget
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

Specified by:
close in interface Widget

BioLegato 0.7.3 Core API

Copyright © 2008-2010 University of Manitoba.