You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 022567d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow-client/src/main/java/com/vaadin/addon/spreadsheet/client/PopupButtonConnector.java
Copy file name to clipboardExpand all lines: vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow-client/src/main/java/com/vaadin/addon/spreadsheet/client/PopupButtonServerRpc.java
Copy file name to clipboardExpand all lines: vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow-client/src/main/java/com/vaadin/addon/spreadsheet/client/PopupButtonWidget.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ public void setPosition(int offsetWidth, int offsetHeight) {
74
74
privateintcol;
75
75
privateintrow;
76
76
privateSheetWidgetowner;
77
+
privateWidgetcontent;
77
78
78
79
publicPopupButtonWidget() {
79
80
root.setClassName(BUTTON_CLASSNAME);
@@ -197,6 +198,18 @@ public void removePopupComponent(Widget widget) {
197
198
popupLayout.remove(widget);
198
199
}
199
200
201
+
publicvoidsetPopupContent(Widgetwidget) {
202
+
this.content = widget;
203
+
addPopupComponent(widget);
204
+
}
205
+
206
+
publicvoidclearPopupContent() {
207
+
if (this.content != null) {
208
+
removePopupComponent(this.content);
209
+
this.content = null;
210
+
}
211
+
}
212
+
200
213
publicvoidsetPopupHeight(StringpopupHeight) {
201
214
if (popupHeight != null) {
202
215
((PopupPanel) popup).setHeight(popupHeight);
@@ -260,6 +273,7 @@ public boolean isPopupOpen() {
Copy file name to clipboardExpand all lines: vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow-client/src/main/java/com/vaadin/component/spreadsheet/client/js/Parser.java
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,10 @@ public static List<PopupButtonState> parseListOfPopupButtons(String raw) {
Copy file name to clipboardExpand all lines: vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow-client/src/main/java/com/vaadin/component/spreadsheet/client/js/SpreadsheetJsApi.java
Copy file name to clipboardExpand all lines: vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow-client/src/main/java/com/vaadin/component/spreadsheet/client/js/SpreadsheetServerRpcImpl.java
0 commit comments