...
/// PromptData[] myPrompts = new PromptData[3];
/// for (int i=0; i<3; i++) {
/// myPrompts[i] = new PromptData(name[i], description[i], defaultValues[i], defaultDescs[i],
/// type[i], discrete[i], range[i], multi[i], changeable[i], descOnly[i], editMask[i],
/// minLength[i], maxLength[i]);
/// }
/// MyPromptDialog.execute(myPrompts); //show the prompts, request values from user, etc.
/// Object[] obj = new Object[3];
/// for (int i=0; i<3; i++) {
/// obj[i] = myPrompts[i].getChosenValue();
/// }
/// sendPromptsToServer(obj);
/// ...
///
/// As can be seen - first the PromptData objects are initialized, then used to request
/// data from the user (its settings can be retrieved with methods such as getName(), getDescription(), getType(), etc.
/// The chosen values are of the following type, depending on the type of the prompt:
///Prompt Type | Java Type |
Number/Currency | Double |
Boolean | Boolean |
Date/DateTime | java.util.Date |
Time | Time |
String | String |
Binary | byte[] |
Range | |
Multiple | Vector |
PromptData
object which is to be ignored - this is useful for prompts which
/// are not used in the report. PromptData
object with the parameters chosen. PromptData
object with the parameters chosen. PromptData
object and initializes a new one with all values equal to that of the old PromptData
object. null
if no description is set. null
if no description is set.
/// @since 7.0 PromptData
. PromptData
. PromptData
object is equal to another
/// if all settings are the same in both objects.
/// Object
/// null
.
///