@JsonData public class RangePromptValue extends PromptValue
DATEFORMAT, DATETIMEFORMAT, DATETIME_FOUR_DIGIT_YEAR_NO_SECONDS, DATETIME_FOUR_DIGIT_YEAR_WITH_SECONDS, NUMBERFORMAT, TIMEFORMAT
Constructor and Description |
---|
RangePromptValue(Range range,
int type)
Constructor using a Range object
|
Modifier and Type | Method and Description |
---|---|
com.inet.viewer.SinglePromptValue |
getEndValue()
Returns the upper limit to the range, or null if there is no upper limit
|
java.lang.Object |
getSQLTypedValue()
not implemented yet.
|
com.inet.viewer.SinglePromptValue |
getStartValue()
Returns the lower limit to the range, or null if there is no lower limit
|
java.lang.String |
getStringRepresentation()
Returns a string representation of the value of this prompt.
|
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 |
isIncludeHigh()
Returns whether the upper limit is included in the range
|
boolean |
isIncludeLow()
Returns whether the lower limit is included in the range
|
void |
setEndValue(com.inet.viewer.SinglePromptValue endValue)
Sets the Upper limit to the range, or null if there is no upper limit
|
void |
setIncludeHigh(boolean includeHigh)
Sets whether the upper limit is included in the range
|
void |
setIncludeLow(boolean includeLow)
Sets whether the lower limit is included in the range
|
void |
setStartValue(com.inet.viewer.SinglePromptValue startValue)
Sets the Upper limit to the range, or null if there is no upper limit
|
getDescription, getType, isOnlyDescription, setDescription, setOnlyDescription, toString
public RangePromptValue(Range range, int type)
range
- Range object to use to create a RangePromptValue based on the given rangetype
- value type of the rangepublic final boolean isIncludeHigh()
public final void setIncludeHigh(boolean includeHigh)
includeHigh
- the endvalue.public final boolean isIncludeLow()
public final void setIncludeLow(boolean includeLow)
includeLow
- include the start value.public com.inet.viewer.SinglePromptValue getEndValue()
public void setEndValue(com.inet.viewer.SinglePromptValue endValue)
endValue
- Upper limit to the range, or null if there is no upper limitpublic com.inet.viewer.SinglePromptValue getStartValue()
public void setStartValue(com.inet.viewer.SinglePromptValue startValue)
startValue
- Upper limit to the range, or null if there is no upper limitpublic java.lang.Object getValue()
getValue
in class PromptValue
public java.lang.String getStringRepresentation()
getStringRepresentation
in class PromptValue
PromptValue.getStringRepresentation()
public java.lang.Object getSQLTypedValue()
getSQLTypedValue
in class PromptValue
Copyright © 1999-2020 by i-net software GmbH