Spirograph Problem Set Javadocs

spirograph
Class TextAreaCodeSource

java.lang.Object
  extended byspirograph.TextAreaCodeSource
All Implemented Interfaces:
CodeSource

public class TextAreaCodeSource
extends java.lang.Object
implements CodeSource

A code source that takes student code directly from a pair of TextAreas.

Author:
Patrick G. Heck

Constructor Summary
TextAreaCodeSource(java.awt.TextArea cta, java.awt.TextArea fta)
          Creates a new instance of TextAreaCodeSource
 
Method Summary
 java.lang.String getCode()
          Return the contents of the TextArea for the code body.
 java.lang.String getFields()
          Return the contents of the TextArea for the fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaCodeSource

public TextAreaCodeSource(java.awt.TextArea cta,
                          java.awt.TextArea fta)
Creates a new instance of TextAreaCodeSource

Parameters:
cta - The TextArea for the code body
fta - The TextArea for the fields code
Method Detail

getCode

public java.lang.String getCode()
Return the contents of the TextArea for the code body.

Specified by:
getCode in interface CodeSource
Returns:
The student code

getFields

public java.lang.String getFields()
Return the contents of the TextArea for the fields.

Specified by:
getFields in interface CodeSource
Returns:
The student fields

Spirograph Problem Set Javadocs