|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.SAWS.callback.SAWSChoiceCallback
public class SAWSChoiceCallback
This class represents a Callback for getting a decision from the user.
Field Summary | |
---|---|
static int |
ERROR
Represents error messages. |
static int |
INFORMATION
Represents information messages. |
static int |
WARNING
Represents warning messages. |
Constructor Summary | |
---|---|
SAWSChoiceCallback(java.lang.String prompt,
java.lang.String[] options,
java.lang.String key,
int defaultOption,
int messageType)
Constructor of the class. |
Method Summary | |
---|---|
int |
getDefaultOption()
|
java.lang.String |
getKey()
|
int |
getMessageType()
|
java.lang.String[] |
getOptions()
|
java.lang.String |
getPrompt()
|
int |
getSelectedIndex()
|
void |
setSelectedIndex(int choice)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INFORMATION
public static final int WARNING
public static final int ERROR
Constructor Detail |
---|
public SAWSChoiceCallback(java.lang.String prompt, java.lang.String[] options, java.lang.String key, int defaultOption, int messageType)
prompt
- The message to be displayed.options
- The options available to be chosen.key
- The identification for the message that is going to be used
on the file being read by SAWSFileCallbackHandler.defaultOption
- The default option from those in the list.messageType
- The type of message: SAWSChoiceCallback.INFORMATION,
SAWSChoiceCallback.WARNING or SAWSChoiceCallback.ERRORMethod Detail |
---|
public java.lang.String getPrompt()
public java.lang.String[] getOptions()
public java.lang.String getKey()
public int getDefaultOption()
public int getMessageType()
public void setSelectedIndex(int choice)
public int getSelectedIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |