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

    Fields inherited from class org.compiere.apps.form.TreeBOM

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 or fieldProduct), add to dataBOM.
    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 or fieldProduct), add to dataBOM.
    void
    Close form.
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WTreeBOM

      public WTreeBOM()
      Default constructor
  • Method Details

    • dispose

      public void dispose()
      Close form.
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
      Specified by:
      onEvent in interface org.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 or fieldProduct), add to dataBOM.
      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 or fieldProduct), add to dataBOM.
      Parameters:
      bomline -
      parent -
      Throws:
      Exception
    • getForm

      public ADForm getForm()
      Description copied from interface: IFormController
      Called by org.adempiere.webui.panel.ADForm.openForm(int)
      Specified by:
      getForm in interface IFormController
      Returns: