public class FieldValue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FT_BOOLEAN
contentGetSupportedField: A true/false value.
|
static int |
FT_DATE
contentGetSupportedField: A date value (year, month, day).
|
static int |
FT_DATETIME
contentGetSupportedField: A timestamp of type FILETIME, as returned e.g.
|
static int |
FT_DELAYED
contentGetValue: field takes a long time to extract -> try again in
background.
|
static int |
FT_FIELDEMPTY
contentGetValue: field valid, but empty.
|
static int |
FT_FILEERROR
contentGetValue: file i/o error.
|
static int |
FT_FULLTEXT
contentGetSupportedField: A full text (multiple text strings), only used
for searching.
|
static int |
FT_MULTIPLECHOICE
contentGetSupportedField: A value allowing a limited number of choices.
|
static int |
FT_NOMOREFIELDS
contentGetSupportedField: The FieldIndex is beyond the last available
field.
|
static int |
FT_NOSUCHFIELD
contentGetValue: error, invalid field number given.
|
static int |
FT_NOTSUPPORTED
Function not supported.
|
static int |
FT_NUMERIC_32
contentGetSupportedField: A 32-bit signed number.
|
static int |
FT_NUMERIC_64
contentGetSupportedField: A 64-bit signed number, e.g. for file sizes.
|
static int |
FT_NUMERIC_FLOATING
contentGetSupportedField: A double precision floating point number.
|
static int |
FT_ONDEMAND
contentGetValue: field will be retrieved only when user presses
<SPACEBAR>.
|
static int |
FT_SETCANCEL
contentEditValue(): The user clicked on cancel.
|
static int |
FT_STRING
contentGetSupportedField: A text string.
|
static int |
FT_TIME
contentGetSupportedField: A time value (hour, minute, second).
|
| Constructor and Description |
|---|
FieldValue() |
| Modifier and Type | Method and Description |
|---|---|
LocalDate |
getDate()
Value, if fieldType == FT_DATE.
|
double |
getDoubleValue()
Value, if fieldType == FT_NUMERIC_FLOATING.
|
int |
getFieldType() |
FileTime |
getFileTime()
Value, if fieldType == FT_DATETIME.
|
int |
getIntValue()
Value, if fieldType == FT_NUMERIC_32.
|
long |
getLongValue()
Value, if fieldType == FT_NUMERIC_64.
|
java.lang.String |
getStr()
Value, if fieldType == FT_MULTIPLECHOICE || fieldType == FT_STRING ||
fieldType == FT_FULLTEXT.
|
LocalTime |
getTime()
Value, if fieldType == FT_TIME.
|
boolean |
isBoolValue()
Value, if fieldType == FT_BOOLEAN.
|
void |
parseValue(java.lang.String text)
Parse text as expected type fieldType.
|
void |
setValue(int type,
java.lang.Object value)
Create a new field value for the data format of the field type.
|
java.lang.String |
toString() |
public static final int FT_NOMOREFIELDS
public static final int FT_NUMERIC_32
public static final int FT_NUMERIC_64
public static final int FT_NUMERIC_FLOATING
public static final int FT_DATE
public static final int FT_TIME
public static final int FT_BOOLEAN
public static final int FT_MULTIPLECHOICE
public static final int FT_STRING
public static final int FT_FULLTEXT
public static final int FT_DATETIME
public static final int FT_NOSUCHFIELD
public static final int FT_FILEERROR
public static final int FT_FIELDEMPTY
public static final int FT_ONDEMAND
public static final int FT_NOTSUPPORTED
public static final int FT_SETCANCEL
public static final int FT_DELAYED
public final int getIntValue()
public final long getLongValue()
public final double getDoubleValue()
public final boolean isBoolValue()
public final java.lang.String getStr()
public final FileTime getFileTime()
public final LocalDate getDate()
public final LocalTime getTime()
public final int getFieldType()
public final void setValue(int type,
java.lang.Object value)
type - value - The value of the field type.public java.lang.String toString()
toString in class java.lang.Objectpublic final void parseValue(java.lang.String text)
text - the string presentation of the value