Adempiere 3.5.2a

org.eevolution.form.bom
Class BOMTreeFactory

java.lang.Object
  extended by org.eevolution.form.bom.BOMTreeFactory
All Implemented Interfaces:
BOMTreeModel

public abstract class BOMTreeFactory
extends Object
implements BOMTreeModel

Version:
1.0, October 14th 2005
Author:
Gunther Hoppe, tranSIT GmbH Ilmenau/Germany

Field Summary
protected  HashMap mapping
           
protected  BOMMessenger msg
           
protected  JTree tree
           
 
Constructor Summary
BOMTreeFactory()
           
 
Method Summary
protected  DefaultMutableTreeNode addLeafs(MProduct M_Product, BigDecimal qty, HashMap map)
           
protected  DefaultMutableTreeNode buildStructure(PO po, StorageReasoner reasoner)
           
protected  void buildTree(PO po, StorageReasoner reasoner)
           
static BOMTreeModel get(String bomType, PO po, StorageReasoner reasoner)
           
 BOMMessenger getBOMMessenger()
           
protected  DefaultMutableTreeNode getNode(BOMWrapper bom, BigDecimal qty, HashMap map)
           
 HashMap getNodeMapping()
           
 JTree getTree()
           
protected  String getTreeNodeRepresentation(DefaultMutableTreeNode node)
           
protected abstract  String type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

protected JTree tree

mapping

protected HashMap mapping

msg

protected BOMMessenger msg
Constructor Detail

BOMTreeFactory

public BOMTreeFactory()
Method Detail

type

protected abstract String type()

get

public static BOMTreeModel get(String bomType,
                               PO po,
                               StorageReasoner reasoner)

buildTree

protected void buildTree(PO po,
                         StorageReasoner reasoner)

buildStructure

protected DefaultMutableTreeNode buildStructure(PO po,
                                                StorageReasoner reasoner)

getNode

protected DefaultMutableTreeNode getNode(BOMWrapper bom,
                                         BigDecimal qty,
                                         HashMap map)

addLeafs

protected DefaultMutableTreeNode addLeafs(MProduct M_Product,
                                          BigDecimal qty,
                                          HashMap map)

getTreeNodeRepresentation

protected String getTreeNodeRepresentation(DefaultMutableTreeNode node)

getTree

public JTree getTree()
Specified by:
getTree in interface BOMTreeModel

getNodeMapping

public HashMap getNodeMapping()
Specified by:
getNodeMapping in interface BOMTreeModel

getBOMMessenger

public BOMMessenger getBOMMessenger()
Specified by:
getBOMMessenger in interface BOMTreeModel

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.