Package loggerForms
Class ItemInformation
java.lang.Object
loggerForms.ItemInformation
- All Implemented Interfaces:
Cloneable
- Author:
- Graham Weatherup - SMRU Contains all the information about a single line in the UDF database table.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getBooleanProperty
(String propertyKey) Get a Boolean property from the hash table, returning null if the property does not exist.getFloatProperty
(String propertyKey) Get a Float property from the hash table, returning null if the property does not exist.getIntegerProperty
(String propertyKey) Get an Integer property from the hash table, returning null if the property does not exist.getStringProperty
(String title) Get a string property from the hash table, returning null if the property does not exist.non static this means blank item description has to be created then avoid
Read the data for a single from item (control or command) from the UDF table definition.setProperty
(String propertyKey, Object property) Set a property in the property table.void
Move data from the item back into the appropriate columns of the udf table ready for writing to the database.
-
Constructor Details
-
ItemInformation
-
-
Method Details
-
writeTableDefRecord
public void writeTableDefRecord()Move data from the item back into the appropriate columns of the udf table ready for writing to the database. -
readTableDefRecord
public void readTableDefRecord()Read the data for a single from item (control or command) from the UDF table definition. Store in local variables for use as required when forms are created. -
clone
-
getUdfTableDefinition
non static this means blank item description has to be created then a- Returns:
-
setProperty
Set a property in the property table. Null values are not allowed, so must be removed. Existing values will be overwritten.- Parameters:
propertyKey
- prperty key nameproperty
- Property object- Returns:
- previous property value (or null)
-
getStringProperty
Get a string property from the hash table, returning null if the property does not exist.- Parameters:
title
- property key- Returns:
- null or the property cast as a String
-
getIntegerProperty
Get an Integer property from the hash table, returning null if the property does not exist.- Parameters:
propertyKey
- property key- Returns:
- null or the property cast as a Integer
-
getFloatProperty
Get a Float property from the hash table, returning null if the property does not exist.- Parameters:
propertyKey
- property key- Returns:
- null or the property cast as a Float
-
getBooleanProperty
Get a Boolean property from the hash table, returning null if the property does not exist.- Parameters:
propertyKey
- property key- Returns:
- null or the property cast as a Boolean
-
getFormDescription
- Returns:
- the formDescription
-
getControlType
- Returns:
- the ControlType (INTEGER, LOOKUP, etc.)
-