https://github.com/fworks/screenfullgwt
Simple GWT wrapper for screenfull.js (http://sindresorhus.com/screenfull.js)
https://github.com/fworks/screenfullgwt
cross-browser google-web-toolkit gwt java javascript javascript-fullscreen-api screenfull
Last synced: about 2 months ago
JSON representation
Simple GWT wrapper for screenfull.js (http://sindresorhus.com/screenfull.js)
- Host: GitHub
- URL: https://github.com/fworks/screenfullgwt
- Owner: fworks
- License: mit
- Created: 2013-12-04T14:27:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T10:31:06.000Z (about 6 years ago)
- Last Synced: 2025-03-23T21:24:30.281Z (2 months ago)
- Topics: cross-browser, google-web-toolkit, gwt, java, javascript, javascript-fullscreen-api, screenfull
- Language: Java
- Homepage:
- Size: 98.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# screenfullgwt
[](https://travis-ci.org/fworks/screenfullgwt)
[](https://mvnrepository.com/artifact/com.github.fworks/screenfullgwt)
[](#)Simple gwt wrapper for the screenfull.js
"Simple wrapper for cross-browser usage of the JavaScript Fullscreen API, which lets you bring the page or any element into fullscreen. Smoothens out the browser implementation differences, so you don't have too." (http://sindresorhus.com/screenfull.js)
# maven
```
com.github.fworks
screenfullgwt
4.0.1```
# How to use
1) Inherit the module
``````
2) Just call the static methods
```
ScreenFull.toggleFullScreen();
ScreenFull.requestFullScreen();
ScreenFull.isFullScreen();
ScreenFull.element();
ScreenFull.enabled();
ScreenFull.exitFullScreen();
// and more
```
Example (adding the toggle fullscreen on a button click handler:
```
fullscreenButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
ScreenFull.toggleFullScreen();
}
});
```# Notes
Note that it is just a wrapper for the screenfull.js file defined here.
Please go to http://sindresorhus.com/screenfull.js to see more details about the js.