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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdge
(MWFNodeNext edge) Add edge between nodevoid
Add workflow nodefindBounds
(int AD_WF_Node_ID) Get Bounds of WF Node IconfindWidget
(int row, int column) Find workflow node widget via row and columnint
Get column countint
Get current column indexint
Get current row indexGet dimension of containerorg.netbeans.api.visual.graph.GraphScene<Integer,
MWFNodeNext> Get graph sceneint
Get last column with nodeint
Get row countvoid
paint
(Graphics2D graphics) Paint containervoid
Remove All and their listenersvoid
setWorkflow
(MWorkflow wf) Set Workflowvoid
validate
(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
-