Class PCollectDataEvent

java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.portal.bas.PCollectDataEvent
All Implemented Interfaces:
Serializable

public class PCollectDataEvent extends AWTEvent
PCollectDataEvent sends a marshal data event to collect changed data from various controls. This data can then be used, for example, to commit changes and perform a search.
Version:
7
Author:
Larry Lynch-Freshner
See Also:
  • Field Details

    • FOR_UNKNOWN

      public static final int FOR_UNKNOWN
      Collects data for an unspecified reason.
      See Also:
    • FOR_SEARCHING

      public static final int FOR_SEARCHING
      Collects data for searches.
      See Also:
    • FOR_STORING

      public static final int FOR_STORING
      Collects data specifically for storage.
      See Also:
    • FOR_VALIDATION

      public static final int FOR_VALIDATION
      Collects data specifically for validation.
      See Also:
    • FOR_OTHER

      public static final int FOR_OTHER
      Collects data for a purpose that doesn't fit into another category.
      See Also:
    • FOR_DIRTY

      public static final int FOR_DIRTY
      Collects data from fields that have the "dirty" attribute set.
      See Also:
  • Constructor Details

    • PCollectDataEvent

      public PCollectDataEvent(Object src, int why, PModelHandle model)
      Constructs an instance of PCollectDataEvent given the source, a reason to collect the data, and a model in which to collect data.
      Parameters:
      src - the event sender
      why - the reason for data collection
      model - the model to collect data
    • PCollectDataEvent

      public PCollectDataEvent(Object src, int why, boolean forceCollectAll, PModelHandle model)
      Constructs an instance of PCollectDataEvent given the source, and a model to collect data.
      Parameters:
      src - the event sender
      why - the reason for data collection
      forceCollectAll - true if all controls should respond with their data, even if they have no data, or have not changed
      model - the model to collect data
  • Method Details

    • getModel

      public PModelHandle getModel()
      Gets the model in which to collect the changed data.
      Returns:
      The model used to collect changed data.
    • getReason

      public int getReason()
      Gets the reason code for data collection.
      Returns:
      The collection reason code.
    • setInvalidComponent

      public void setInvalidComponent(Object src)
      Called when the component this event was sent to has invalid data. The caller should stop data collection and handle the error.
      Parameters:
      src - the component that has the invalid data
    • getInvalidComponent

      public Object getInvalidComponent()
      Checks for an invalid component and, if found, retrieves it. Returns null if data collection was valid.
      Returns:
      An invalid source component, or null.
    • forceResponse

      public boolean forceResponse()
      Forces a response from a control. Many controls ignore this event if no change has been made or they contain no data. If this property is true, the controls should always respond to this event.
      Returns:
      True if a control should always respond with its data; false otherwise.