package cz.muni.fi.bronchus.questions; /** * Standard Short Answer question, student has to fill the answer using his own words. * @author Tomáš Udržal */ public class ShortAnswerQuestion extends Question { /** * Width of the text area in chars */ private int width; /** * Height of the text area in chars */ private int height; /** Creates a new instance of ShortAnswerQuestion */ public ShortAnswerQuestion() { super("Short Answer"); width=height=0; } /** * Setter method for the size of the text area * @param w width of the textarea * @param h height of the textarea */ public void setSize(int w, int h) { width=w; height=h; } /** * Getter method of the height of the text area * @return width of text area */ public int getHeight() { return height; } /** * Getter method of the width of the text area * @return width of text area */ public int getWidth() { return width; } /** * Method for generating a response processing condition from a selected answers. * Returns empty String because the condition for this type of question cannot be * generated. * @return empty String */ public String generateCondition() { return ""; } }