Interface UserInteraction
-
- All Known Implementing Classes:
DialogToggleInteraction
public interface UserInteraction
Encapsulates user interaction.- Author:
- Stefan Dirix
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
askQuestion(java.lang.String title, java.lang.String question, java.lang.String toggle)
Asks the user a question.
-
-
-
Field Detail
-
YES
static final int YES
Indicates a 'Yes' answer.- See Also:
- Constant Field Values
-
NO
static final int NO
Indicates a 'No' answer.- See Also:
- Constant Field Values
-
CANCEL
static final int CANCEL
Indicates a 'Cancel' answer.- See Also:
- Constant Field Values
-
-
Method Detail
-
askQuestion
int askQuestion(java.lang.String title, java.lang.String question, java.lang.String toggle)
Asks the user a question.- Parameters:
title
- The title of the question.question
- The question itself.toggle
- The message for an eventual toggle box.- Returns:
- The answer, typically
UserInteraction.YES
,UserInteraction.NO
orUserInteraction.CANCEL
-
-