Skip to content

Commit 9789f08

Browse files
author
Open Lowcode SAS
committed
Close #113
1 parent 08c133e commit 9789f08

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/org/openlowcode/client/graphic/widget/CComponentBand.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.openlowcode.tools.structure.DataElt;
2626
import org.openlowcode.tools.structure.DataEltType;
2727
import javafx.geometry.Insets;
28+
import javafx.geometry.Pos;
2829
import javafx.scene.Node;
2930
import javafx.scene.control.TabPane;
3031
import javafx.scene.layout.Background;
@@ -66,6 +67,11 @@ public class CComponentBand
6667
* horizontal band, adding widgets from right to left
6768
*/
6869
public static final int DIRECTION_LEFT = 4;
70+
/**
71+
* a component band with a direction right and no upper line in display
72+
*/
73+
public static final int DIRECTION_RIGHT_NOLINE = 5;
74+
6975
private int minwidth = 0;
7076

7177
/**
@@ -143,12 +149,23 @@ public static Pane returnBandPane(int direction) {
143149

144150
thispane = new HBox(8);
145151
thispane.setPadding(new Insets(2, 0, 0, 0));
152+
((HBox)thispane).setAlignment(Pos.CENTER_LEFT);
146153
thispane.setBackground(new Background(new BackgroundFill(Color.WHITE, null, null)));
147154
thispane.setBorder(new Border(new BorderStroke(Color.LIGHTGREY, Color.LIGHTGREY, Color.LIGHTGREY, Color.LIGHTGREY,
148155
BorderStrokeStyle.SOLID, BorderStrokeStyle.NONE, BorderStrokeStyle.NONE, BorderStrokeStyle.NONE,
149156
CornerRadii.EMPTY, new BorderWidths(1), Insets.EMPTY)));
150157
return thispane;
151158
}
159+
160+
if (direction == DIRECTION_RIGHT_NOLINE) {
161+
162+
thispane = new HBox(8);
163+
((HBox)thispane).setAlignment(Pos.CENTER_LEFT);
164+
thispane.setBackground(new Background(new BackgroundFill(Color.WHITE, null, null)));
165+
166+
return thispane;
167+
}
168+
152169
throw new RuntimeException("Direction "+direction+" not supported");
153170

154171
}

src/org/openlowcode/design/data/DataObjectDefinitionShowPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public void generateToFile(SourceGenerator sg, Module module) throws IOException
714714
sg.wl(" mainband.addElement(titleobjectdisplaydefinition);");
715715

716716
if ((hasworkflow) || (hasunreleasedwarnings)) {
717-
sg.wl(" SComponentBand extratitle = new SComponentBand(SComponentBand.DIRECTION_RIGHT,this);");
717+
sg.wl(" SComponentBand extratitle = new SComponentBand(SComponentBand.DIRECTION_RIGHT_NOLINE,this);");
718718
}
719719
if (hasunreleasedwarnings)
720720
sg.wl(" extratitle.addElement(new SPageText(this.getUnreleasedwarning(), SPageText.TYPE_WARNING,this));");

src/org/openlowcode/server/graphic/widget/SComponentBand.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public class SComponentBand
4949
* an horizontal band right to left (rare)
5050
*/
5151
public static final int DIRECTION_LEFT = 4;
52+
/**
53+
* a component band with a direction right and no upper line in display
54+
*/
55+
public static final int DIRECTION_RIGHT_NOLINE = 5;
56+
5257
private String nameforpath;
5358
private String callstackatcreation;
5459

0 commit comments

Comments
 (0)