ukacgla_HTMLMulti
Class TestLine

java.lang.Object
  |
  +--ukacgla_HTMLMulti.TestLine

public class TestLine
extends java.lang.Object

TestLine holds the details of a single line in the test. It holds any image icons to be displayed, the text needed to complete the HTML to be displayed on labels, the URL of the follow up file, and whether this line is a correct solution or not.


Constructor Summary
TestLine(javax.swing.ImageIcon icon, java.lang.String text, java.net.URL followOnURL, int c)
          Constructor takes all the arguments needed to generate a single option to be presented to user.
 
Method Summary
protected  boolean getCorrect()
           
protected  java.net.URL getFollowOnURL()
           
protected  javax.swing.ImageIcon getIcon()
           
protected  java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestLine

public TestLine(javax.swing.ImageIcon icon,
                java.lang.String text,
                java.net.URL followOnURL,
                int c)
Constructor takes all the arguments needed to generate a single option to be presented to user. Image icon is any images to be displayed. The String will be formatted for presentation as HTML, and will be the text presented to the . The URL is the URL of the follow on information to be displayed after student has made their selection The int must be 1 is this is the correct answer to the question, otherwise must be 0.
Method Detail

getCorrect

protected boolean getCorrect()

getFollowOnURL

protected java.net.URL getFollowOnURL()

getIcon

protected javax.swing.ImageIcon getIcon()

getText

protected java.lang.String getText()