|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.viewer.PromptValue
public abstract class PromptValue
Abstract super class of a prompt value
| Field Summary | |
|---|---|
static com.inet.viewer.FallbackFormatter |
DATEFORMAT
formatter to use for dates (will use multiple fall backs) |
static com.inet.viewer.FallbackFormatter |
DATETIMEFORMAT
formatter to use for datetimes (will use multiple fall backs) |
static java.text.Format |
DATETIME_FOUR_DIGIT_YEAR_NO_SECONDS
formatter to use for datetimes with 4-digit years but without showing seconds |
static java.text.Format |
DATETIME_FOUR_DIGIT_YEAR_WITH_SECONDS
formatter to use for datetimes with 4-digit years and seconds |
static java.text.NumberFormat |
NUMBERFORMAT
formatter to use for numbers |
static com.inet.viewer.FallbackFormatter |
TIMEFORMAT
formatter to use for times (will use multiple fall backs) |
| Constructor Summary | |
|---|---|
PromptValue(int type)
Creates a prompt values of the given type initialized with the default value of its type |
|
PromptValue(java.lang.String description,
int type)
Creates a prompt values of the given type initialized with the default value of its type |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Get decription of the prompt value |
abstract java.lang.Object |
getSQLTypedValue()
this method returns the value of this promptvalue using an sql compatible type. |
abstract java.lang.String |
getStringRepresentation()
Returns a string representation of the value of this prompt. |
int |
getType()
Get value type of the prompt, see the value type constants in PromptData |
abstract java.lang.Object |
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 |
boolean |
isOnlyDescription()
If true only the decription will be displayed in the report dialog. |
void |
setDescription(java.lang.String description)
Set decription of the prompt value |
void |
setOnlyDescription(boolean onlyDescription)
Sets the appearance of this value in the prompt dialog. |
java.lang.String |
toString()
Creates a formated string representation of this prompt value with its decription and value. |
| Field Detail |
|---|
public static java.text.NumberFormat NUMBERFORMAT
public static final com.inet.viewer.FallbackFormatter DATEFORMAT
public static final java.text.Format DATETIME_FOUR_DIGIT_YEAR_WITH_SECONDS
public static final java.text.Format DATETIME_FOUR_DIGIT_YEAR_NO_SECONDS
public static final com.inet.viewer.FallbackFormatter DATETIMEFORMAT
public static final com.inet.viewer.FallbackFormatter TIMEFORMAT
| Constructor Detail |
|---|
public PromptValue(int type)
type - type of this default value.
public PromptValue(java.lang.String description,
int type)
type - type of this default value.description - decription of this promt| Method Detail |
|---|
public abstract java.lang.String getStringRepresentation()
public abstract java.lang.Object getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - of the prompt valuepublic int getType()
PromptData
PromptDatapublic boolean isOnlyDescription()
public void setOnlyDescription(boolean onlyDescription)
onlyDescription - whether only description shall be displayedpublic abstract java.lang.Object getSQLTypedValue()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||