Skip to content

Commit 7ec34af

Browse files
author
Open Lowcode SAS
committed
Close #68
1 parent 13348f3 commit 7ec34af

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
* SAS</a>
3333
*
3434
*/
35-
public class SActionButton extends SPageNode implements SDefaultPath {
35+
public class SActionButton
36+
extends
37+
SPageNode
38+
implements
39+
SDefaultPath {
3640
private String label;
3741
private String rollovertip; // note: can be void;
3842
private SActionRef actionref;
@@ -44,6 +48,14 @@ public class SActionButton extends SPageNode implements SDefaultPath {
4448
private String oklabel;
4549
private String kolabel;
4650

51+
/**
52+
* this method will ensure that if button is pressed for online action, the
53+
* popup window is closed.
54+
*/
55+
public void setForcePopupCloseForInline() {
56+
this.forcepopupcloseforinline = true;
57+
}
58+
4759
/**
4860
* puts condition to show the button depending on data sent to the page
4961
*
@@ -153,7 +165,11 @@ public SActionButton(String label, SActionRef action, boolean forcepopupclosefor
153165
* part on while executing an inline action
154166
* @param parent parent page
155167
*/
156-
public SActionButton(String label, String rollovertip, SActionRef action, boolean forcepopupcloseforinline,
168+
public SActionButton(
169+
String label,
170+
String rollovertip,
171+
SActionRef action,
172+
boolean forcepopupcloseforinline,
157173
SPage parent) {
158174
super(parent);
159175
this.label = label;

0 commit comments

Comments
 (0)