Class DialogToggleInteraction
- java.lang.Object
-
- org.eclipse.emf.ecp.emf2web.exporter.DialogToggleInteraction
-
- All Implemented Interfaces:
UserInteraction
public class DialogToggleInteraction extends java.lang.Object implements UserInteraction
- Author:
- Stefan Dirix
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.ecp.emf2web.exporter.UserInteraction
CANCEL, NO, YES
-
-
Constructor Summary
Constructors Constructor Description DialogToggleInteraction()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
askQuestion(java.lang.String title, java.lang.String question, java.lang.String toggleQuestion)
Asks the user a question.
-
-
-
Method Detail
-
askQuestion
public int askQuestion(java.lang.String title, java.lang.String question, java.lang.String toggleQuestion)
Description copied from interface:UserInteraction
Asks the user a question.- Specified by:
askQuestion
in interfaceUserInteraction
- Parameters:
title
- The title of the question.question
- The question itself.toggleQuestion
- The message for an eventual toggle box.- Returns:
- The answer, typically
UserInteraction.YES
,UserInteraction.NO
orUserInteraction.CANCEL
-
-