Package org.adempiere.webui.apps.form
Class WTreeBOM
java.lang.Object
org.compiere.apps.form.TreeBOM
org.adempiere.webui.apps.form.WTreeBOM
- All Implemented Interfaces:
IFormController
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WTreeBOM
extends TreeBOM
implements IFormController, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Form to view BOM tree.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(MPPProductBOMLine bomline, org.adempiere.webui.apps.form.mySimpleTreeNode parent) Add bomline to tree and children of bomline (if any) recursively.
If bomline is component of current selected product (m_selected_id
orfieldProduct
), add todataBOM
.void
addParent
(MPPProductBOMLine bomline, org.adempiere.webui.apps.form.mySimpleTreeNode parent) Add parent product of bomline to tree and parent of parent product (if any) recursively.
If bomline is component of current selected product (m_selected_id
orfieldProduct
), add todataBOM
.void
dispose()
Close form.getForm()
Called by org.adempiere.webui.panel.ADForm.openForm(int)void
onEvent
(org.zkoss.zk.ui.event.Event event) Methods inherited from class org.compiere.apps.form.TreeBOM
getCtx, productSummary, productSummary
-
Constructor Details
-
WTreeBOM
public WTreeBOM()Default constructor
-
-
Method Details
-
dispose
public void dispose()Close form. -
onEvent
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
addChild
public void addChild(MPPProductBOMLine bomline, org.adempiere.webui.apps.form.mySimpleTreeNode parent) throws Exception Add bomline to tree and children of bomline (if any) recursively.
If bomline is component of current selected product (m_selected_id
orfieldProduct
), add todataBOM
.- Parameters:
bomline
-parent
-- Throws:
Exception
-
addParent
public void addParent(MPPProductBOMLine bomline, org.adempiere.webui.apps.form.mySimpleTreeNode parent) throws Exception Add parent product of bomline to tree and parent of parent product (if any) recursively.
If bomline is component of current selected product (m_selected_id
orfieldProduct
), add todataBOM
.- Parameters:
bomline
-parent
-- Throws:
Exception
-
getForm
Description copied from interface:IFormController
Called by org.adempiere.webui.panel.ADForm.openForm(int)- Specified by:
getForm
in interfaceIFormController
- Returns:
-