Package loggerForms

Class ItemInformation

java.lang.Object
loggerForms.ItemInformation
All Implemented Interfaces:
Cloneable

public class ItemInformation extends Object implements Cloneable
Author:
Graham Weatherup - SMRU Contains all the information about a single line in the UDF database table.
  • Constructor Details

    • ItemInformation

      public ItemInformation(FormDescription formDescription)
  • 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

      public ItemInformation clone()
    • getUdfTableDefinition

      public UDFTableDefinition getUdfTableDefinition()
      non static this means blank item description has to be created then a
      Returns:
    • setProperty

      public Object setProperty(String propertyKey, Object property)
      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 name
      property - Property object
      Returns:
      previous property value (or null)
    • getStringProperty

      public String getStringProperty(String title)
      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

      public Integer getIntegerProperty(String propertyKey)
      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

      public Float getFloatProperty(String propertyKey)
      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

      public Boolean getBooleanProperty(String propertyKey)
      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

      public FormDescription getFormDescription()
      Returns:
      the formDescription
    • getControlType

      public ControlTypes getControlType()
      Returns:
      the ControlType (INTEGER, LOOKUP, etc.)