|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.awt.Question
public class Question
Asks the user a yes no question. Has the capability of automatically answering yes for junit tests.
Constructor Summary | |
---|---|
Question()
|
Method Summary | |
---|---|
static boolean |
isYes(java.lang.String title,
java.lang.String question)
Asks the user a question and returns true if the answer is yes |
static void |
setAlwaysYes(boolean way)
Determines if we should always answer yes to any question |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Question()
Method Detail |
---|
public static void setAlwaysYes(boolean way)
way
- true if we should always answer yespublic static boolean isYes(java.lang.String title, java.lang.String question)
title
- The title of the message displayed to the userquestion
- The question that we asked of the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |