Skip to content

Commit a4fdb20

Browse files
committed
Fixed compatibility with GWT 2.9 (WIP)
1 parent 1e1579b commit a4fdb20

File tree

10 files changed

+32
-24
lines changed

10 files changed

+32
-24
lines changed

src/main/java/gwt/material/design/amcore/client/adapter/Adapter.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,12 +21,9 @@
2121

2222
import gwt.material.design.amcore.client.events.EventDispatcher;
2323
import gwt.material.design.jquery.client.api.Functions;
24-
import jsinterop.annotations.JsMethod;
25-
import jsinterop.annotations.JsPackage;
26-
import jsinterop.annotations.JsProperty;
27-
import jsinterop.annotations.JsType;
24+
import jsinterop.annotations.*;
2825

29-
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
26+
@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL)
3027
public class Adapter<T, V> {
3128

3229
@JsProperty

src/main/java/gwt/material/design/amcore/client/base/CirclePattern.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/amcore/client/color/Color.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -27,10 +27,9 @@
2727
@JsType(isNative = true, namespace = "am4core", name = "color")
2828
public class Color {
2929

30-
public Color() {}
31-
3230
@JsConstructor
33-
public Color(String color) {}
31+
public Color(String color) {
32+
}
3433

3534
@JsProperty
3635
public double alpha;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package gwt.material.design.amcore.client.color;
2+
3+
import jsinterop.annotations.JsPackage;
4+
import jsinterop.annotations.JsType;
5+
6+
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
7+
public class Fill extends Color {
8+
9+
public Fill(String color) {
10+
super(color);
11+
}
12+
}

src/main/java/gwt/material/design/amcore/client/events/EventTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import jsinterop.annotations.JsProperty;
2424
import jsinterop.annotations.JsType;
2525

26-
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
26+
@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL)
2727
public class EventTarget<T> {
2828

2929
@JsProperty

src/main/java/gwt/material/design/amcore/client/events/SortedListEvents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import jsinterop.annotations.JsPackage;
2323
import jsinterop.annotations.JsProperty;
2424
import jsinterop.annotations.JsType;
25-
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
25+
@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL)
2626
public class SortedListEvents<T> {
2727

2828
@JsProperty

src/main/java/gwt/material/design/amplugin/venn/client/VennDiagramCharts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/amplugin/venn/client/datafield/VennSeriesDataFields.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/amplugin/venn/client/series/VennSeries.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/main/java/gwt/material/design/amplugin/venn/client/series/VennSeriesDataItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

0 commit comments

Comments
 (0)