IDEMPIERE-1789 remove grid border from workflow window

This commit is contained in:
Carlos Ruiz 2014-03-07 19:17:14 -05:00
parent cac1e2d290
commit 8786638e1e
3 changed files with 15 additions and 2 deletions

View File

@ -49,6 +49,7 @@ public class WFNodeContainer
private int currentRow = 1;
private int currentColumn = 0;
private int noOfColumns = 4;
private int maxColumn = 0;
private int rowCount = 0;
private WorkflowGraphScene graphScene = new WorkflowGraphScene();
@ -146,6 +147,9 @@ public class WFNodeContainer
w.setRow(currentRow);
nodes[currentColumn - 1] = node.getAD_WF_Node_ID();
if (currentColumn > maxColumn) {
maxColumn = currentColumn;
}
if (currentRow < oldRow) {
currentRow = oldRow;
@ -227,6 +231,10 @@ public class WFNodeContainer
return noOfColumns;
}
public int getMaxColumnWithNode() {
return maxColumn;
}
public GraphScene<Integer, MWFNodeNext> getGraphScene() {
return graphScene;
}

View File

@ -187,14 +187,15 @@ public class WFPanel extends Borderlayout implements EventListener<Event>, IHelp
try {
int row = nodeContainer.getRowCount();
int maxCol = nodeContainer.getMaxColumnWithNode();
for(int i = 0; i < row; i++) {
Tr tr = new Tr();
table.appendChild(tr);
for(int c = 0; c < 4; c++) {
for(int c = 0; c < maxCol; c++) {
BufferedImage t = new BufferedImage(WFGraphLayout.COLUMN_WIDTH, WFGraphLayout.ROW_HEIGHT, BufferedImage.TYPE_INT_ARGB);
Graphics2D tg = t.createGraphics();
Td td = new Td();
// td.setStyle("border: 1px dotted lightgray");
td.setSclass("workflow-panel-table");
tr.appendChild(td);
int x = c * WFGraphLayout.COLUMN_WIDTH;

View File

@ -1764,6 +1764,10 @@ table.z-vbox > tbody > tr > td > table {
.workflow-activity-form {
}
.workflow-panel-table {
border: 0px;
}
<%-- find window --%>
.find-window {
}