Class PIAConstant

All Implemented Interfaces:
PAppComponent, PAppFieldComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PFieldBean, PLightComponent, PViewDataChangeListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, SwingConstants

public class PIAConstant extends PIAReadOnlyField implements PCollectDataListener, Serializable
PIAConstant is a constant value component. This can be used when a panel is built and a user choice is not needed for a field value, but a value needs to be retrieved by collectData(). This component shows the constant value during GUI design time, but does not show it at run time.
Version:
2
Author:
Larry Lynch-Freshner
See Also:
  • Constructor Details

    • PIAConstant

      public PIAConstant()
      Constructs an instance of PIAConstant that hides the constant's value at run time.
  • Method Details

    • setConstValue

      public void setConstValue(Object val)
      Sets the constant's value as a string for display in the GUI during design time.
      Parameters:
      val - the contant's value
    • getConstValue

      public Object getConstValue()
      Retrieves the constant's value.
      Returns:
      The current value of the constant.
    • collectData

      public void collectData(PCollectDataEvent event)
      Overrides PCollectDataListener. Causes the controller to save changes back to the data model. Done prior to committing changes to Portal
      Specified by:
      collectData in interface PCollectDataListener
      Overrides:
      collectData in class PIAReadOnlyField
      Parameters:
      event - the data collection event