Skip to content

Commit 9b06c52

Browse files
committed
ModernClipboard updates.
1 parent 22fa496 commit 9b06c52

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

gwt-material/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>gwt-material-parent</artifactId>
66
<groupId>com.github.gwtmaterialdesign</groupId>
7-
<version>2.8.0-SNAPSHOT</version>
7+
<version>2.8.1-SNAPSHOT</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2024 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.client.js;
21+
22+
import elemental2.promise.Promise;
23+
import jsinterop.annotations.JsMethod;
24+
import jsinterop.annotations.JsType;
25+
26+
@JsType(isNative = true)
27+
public class ModernClipboard {
28+
29+
@JsMethod
30+
public native Promise writeText(String text);
31+
}

gwt-material/src/main/java/gwt/material/design/client/js/Navigator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ public class Navigator {
3535

3636
@JsProperty
3737
public static boolean onLine;
38+
39+
@JsProperty
40+
public static ModernClipboard clipboard;
3841
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.github.gwtmaterialdesign</groupId>
77
<artifactId>gwt-material-parent</artifactId>
8-
<version>2.8.0-SNAPSHOT</version>
8+
<version>2.8.1-SNAPSHOT</version>
99
<packaging>pom</packaging>
1010
<modules>
1111
<module>gwt-material</module>

0 commit comments

Comments
 (0)