Skip to content

Commit 3afeebb

Browse files
committed
Added params to theme.
1 parent 4be0fa7 commit 3afeebb

File tree

3 files changed

+27
-14
lines changed

3 files changed

+27
-14
lines changed

agGrid/src/main/java/us/ascendtech/client/aggrid/AGGridParams.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@
88
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
99
public class AGGridParams<T> {
1010

11-
private GridApi api;
12-
private ColumnDefinition colDef;
13-
private ColumnApi columnApi;
11+
private GridApi<T> api;
12+
private ColumnDefinition<T> colDef;
13+
private ColumnApi<T> columnApi;
1414
private Object context;
1515
private T data;
1616
private Object value;
1717
private Element eGridCell;
1818

1919
@JsOverlay
20-
public final GridApi getApi() {
20+
public final GridApi<T> getApi() {
2121
return api;
2222
}
2323

2424
@JsOverlay
25-
public final void setApi(GridApi api) {
25+
public final void setApi(GridApi<T> api) {
2626
this.api = api;
2727
}
2828

2929
@JsOverlay
30-
public final ColumnDefinition getColDef() {
30+
public final ColumnDefinition<T> getColDef() {
3131
return colDef;
3232
}
3333

3434
@JsOverlay
35-
public final void setColDef(ColumnDefinition colDef) {
35+
public final void setColDef(ColumnDefinition<T> colDef) {
3636
this.colDef = colDef;
3737
}
3838

3939
@JsOverlay
40-
public final ColumnApi getColumnApi() {
40+
public final ColumnApi<T> getColumnApi() {
4141
return columnApi;
4242
}
4343

4444
@JsOverlay
45-
public final void setColumnApi(ColumnApi columnApi) {
45+
public final void setColumnApi(ColumnApi<T> columnApi) {
4646
this.columnApi = columnApi;
4747
}
4848

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
package us.ascendtech.client.aggrid;
22

3-
import elemental2.core.JsObject;
43
import jsinterop.annotations.JsPackage;
54
import jsinterop.annotations.JsProperty;
65
import jsinterop.annotations.JsType;
76

87
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "window")
98
public interface AGTheme {
109
@JsProperty(name = "themeBalham")
11-
JsObject getThemeBalham();
10+
Theme getThemeBalham();
1211

1312
@JsProperty(name = "themeQuartz")
14-
JsObject getThemeQuartz();
13+
Theme getThemeQuartz();
1514

1615
@JsProperty(name = "themeMaterial")
17-
JsObject getThemeMaterial();
16+
Theme getThemeMaterial();
1817

1918
@JsProperty(name = "themeAlpine")
20-
JsObject getThemeAlpine();
19+
Theme getThemeAlpine();
2120
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package us.ascendtech.client.aggrid;
2+
3+
import jsinterop.annotations.JsMethod;
4+
import jsinterop.annotations.JsPackage;
5+
import jsinterop.annotations.JsType;
6+
import jsinterop.base.JsPropertyMap;
7+
8+
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
9+
public class Theme {
10+
11+
@JsMethod
12+
public native Theme withParams(JsPropertyMap<Object> params);
13+
14+
}

0 commit comments

Comments
 (0)