Class PARAcctAdjustPanel

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

public class PARAcctAdjustPanel extends PIACustomizablePanel implements ActionListener
UI panel that supports account level adjustment for both currency and non-currency resources. Controller classses referenced:
  • PARAccountAdjBean
  • PARBalancePageBean
See Also:
  • Field Details

  • Constructor Details

    • PARAcctAdjustPanel

      public PARAcctAdjustPanel()
  • Method Details

    • setData

      public void setData(PModelHandle handle, PARAccountAdjBean bean)
      Sets the data.
      Parameters:
      handle - PModelHandle
      bean - PARAccountAdjBean instance.
    • setParentDialog

      public void setParentDialog(JDialog parentDlg)
      Sets the parent dialog reference to disable 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
    • callAutoAdjustAction

      protected void callAutoAdjustAction()
      This method is called when the autoAdjust checkbox is selected. The selection in the table is cleared and table is disabled.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • 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
    • retrieveBalBuckets

      protected void retrieveBalBuckets()
      retrieves the sub balance buckets by calling BAL_GET_BALANCES opcode and sets the data to the table
      Throws:
      Exception
    • resetCurrencyField

      public void resetCurrencyField()
    • 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