Package com.portal.app.cc
Class ItemChargeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.portal.app.cc.ItemChargeNode
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
- Direct Known Subclasses:
PendingItemChargeNode
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsConstructorDescriptionItemChargeNode(String desc) Constructor to create an ItemChargeNode only with description.ItemChargeNode(String desc, int descType, BigDecimal charge, BigDecimal discount, BigDecimal amountDue, String account, PModelHandle pmhItemCharge) Constructor to create an ItemChargeNode only with the following fields.ItemChargeNode(String desc, int descType, BigDecimal charge, BigDecimal discount, BigDecimal billedARactions, BigDecimal unbilledARactions, BigDecimal amountDue, BigDecimal netAmount, String account, PModelHandle pmhItemCharge) Constructor to create an ItemChargeNode only with the following fields. -
Method Summary
Modifier and TypeMethodDescriptionReturns the account numberReturns the amount due.Returns the billed AR actions.Returns the chargeReturns the item charges PModelHandlegetDesc()Returns the descriptionReturns the discountReturns the net amountReturns the unbilled AR actions.booleanisLeaf()Returns whether its a leaf or notvoidsetAccount(String account) Setter for account.voidsetAmountDue(BigDecimal amountDue) Sets the amount due.voidsetBilledARactions(BigDecimal billedARactions) Sets the billed AR actions.voidsetCharge(BigDecimal charge) Setter for charge.voidsetChargesHandle(PModelHandle pmhItemCharge) Sets the item charge PModelHandlevoidSetter for the description.voidsetDiscount(BigDecimal discount) Setter for discount.voidsetNetAmount(BigDecimal netAmount) Setter for net amount.voidsetUnbilledARactions(BigDecimal unbilledARactions) Sets the unbilled AR actions.voidsetUserObj(PModelHandle pmhItemCharge) Set the item charges PModelHandletoString()Returns the description.Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
Constructor Details
-
ItemChargeNode
Constructor to create an ItemChargeNode only with description.- Parameters:
String- desc
-
ItemChargeNode
public ItemChargeNode(String desc, int descType, BigDecimal charge, BigDecimal discount, BigDecimal amountDue, String account, PModelHandle pmhItemCharge) Constructor to create an ItemChargeNode only with the following fields.- Parameters:
String- descint- descTypeBigDecimal- chargeBigDecimal- discountBigDecimal- amountDueString- accountPModelHandle- pmhItemCharge
-
ItemChargeNode
public ItemChargeNode(String desc, int descType, BigDecimal charge, BigDecimal discount, BigDecimal billedARactions, BigDecimal unbilledARactions, BigDecimal amountDue, BigDecimal netAmount, String account, PModelHandle pmhItemCharge) Constructor to create an ItemChargeNode only with the following fields.- Parameters:
String- descint- descTypeBigDecimal- chargeBigDecimal- discountBigDecimal- billedARactionsBigDecimal- unbilledARactionsBigDecimal- amountDueBigDecimal- netAmountString- accountPModelHandle- pmhItemCharge
-
-
Method Details
-
setUserObj
Set the item charges PModelHandle- Parameters:
pmhItemCharge-
-
isLeaf
public boolean isLeaf()Returns whether its a leaf or not- Specified by:
isLeafin interfaceTreeNode- Overrides:
isLeafin classDefaultMutableTreeNode- Returns:
-
toString
Returns the description.- Overrides:
toStringin classDefaultMutableTreeNode- Returns:
-
getDesc
Returns the description- Returns:
-
getCharge
Returns the charge- Returns:
-
getDiscount
Returns the discount- Returns:
-
getNetAmount
Returns the net amount- Returns:
-
getAccount
Returns the account number- Returns:
-
setDesc
Setter for the description.- Parameters:
desc-
-
setCharge
Setter for charge.- Parameters:
charge-
-
setDiscount
Setter for discount.- Parameters:
discount-
-
setNetAmount
Setter for net amount.- Parameters:
netAmount-
-
setAccount
Setter for account.- Parameters:
account-
-
getChargesHandle
Returns the item charges PModelHandle- Returns:
- pmhItemCharge PModelHandle
-
setChargesHandle
Sets the item charge PModelHandle- Parameters:
pmhItemCharge-
-
getBilledARactions
Returns the billed AR actions.- Returns:
- billedARactions BigDecimal
-
setBilledARactions
Sets the billed AR actions.- Parameters:
billedARactions- BigDecimal
-
getUnbilledARactions
Returns the unbilled AR actions.- Returns:
- unbilledARactions BigDecimal
-
setUnbilledARactions
Sets the unbilled AR actions.- Parameters:
unbilledARactions- BigDecimal
-
getAmountDue
Returns the amount due.- Returns:
- amountDue BigDecimal
-
setAmountDue
Sets the amount due.- Parameters:
amountDue- BigDecimal
-