Package com.inet.viewer
Interface CustomPromptEditor
- All Superinterfaces:
ViewerComponent
CustomPromptEditors are used to display custom editors for specific prompts.
They are registered using the method
ReportViewer.setCustomPromptEditor(String, int, CustomPromptEditor).
When a prompt is requested with a name for which a CustomPromptEditor has been
registered, the editor is fetched via ViewerComponent.getComponent(), its
default values are set via setValue(Object), and its value is then
requested via getValue().- Since:
- 7.8
- See Also:
-
Method Summary
Methods inherited from interface com.inet.viewer.ViewerComponent
getComponent
-
Method Details
-
setValue
Sets the currently set value of the prompt for which this editor is being used.- Parameters:
value- currently set value of the prompt- Since:
- 7.8
-
getValue
Object getValue()Returns the currently chosen value for the prompt for which this editor is being used. Note that the object returned depends on the value type of the prompt:NUMBER:java.lang.DoubleCURRENCY:java.lang.DoubleBOOLEAN:java.lang.BooleanDATE:java.sql.DateTIME:java.sql.TimeDATETIME:java.sql.TimestampSTRING:java.lang.StringRANGE:Range- If the return value is to be multiple values, return a Vector.
- Returns:
- the currently chosen value for the prompt.
- Since:
- 7.8
- See Also:
-