All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Control.Exercise

java.lang.Object
   |
   +----Control.Exercise

public class Exercise
extends Object
A Class to handle the excersie functionality


Variable Index

 o boldFont
This variable create a boldfont

Constructor Index

 o Exercise(ExerciseInterfaceView, ListOfWords, InterfaceDefinition)
This constuctor will define an exercise object to handle the functions in exercise

Method Index

 o changeInter(String, String)
This method will change the interface to each specific language
 o checkAnswer()
This method will check the word entered by user to see if it is a correct word or incorrect and update the score
 o getHint()
This method will handle event wheh user request for a hint to see answer
 o getStartPos()
This method return the starting position of the word
 o nextSentence()
This method will handle the function to display the next sentence when user click on next button
 o repeat()
This method will handle the function to display the previous sentence when user click on previous button
 o replaceDash(char)
This method will handle an event to replace each dash when user enter a character into each dash
 o seeAnswer()
This method will display the answer for user when user click on see answer button

Variables

 o boldFont
 public Font boldFont
This variable create a boldfont

Constructors

 o Exercise
 public Exercise(ExerciseInterfaceView exView,
                 ListOfWords listOfWords,
                 InterfaceDefinition id)
This constuctor will define an exercise object to handle the functions in exercise

Methods

 o nextSentence
 public void nextSentence()
This method will handle the function to display the next sentence when user click on next button

Returns:
none
 o repeat
 public void repeat()
This method will handle the function to display the previous sentence when user click on previous button

Returns:
none
 o seeAnswer
 public void seeAnswer()
This method will display the answer for user when user click on see answer button

Returns:
none
 o checkAnswer
 public void checkAnswer()
This method will check the word entered by user to see if it is a correct word or incorrect and update the score

Returns:
none
 o changeInter
 public void changeInter(String lang,
                         String country)
This method will change the interface to each specific language

Parameters:
String - lang -language
String - country
Returns:
none
 o replaceDash
 public void replaceDash(char ch)
This method will handle an event to replace each dash when user enter a character into each dash

Returns:
none
 o getHint
 public void getHint()
This method will handle event wheh user request for a hint to see answer

Returns:
none
 o getStartPos
 public int getStartPos()
This method return the starting position of the word

Returns:
int starting position of the word

All Packages  Class Hierarchy  This Package  Previous  Next  Index