All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class distans.PageData

java.lang.Object
   |
   +----java.util.Vector
           |
           +----distans.PageData

public class PageData
extends Vector

This class is responsible for storing of the QuestionPages. The data that have to be stored are the following.

and so on for all questions in the QuestionPage. The exception is the QuestionPages of type written, as they don't have an AnswerText nor a Right answer Integer. This could however be dealt by using dummy values.

Each QuestionPage is stored in one PageData. PageData extends class java.util.Vector see Jdk for documentation. Each question uses three elements in the Vector, a String for the QuestionText, a String array for AnswerText and finally an integer for the RightAnswer. The Vector thus has a structure like this.

The rest of the class has the following variables and methods:
Variables: