Klasse PromptValue
java.lang.Object
com.inet.viewer.PromptValue
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
RangePromptValue
Abstract super class of a prompt value
- Seit:
- 9.2
- Siehe auch:
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final Formatformatter to use for dates (will use multiple fall backs)static final Formatformatter to use for datetimes with 4-digit years but without showing secondsstatic final Formatformatter to use for datetimes with 4-digit years and secondsstatic final Formatformatter to use for datetimes (will use multiple fall backs)static NumberFormatformatter to use for numbersstatic NumberFormatneeded for format with english decimal pointsstatic final Formatformatter to use for times (will use multiple fall backs) -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPromptValue(int type) Creates a prompt values of the given type initialized with the default value of its typePromptValue(String description, int type) Creates a prompt values of the given type initialized with the default value of its type -
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns the description of the parameter field that has been set using API or i-net Designer dialog.abstract Objectthis method returns the value of this promptvalue using an SQL compatible type.abstract StringReturns a string representation of the value of this prompt.intgetType()Get value type of the prompt, see the value type constants inPromptDataabstract ObjectgetValue()Returns the value of this prompt - its type will depend on which value type this PromptValue has: String for STRING
Double for NUMBER and CURRENCY
Boolean for BOOLEAN
Date for DATE and DATETIME
Time for TIME
byte[] for BINARYbooleanIf true only the description will be displayed in the report dialog.voidsetDescription(String description) Set the description of the parameter field that can be used with API or in the prompt request dialog.voidsetOnlyDescription(boolean onlyDescription) Sets the appearance of this value in the prompt dialog.toString()Creates a formated string representation of this prompt value with its decription and value.
-
Felddetails
-
NUMBERFORMAT
formatter to use for numbers -
NUMBERFORMAT_ENGLISH
needed for format with english decimal points -
DATEFORMAT
formatter to use for dates (will use multiple fall backs) -
DATETIME_FOUR_DIGIT_YEAR_WITH_SECONDS
formatter to use for datetimes with 4-digit years and seconds -
DATETIME_FOUR_DIGIT_YEAR_NO_SECONDS
formatter to use for datetimes with 4-digit years but without showing seconds -
DATETIMEFORMAT
formatter to use for datetimes (will use multiple fall backs) -
TIMEFORMAT
formatter to use for times (will use multiple fall backs)
-
-
Konstruktordetails
-
PromptValue
public PromptValue(int type) Creates a prompt values of the given type initialized with the default value of its type- Parameter:
type- type of this default value.- Seit:
- 9.2
-
PromptValue
Creates a prompt values of the given type initialized with the default value of its type- Parameter:
description- description of this prompttype- type of this default value.- Seit:
- 9.2
-
-
Methodendetails
-
getStringRepresentation
Returns a string representation of the value of this prompt.- Gibt zurück:
- a string representation of the value of this prompt.
- Seit:
- 9.2
-
getValue
Returns the value of this prompt - its type will depend on which value type this PromptValue has: String for STRING
Double for NUMBER and CURRENCY
Boolean for BOOLEAN
Date for DATE and DATETIME
Time for TIME
byte[] for BINARY- Gibt zurück:
- the value of this prompt - its type will depend on which value type this PromptValue has.
- Seit:
- 9.2
-
toString
-
getDescription
Returns the description of the parameter field that has been set using API or i-net Designer dialog.- Gibt zurück:
- description of the parameter field
- Seit:
- 9.2
-
setDescription
Set the description of the parameter field that can be used with API or in the prompt request dialog.- Parameter:
description- of the parameter field- Seit:
- 9.2
-
getType
public int getType()Get value type of the prompt, see the value type constants inPromptData- Gibt zurück:
- value type of the prompt, see the value type constants in
PromptData - Seit:
- 9.2
-
isOnlyDescription
public boolean isOnlyDescription()If true only the description will be displayed in the report dialog. (only necessary if this prompt value represents a default value)- Gibt zurück:
- whether only description is displayed
- Seit:
- 9.2
-
setOnlyDescription
public void setOnlyDescription(boolean onlyDescription) Sets the appearance of this value in the prompt dialog. (only necessary if this promtvalue represents a default value)- Parameter:
onlyDescription- whether only description shall be displayed- Seit:
- 9.2
-
getSQLTypedValue
this method returns the value of this promptvalue using an SQL compatible type. The returned type could be.- Gibt zurück:
- value of this promptvalue using an SQL compatible type.
- Seit:
- 9.2
-