An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

        

# screenfullgwt

[![](https://img.shields.io/travis/fworks/screenfullgwt/master.svg)](https://travis-ci.org/fworks/screenfullgwt)
[![](https://img.shields.io/maven-central/v/com.github.fworks/screenfullgwt.svg)](https://mvnrepository.com/artifact/com.github.fworks/screenfullgwt)
[![](https://img.shields.io/github/license/fworks/screenfullgwt.svg)](#)

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.