Package org.adempiere.webui.apps.wf
Class WFNodeContainer
java.lang.Object
org.adempiere.webui.apps.wf.WFNodeContainer
Container for one or more workflow node
- Author:
 - Low Heng Sin
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdge(MWFNodeNext edge) Add edge between nodevoidAdd workflow nodefindBounds(int AD_WF_Node_ID) Get Bounds of WF Node IconfindWidget(int row, int column) Find workflow node widget via row and columnintGet column countintGet current column indexintGet current row indexGet dimension of containerorg.netbeans.api.visual.graph.GraphScene<Integer,MWFNodeNext> Get graph sceneintGet last column with nodeintGet row countvoidpaint(Graphics2D graphics) Paint containervoidRemove All and their listenersvoidsetWorkflow(MWorkflow wf) Set Workflowvoidvalidate(Graphics2D graphics) Validate layout 
- 
Constructor Details
- 
WFNodeContainer
public WFNodeContainer()WFContentPanel 
 - 
 - 
Method Details
- 
setWorkflow
Set Workflow- Parameters:
 wf- workflow
 - 
removeAll
public void removeAll()Remove All and their listeners - 
addNode
Add workflow node- Parameters:
 node-
 - 
addEdge
Add edge between node- Parameters:
 edge-
 - 
findWidget
Find workflow node widget via row and column- Parameters:
 row- row #, starting from 1column- column #, starting from 1- Returns:
 - WFNodeWidget
 
 - 
findBounds
Get Bounds of WF Node Icon- Parameters:
 AD_WF_Node_ID- node id- Returns:
 - bounds of node with ID or null
 
 - 
getDimension
Get dimension of container- Returns:
 - dimension
 
 - 
validate
Validate layout- Parameters:
 graphics-
 - 
paint
Paint container- Parameters:
 graphics-
 - 
getRowCount
public int getRowCount()Get row count- Returns:
 - row count
 
 - 
getCurrentRow
public int getCurrentRow()Get current row index- Returns:
 - current row index
 
 - 
getCurrentColumn
public int getCurrentColumn()Get current column index- Returns:
 - current column index
 
 - 
getColumnCount
public int getColumnCount()Get column count- Returns:
 - column count
 
 - 
getMaxColumnWithNode
public int getMaxColumnWithNode()Get last column with node- Returns:
 - last column with node
 
 - 
getGraphScene
Get graph scene- Returns:
 - graph scene
 
 
 -