Class PIAPaymentField

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

public class PIAPaymentField extends PIADefaultChoiceEnumField
A combobox component containing knowledge of the payment types supported by a given Portal server. This component will query Customer Center for the list of its supported payment types, and match these against a query of Portal. All matching items are displayed in the list.
Specifically, this component will read a property like "maintenance.options" where "maintenance" is specified using the setContextTag() api. It will then query Portal for the list of supported opcodes. These 2 lists are compared and those that occur in both lists are displayed in the menu.
Version:
%version: 8 % %date_modified: Thu Jun 13 09:51:10 2002 %
Author:
kapono
See Also:
  • Field Details

    • payMethodFormat

      protected String payMethodFormat
      List of available methods of payment as a message format string
    • payMethodFormatSubordinate

      protected String payMethodFormatSubordinate
      List of available methods of payment as a message format string
  • Constructor Details

    • PIAPaymentField

      public PIAPaymentField()
  • Method Details

    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Identifies the controller class for this component
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIAEnumField
      Returns:
      The controller's class name
      Throws:
      RemoteException - thrown for errors
    • setContextTag

      public void setContextTag(String tag)
      Identifies the property tag which should be queried when determing the Customer Center supported payment types. As of the 6.1 release, there are definitions for "maintenance", "consumerpayment", and "businesspayment". The 2 properties that will be read are:
      tag.options
      tag.default
      where tag is the 'tag' parameter
      Parameters:
      tag - The property tag to read from the property file
    • getContextTag

      public String getContextTag()
      Returns the context tag
      Returns:
      the context tag
    • alwaysResetToDefault

      public void alwaysResetToDefault(boolean b)
      By default, addNotify() resets the widget values to the default. Pass false to this method if you do not want this behavior for some reason.
      Parameters:
      b - If true (default), addNotify() will reset the widget values to default.
    • isAlwaysResetToDefault

      public boolean isAlwaysResetToDefault()
      Returns the reset to default state of this widget
      Returns:
      true if the widget values are reset in addNotify(); false otherwise
    • setSupportSubordinate

      public void setSupportSubordinate(boolean b)
      In certain situations, Subordinate should not be a payment option a CSR can select when changing payment types. However, it is a valid payment type for existing accounts and when creating subordinate accounts. By indicating the need for Subordinate support, this component will take this into account when building the list of payment options.
      Parameters:
      b - true if this components needs to handle the Subordinate payment type
    • getSupportSubordinate

      public boolean getSupportSubordinate()
      Returns:
      true if this component supports Subordinate as a payment type
    • setLightData

      public void setLightData(Object obj)
      Description copied from class: PIAEnumField
      Sets the lightweight data object.
      Specified by:
      setLightData in interface PLightComponent
      Overrides:
      setLightData in class PIAEnumField
      Parameters:
      obj - the lightweight component's display data
    • addNotify

      public void addNotify()
      Overridden to build up the list of supported payment options
      Overrides:
      addNotify in class PIAEnumField
    • selectDefault

      public void selectDefault()