Package org.compiere.apps.form
Class TreeBOM<T>
java.lang.Object
org.compiere.apps.form.TreeBOM<T>
- Type Parameters:
T- Tree Node type
- Direct Known Subclasses:
WTreeBOM
Form to view BOM tree.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChild(MPPProductBOMLine bomline, T parent, Function<TreeBOM.NewNodeArguments<T>, T> createNewNodeFunction, boolean reload) Add child BOM line of selected productprotected voidaddParent(MPPProductBOMLine bomline, T parent, Function<TreeBOM.NewNodeArguments<T>, T> createNewNodeFunction, boolean reload) Add BOM line that is using selected product as componentGet column names fordataBOMgetCtx()Get immutable BOM lines of current selected productvoidloadBOM(MProduct product, T parent, Function<TreeBOM.NewNodeArguments<T>, T> createNewNodeFunction, boolean implosion, boolean reload) Load BOMnewProductLine(MProduct product, int lineNo, BigDecimal qty) New product lineproductSummary(MProduct product, boolean isLeaf) Get Product SummaryGet BOM SummaryvoidsetColumnClass(IMiniTable table) Set class type for table
-
Field Details
-
log
-
dataBOM
Child components of current selected product -
m_selectedId
protected int m_selectedIdM_Product_ID of selected tree node
-
-
Constructor Details
-
TreeBOM
public TreeBOM()
-
-
Method Details
-
getCtx
-
productSummary
Get Product Summary- Parameters:
product- ProductisLeaf- is Leaf- Returns:
- Product Summary (Value_Name[UOM])
-
productSummary
Get BOM Summary- Parameters:
bom- Product BOM- Returns:
- BOM Summary (Value_Name)
-
setColumnClass
Set class type for table- Parameters:
table-- See Also:
-
getColumnNames
Get column names fordataBOM- Returns:
- column names
-
newProductLine
New product line- Parameters:
product-lineNo-- Returns:
- product line
-
loadBOM
public void loadBOM(MProduct product, T parent, Function<TreeBOM.NewNodeArguments<T>, T> createNewNodeFunction, boolean implosion, boolean reload) Load BOM- Parameters:
product-parent- parent nodecreateNewNodeFunction-implosion-reload-
-
addParent
protected void addParent(MPPProductBOMLine bomline, T parent, Function<TreeBOM.NewNodeArguments<T>, T> createNewNodeFunction, boolean reload) Add BOM line that is using selected product as component- Parameters:
bomline-parent- parent tree nodecreateNewNodeFunction-reload-
-
addChild
protected void addChild(MPPProductBOMLine bomline, T parent, Function<TreeBOM.NewNodeArguments<T>, T> createNewNodeFunction, boolean reload) Add child BOM line of selected product- Parameters:
bomline-parent- parent tree nodecreateNewNodeFunction-reload-
-
getDataBOM
Get immutable BOM lines of current selected product- Returns:
- bom lines
-