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 Link icon

    • ItemInformation Link icon

      public ItemInformation(FormDescription formDescription)
  • Method Details Link icon

    • writeTableDefRecord Link icon

      public void writeTableDefRecord()
      Move data from the item back into the appropriate columns of the udf table ready for writing to the database.
    • readTableDefRecord Link icon

      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 Link icon

      public ItemInformation clone()
    • getUdfTableDefinition Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public FormDescription getFormDescription()
      Returns:
      the formDescription
    • getControlType Link icon

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