Package loggerForms

Class FormsDataBlock


public class FormsDataBlock extends PamDataBlock<FormsDataUnit>
Author:
Graham Weatherup
  • Constructor Details

  • Method Details

    • getFormDescription

      public FormDescription getFormDescription()
    • getShouldLog

      public boolean getShouldLog(PamDataUnit pamDataUnit)
      Override this for Logger forms so that they always save.
      Overrides:
      getShouldLog in class PamDataBlock<FormsDataUnit>
      Parameters:
      pamDataUnit - dataunit to consider
      Returns:
      true if data should be logged.
    • addPamData

      public void addPamData(FormsDataUnit pamDataUnit)
      Description copied from class: PamDataBlock
      Adds a new PamDataUnit to the PamDataBlock. When the data unit is added, PamObservers that have subscribed to the block will be notified.
      If the data unit already has a UID, it will be left as is.
      Overrides:
      addPamData in class PamDataBlock<FormsDataUnit>
      Parameters:
      pamDataUnit - Reference to a PamDataUnit
    • updatePamData

      public void updatePamData(FormsDataUnit pamDataUnit, long timeMillis)
      Description copied from class: PamDataBlock
      update a dataunit. Does little except flag that the data unit is updated (so it will get saved), and sends notifications to other modules.
      Overrides:
      updatePamData in class PamDataBlock<FormsDataUnit>