Package com.portal.app.cc.comp
Class PAcctTreeBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.PFieldControllerBean
com.portal.bas.comp.PIAFieldBean
com.portal.bas.comp.PIAGroupTreeBeanImpl
com.portal.app.cc.comp.PAcctTreeBeanImpl
- All Implemented Interfaces:
PAcctTreeBean,PIAGroupTreeBean,PControllerBean,PFieldBean,PLightComponent,PropertyChangeListener,Serializable,Remote,Unreferenced,EventListener
Controller class for the PAcctTree component
Modified by RamaPrasad
- Version:
- %version: 14 % %date_modified: Thu Nov 08 10:11:39 2001 %
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.comp.PIAGroupTreeBeanImpl
mLazyFields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread in only the fields required as per the spec, and some additional fields taht will be required irrespective of the specgetChildPayDetailMap(PModelHandle currentAcctHandle) Prepares the payment type details of all the children of Current Account.voidgetRootParentAccount(boolean viewType, PModelHandle acctMh) The method which gets root parent-childs for accountsgetTree()returns the tree model built in update()booleanisLight()Determines whether this is a lightweight component.booleanisPayingAccount(PModelHandle acct) Checks the acct passed has an paying bill unitBuilds a tree model of accounts that are parentsloadChildParents(PModelHandle acctHandle) Builds a tree model of accounts that are parentsvoidloadChildPayTypes(HashMap acctPayTypeMap, PModelHandle[] hChilds) loads the hashmap with the poid and the paytype of the child accounts in the arrayBuilds a tree model of all accounts that are in hierarchyloadDefaultChildParents(PModelHandle acctHandle) Builds a tree model of accounts that are parentsvoidUpdates the field according to thedisplayFieldDescriptionproperty, if present.Methods inherited from class com.portal.bas.comp.PIAGroupTreeBeanImpl
buildTree, createAccountFlist, getChildren, getDisplayData, getDisplayData, getSelectionDataFor, performSearch, prepareChildList, setLazyMethods inherited from class com.portal.bas.comp.PIAFieldBean
getDataDescriptor, getLightData, getRemoteListenerHandle, propertyChange, setLightDataMethods inherited from class com.portal.bas.PFieldControllerBean
getAssociatedClass, getDisplayFieldDescription, getDisplaySpec, getField, getFieldSpec, getModelFieldDescription, releaseSpecifications, revertToPrimary, setAssociatedClass, setDisplayFieldDescription, setField, setModelFieldDescription, togglePrimaryToSecondaryMethods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getSecContext, handleDistributeToListener, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
-
Constructor Details
-
PAcctTreeBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
isLight
Description copied from class:PControllerImplDetermines whether this is a lightweight component. Lightweight components do not have their own model. Instead, they use that of their container. This means thatgetModelalways returns null,setModelis ignored, and no property change events are generated.The default value is false.
- Specified by:
isLightin interfacePControllerBean- Overrides:
isLightin classPControllerImpl- Returns:
- True if the component is lightweight; false otherwise.
- Throws:
RemoteException- thrown for errors
-
update
Description copied from class:PIAFieldBeanUpdates the field according to thedisplayFieldDescriptionproperty, if present.- Overrides:
updatein classPIAGroupTreeBeanImpl- Parameters:
reason- the reason for the updatedata- the updated object- Throws:
RemoteException- thrown for all errors
-
getTree
Description copied from interface:PAcctTreeBeanreturns the tree model built in update()- Specified by:
getTreein interfacePAcctTreeBean- Throws:
RemoteException
-
loadChildParents
Builds a tree model of accounts that are parents- Specified by:
loadChildParentsin interfacePAcctTreeBean- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
loadChildParents
Builds a tree model of accounts that are parents- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
loadDefaultChildParents
Builds a tree model of accounts that are parents- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
getRootParentAccount
The method which gets root parent-childs for accounts- Parameters:
viewType- boolean value representing the context of bill unit/account level hierarchyacctMh- , the account model handle- Throws:
RemoteException
-
createAcctFlistForBillUnit
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 poidspec- The field spec- Throws:
RemoteException
-
isPayingAccount
Checks the acct passed has an paying bill unit- Specified by:
isPayingAccountin interfacePAcctTreeBean- Returns:
- A boolean true if account is paying account else false
- Throws:
RemoteException
-
loadCompleteTree
Builds a tree model of all accounts that are in hierarchy- Specified by:
loadCompleteTreein interfacePAcctTreeBean- Returns:
- A hashtable that can be used to set the tree model
- Throws:
RemoteException
-
loadChildPayTypes
loads the hashmap with the poid and the paytype of the child accounts in the array- Parameters:
acctPayTypeMap- HashMaphChilds- PModelHandle[] child accounts
-
getChildPayDetailMap
Prepares the payment type details of all the children of Current Account.- Parameters:
currentAcctHandle- PModelHandle- Returns:
- HashMap
-