ScreenFull GWT

Simple gwtwrapper for the screenfull.js (cross-browser usage of the JavaScript Fullscreen API http://sindresorhus.com/screenfull.js)

License

License

Categories

Categories

GWT (Google Web Toolkit) User Interface Web Frameworks
GroupId

GroupId

com.github.fworks
ArtifactId

ArtifactId

screenfullgwt
Last Version

Last Version

4.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

ScreenFull GWT
Simple gwtwrapper for the screenfull.js (cross-browser usage of the JavaScript Fullscreen API http://sindresorhus.com/screenfull.js)
Project URL

Project URL

https://github.com/fworks/screenfullgwt
Source Code Management

Source Code Management

http://github.com/fworks/screenfullgwt

Download screenfullgwt

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.fworks/screenfullgwt/ -->
<dependency>
    <groupId>com.github.fworks</groupId>
    <artifactId>screenfullgwt</artifactId>
    <version>4.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.fworks/screenfullgwt/
implementation 'com.github.fworks:screenfullgwt:4.0.1'
// https://jarcasting.com/artifacts/com.github.fworks/screenfullgwt/
implementation ("com.github.fworks:screenfullgwt:4.0.1")
'com.github.fworks:screenfullgwt:jar:4.0.1'
<dependency org="com.github.fworks" name="screenfullgwt" rev="4.0.1">
  <artifact name="screenfullgwt" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.fworks', module='screenfullgwt', version='4.0.1')
)
libraryDependencies += "com.github.fworks" % "screenfullgwt" % "4.0.1"
[com.github.fworks/screenfullgwt "4.0.1"]

Dependencies

provided (2)

Group / Artifact Type Version
com.google.gwt : gwt-user jar
com.google.gwt : gwt-dev jar

runtime (1)

Group / Artifact Type Version
com.google.gwt : gwt-servlet jar

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

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

<dependency>
  <groupId>com.github.fworks</groupId>
  <artifactId>screenfullgwt</artifactId>
  <version>4.0.1</version>
</dependency>

How to use

  1. Inherit the module
<!-- fullscreen -->
<inherits name="com.github.fworks.screenfullgwt.ScreenFullGWT" />
  1. 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.

Versions

Version
4.0.1
3.0
1.0