org.eclipse.ohf.stem.ui.wizards
Class InfectorDefinitionComposite

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.ohf.stem.ui.wizards.InfectorDefinitionComposite
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class InfectorDefinitionComposite
extends org.eclipse.swt.widgets.Composite

This class represents the SWT composite that provides the GUI for defining an Infector in the NewInfectorWizard.


Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
InfectorDefinitionComposite(org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.events.ModifyListener projectValidator)
           
 
Method Summary
 java.lang.String getDiseaseName()
           
 java.lang.String getErrorMessage()
           
 java.lang.String getIsoKey()
           
 java.lang.String getLocationName()
           
 double getNumberOfInfections()
           
 java.lang.String getPopulation()
           
 boolean validate()
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InfectorDefinitionComposite

public InfectorDefinitionComposite(org.eclipse.swt.widgets.Composite parent,
                                   int style,
                                   org.eclipse.swt.events.ModifyListener projectValidator)
Parameters:
parent -
style -
Method Detail

validate

public boolean validate()
Returns:
true if the contents of the control are valid, false otherwise.

getErrorMessage

public java.lang.String getErrorMessage()
Returns:
the error message set by validate()

getIsoKey

public final java.lang.String getIsoKey()
Returns:
the isoKey that specifies the location to be infected.

getLocationName

public final java.lang.String getLocationName()
Returns:
the NLS'd name of the location selected as the point of infection

getDiseaseName

public final java.lang.String getDiseaseName()
Returns:
the name of the disease

getPopulation

public final java.lang.String getPopulation()
Returns:
the name of the population being infected

getNumberOfInfections

public double getNumberOfInfections()
Returns:
the number of infections