Class PMultipleBillsOptionDlg

All Implemented Interfaces:
PCustomDialog, ActionListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class PMultipleBillsOptionDlg extends JDialog implements ActionListener, ItemListener, WindowListener, PCustomDialog
This page displays the BillInfo and its corresponding BalanceInfos. Here we can shuffle the balance groups with in existing bill groups and with new bill groups.The same page is accessed from Account creation time and in maintanence time.
Author:
mgonugan,neaswara
See Also:
  • Field Details

    • treeTable

      protected JTree treeTable
    • treeTableBill

      protected JTree treeTableBill
    • btnBalanceGroupSearchLeft

      protected JButton btnBalanceGroupSearchLeft
    • btnBalanceGroupSearchRight

      protected JButton btnBalanceGroupSearchRight
    • dlgBalanceGroupSearchLeft

      protected BalanceGroupSearchDialog dlgBalanceGroupSearchLeft
    • dlgBalanceGroupSearchRight

      protected BalanceGroupSearchDialog dlgBalanceGroupSearchRight
    • hMapBalanceGroups

      protected HashMap<Poid,Integer> hMapBalanceGroups
    • lblLeftSide

      protected JLabel lblLeftSide
    • lblRightSide

      protected JLabel lblRightSide
  • Constructor Details

    • PMultipleBillsOptionDlg

      public PMultipleBillsOptionDlg(JFrame frame, String title, boolean modal, String option)
    • PMultipleBillsOptionDlg

      public PMultipleBillsOptionDlg(JFrame frame, String title, boolean modal, String option, Vector<BillGroupData> dataStruct, Vector<String> leftCombo, Vector<String> rightCombo, Hashtable<String,Poid> billInfo, Vector dataStructVect)
    • PMultipleBillsOptionDlg

      public PMultipleBillsOptionDlg(Frame frame, String title, boolean modal, String option, HashMap<String,BillInfosForMultipleBillDialog> billInfoDataHandlerObjectsHashMap, Hashtable<String,String> billInfoBalanceGroupNamesHashTable, boolean okBtnClicked, Hashtable changedHash)
      Parameters:
      frame - Frame
      title - String contains title
      modal - boolean
      option - String
      billInfoDataHandlerObjectsHashMap - HashMap - data structure object
      billInfoBalanceGroupNamesHashTable - Hashtable - data structure object
      changedHash - Hashtable - contains renamed Bill Units information
      okBtnClikced - boolean
  • Method Details

    • buildBalanceAndServicesTree

      public void buildBalanceAndServicesTree(Poid selLefRight, boolean LRFlag)
      Parameters:
      selLefRight - Poid
      LRFlag - boolean
    • buildBalanceAndServicesTree

      public void buildBalanceAndServicesTree(String selLefRight, boolean LRFlag)
      Parameters:
      selLefRight - String
      LRFlag - boolean
    • getControllerClassName

      public String getControllerClassName()
      Gets the class name for this class's controller
      Specified by:
      getControllerClassName in interface PCustomDialog
      Returns:
      a String with the component's controller's classname
    • isAccountMaintPOW

      protected boolean isAccountMaintPOW()
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handles the action for Move Left/Right buttons,left/right billinfo combobox, ok and cancel buttons.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - ActionEvent
    • setBalGrpAndServicesToDS

      protected void setBalGrpAndServicesToDS(boolean isRight)
      leftside updation
    • setBalGrpAndServicesToDSOK

      protected void setBalGrpAndServicesToDSOK()
    • setBalGrpSvLRToDS

      protected void setBalGrpSvLRToDS(Hashtable htBSLeft, Hashtable htBSRight, Poid selLeftPoid, Poid selRightPoid)
      for payment page
      Parameters:
      htBSLeft - Hashtable
      htBSRight - Hashtable
      selLeftPoid - Poid
      selRightPoid - Poid
    • setBalGrpSvLRToDS

      protected void setBalGrpSvLRToDS(Hashtable htBSLeft, Hashtable htBSRight, String selLeft, String selRight)
      for purchase wizard
      Parameters:
      htBSLeft - Hashtable
      htBSRight - Hashtable
      selLeft - String
      selRight - String
    • itemStateChanged

      public void itemStateChanged(ItemEvent evt)
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      evt - ItemEvent
    • extractDatas

      public void extractDatas()
    • getBillPoid

      protected Poid getBillPoid(String billName)
      method returns the poid for the passed string billname
      Parameters:
      billName - String
      Returns:
      Poid
    • getBalancePoid

      protected Poid getBalancePoid(String balName)
      method returns the poid for the passed string balancename
      Parameters:
      balName - String
      Returns:
      Poid
    • getBillVectorPoid

      protected Vector<Poid> getBillVectorPoid()
      method returns the poid vector for all billname
      Returns:
      Vector
    • setMoveLRDisplay

      protected void setMoveLRDisplay()
      Used internally by itemstatechanged method for disable/enable of Move buttons.
    • isAccountCreation

      protected boolean isAccountCreation()
      Used by subclasses to determine if they were instantiated as part of account creation or maintenance.
      Returns:
      true if this panel is in the account creation wizard; false otherwise
    • windowActivated

      public void windowActivated(WindowEvent e)
      windowActivated
      Specified by:
      windowActivated in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowClosed

      public void windowClosed(WindowEvent e)
      windowClosed
      Specified by:
      windowClosed in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowClosing

      public void windowClosing(WindowEvent e)
      windowClosing
      Specified by:
      windowClosing in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowDeactivated

      public void windowDeactivated(WindowEvent e)
      windowDeactivated
      Specified by:
      windowDeactivated in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowDeiconified

      public void windowDeiconified(WindowEvent e)
      windowDeiconified
      Specified by:
      windowDeiconified in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowIconified

      public void windowIconified(WindowEvent e)
      windowIconified
      Specified by:
      windowIconified in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowOpened

      public void windowOpened(WindowEvent e)
      windowOpened
      Specified by:
      windowOpened in interface WindowListener
      Parameters:
      e - WindowEvent
    • setModelHandle

      public void setModelHandle(PModelHandle billInfoMh)
      Sets PModelHandle of the billinfo
      Specified by:
      setModelHandle in interface PCustomDialog
    • showDialog

      public void showDialog()
      Sets the visibility of the dialog true for the valid data
      Specified by:
      showDialog in interface PCustomDialog
    • getControllerInst

      public Object getControllerInst()
      Returns the controller instance
      Specified by:
      getControllerInst in interface PCustomDialog