Class PAcctTreeBeanImpl

All Implemented Interfaces:
PAcctTreeBean, PIAGroupTreeBean, PControllerBean, PFieldBean, PLightComponent, PropertyChangeListener, Serializable, Remote, Unreferenced, EventListener

public class PAcctTreeBeanImpl extends PIAGroupTreeBeanImpl implements PAcctTreeBean
Controller class for the PAcctTree component Modified by RamaPrasad
Version:
%version: 14 % %date_modified: Thu Nov 08 10:11:39 2001 %
See Also:
  • Constructor Details

  • Method Details

    • isLight

      public boolean isLight() throws RemoteException
      Description copied from class: PControllerImpl
      Determines whether this is a lightweight component. Lightweight components do not have their own model. Instead, they use that of their container. This means that getModel always returns null, setModel is ignored, and no property change events are generated.

      The default value is false.

      Specified by:
      isLight in interface PControllerBean
      Overrides:
      isLight in class PControllerImpl
      Returns:
      True if the component is lightweight; false otherwise.
      Throws:
      RemoteException - thrown for errors
    • update

      public void update(int reason, Object data) throws RemoteException
      Description copied from class: PIAFieldBean
      Updates the field according to the displayFieldDescription property, if present.
      Overrides:
      update in class PIAGroupTreeBeanImpl
      Parameters:
      reason - the reason for the update
      data - the updated object
      Throws:
      RemoteException - thrown for all errors
    • getTree

      public Object getTree() throws RemoteException
      Description copied from interface: PAcctTreeBean
      returns the tree model built in update()
      Specified by:
      getTree in interface PAcctTreeBean
      Throws:
      RemoteException
    • loadChildParents

      public Object loadChildParents() throws RemoteException
      Builds a tree model of accounts that are parents
      Specified by:
      loadChildParents in interface PAcctTreeBean
      Returns:
      A hashtable that can be used to set the tree model
      Throws:
      RemoteException
    • loadChildParents

      public Vector loadChildParents(PModelHandle acctHandle) throws RemoteException
      Builds a tree model of accounts that are parents
      Returns:
      A hashtable that can be used to set the tree model
      Throws:
      RemoteException
    • loadDefaultChildParents

      public Vector loadDefaultChildParents(PModelHandle acctHandle) throws RemoteException
      Builds a tree model of accounts that are parents
      Returns:
      A hashtable that can be used to set the tree model
      Throws:
      RemoteException
    • getRootParentAccount

      public void getRootParentAccount(boolean viewType, PModelHandle acctMh) throws RemoteException
      The method which gets root parent-childs for accounts
      Parameters:
      viewType - boolean value representing the context of bill unit/account level hierarchy
      acctMh - , the account model handle
      Throws:
      RemoteException
    • createAcctFlistForBillUnit

      public FList createAcctFlistForBillUnit(Poid p, PFieldSpecification spec) throws RemoteException
      read in only the fields required as per the spec, and some additional fields taht will be required irrespective of the spec
      Parameters:
      p - The account poid
      spec - The field spec
      Throws:
      RemoteException
    • isPayingAccount

      public boolean isPayingAccount(PModelHandle acct) throws RemoteException
      Checks the acct passed has an paying bill unit
      Specified by:
      isPayingAccount in interface PAcctTreeBean
      Returns:
      A boolean true if account is paying account else false
      Throws:
      RemoteException
    • loadCompleteTree

      public Object loadCompleteTree() throws RemoteException
      Builds a tree model of all accounts that are in hierarchy
      Specified by:
      loadCompleteTree in interface PAcctTreeBean
      Returns:
      A hashtable that can be used to set the tree model
      Throws:
      RemoteException
    • loadChildPayTypes

      public void loadChildPayTypes(HashMap acctPayTypeMap, PModelHandle[] hChilds)
      loads the hashmap with the poid and the paytype of the child accounts in the array
      Parameters:
      acctPayTypeMap - HashMap
      hChilds - PModelHandle[] child accounts
    • getChildPayDetailMap

      public HashMap getChildPayDetailMap(PModelHandle currentAcctHandle)
      Prepares the payment type details of all the children of Current Account.
      Parameters:
      currentAcctHandle - PModelHandle
      Returns:
      HashMap