|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.ksbase.util.UserDialogUtil
public class UserDialogUtil
Utility class to create question dialogs to the user. Can be used in Xtend transformations in JAVA extensions to get input from the user.
Constructor Summary | |
---|---|
UserDialogUtil()
|
Method Summary | ||
---|---|---|
boolean |
getUserBoolean(String message)
Give the user a yes/no choice. |
|
Float |
getUserFloat(String message,
Float defaultValue)
Get a float from the user. |
|
Integer |
getUserInt(String message,
Integer defaultValue)
Get an int from the user. |
|
|
getUserObjectFromList(String message,
List<T> list)
Give the user a choice from a list of elements. |
|
String |
getUserString(String message,
String defaultValue)
Get a string from the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserDialogUtil()
Method Detail |
---|
public String getUserString(String message, String defaultValue)
message
- the message for the dialogdefaultValue
- the default value
public Integer getUserInt(String message, Integer defaultValue)
message
- the message for the dialogdefaultValue
- the default value
public Float getUserFloat(String message, Float defaultValue)
message
- the message for the dialogdefaultValue
- the default value
public boolean getUserBoolean(String message)
message
- the question
public <T> T getUserObjectFromList(String message, List<T> list)
T
- the type of elementmessage
- the message to displaylist
- the list of elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |