Class PARConnectionAdjustPanel

All Implemented Interfaces:
PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ActionListener, ContainerListener, ImageObserver, MenuContainer, Serializable, Runnable, EventListener, Accessible

public class PARConnectionAdjustPanel extends PIACustomizablePanel implements Runnable, ActionListener
UI panel that supports Connection level adjustment for both currency and non-currency resources. Controller classses referenced:
  • PARConnectionAdjBean
  • PARBalancePageBean
See Also:
  • Field Details

  • Constructor Details

    • PARConnectionAdjustPanel

      public PARConnectionAdjustPanel()
    • PARConnectionAdjustPanel

      public PARConnectionAdjustPanel(Vector preSelectedNonCurrencyResource)
  • Method Details

    • controlEffectiveDtPanelShow

      public void controlEffectiveDtPanelShow(boolean flag)
      This method adds the effective date components to the panel based on the currency or noncurrency radio button chosen.
      Parameters:
      flag - true or false based on the need to show the effective date
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • setHelpAction

      public void setHelpAction(PDefaultHelpIDAction action)
    • performAdjust

      public int performAdjust() throws RemoteException
      perform data collection call controller to adjust specified resource return -1 if failed validation
      Throws:
      RemoteException
    • resetCurrencyField

      public void resetCurrencyField()
      resets the currency field with its format.
    • isErrorFound

      public boolean isErrorFound()
      Returns true if any error occur while loading data
      Returns:
      boolean
    • getErrorMessage

      public String getErrorMessage()
      Returns assigned error message when error was occured, otherwise returns blank
      Returns:
      String
    • setData

      public void setData(PModelHandle pMh, boolean pstpaid, String controllerName)
      Gets Bill group, Connection and Resource data and calls initBalanaceGroupData() method to populate the data in corresponding controls.
      Parameters:
      pMh - PModelHandle
      pstpaid - boolean
      controllerName - String
    • setParentDialog

      public void setParentDialog(JDialog parentDlg)
      Sets the parent dialog reference for disabling the OK button
      Parameters:
      parentDlg -
    • serviceCountCheck

      public boolean serviceCountCheck()
      This method counts the services of the selected bill unit.
      Returns:
      true if threshold exceeds false otherwise
    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Description copied from class: PIACustomizablePanel
      Retrieves the class name of this component's controller, in this case, null.
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      A null String.
      Throws:
      RemoteException - thrown for errors