Re: simulate F11 Key event with gwt

2015-10-07 Thread Juan Pablo Gardella
Thanks Thomas. It's strange that signature

On 7 October 2015 at 11:40, Thomas Broyer  wrote:

> JSNI: the first "()" is part of the method signature (formal parameters),
> the second one is for calling the method (actual argument values).
>
>
> On Wednesday, October 7, 2015 at 5:58:50 PM UTC+2, Juan Pablo Gardella
> wrote:
>>
>> Do you know why "supportsKeysInFullScreenMode()()"  requires double '()'?
>>
>> On 7 October 2015 at 09:49, Vassilis Virvilis  wrote:
>>
>>> Obviously you will need to substitute
>>> @com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()()
>>> with true if you want the keyboard to work in chrome in fullscreen mode
>>>
>>>Vassilis
>>>
>>> On Wed, Oct 7, 2015 at 5:46 PM, Vassilis Virvilis 
>>> wrote:
>>>
 Discaimer: This will make one element to go fullscreen - if you want
 the full page to go full screen you will need to specify body. This is
 equivalent of the HTML video player on youtube going fullscreen,

 Known problems with this:

- Safari: Keyboard on fullscreen mode is not working for security
reasons
- IOS Safari: Fullscreen is not working. You have to accept it is a
fact of mac life.


 I am using this:

 public static native void toggleFullScreen(Element element) /*-{
 var fullScreenElement = ($doc.fullScreenElement
 || $doc.mozFullScreenElement ||
 $doc.webkitFullscreenElement || $doc.msFullscreenElement);

 //
 if (fullScreenElement == null) {
 if (element.requestFullscreen) {
 element.requestFullscreen();
 } else if (element.mozRequestFullScreen) {
 element.mozRequestFullScreen();
 } else if (element.webkitRequestFullScreen) {
 if
 (@com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()())
 element

 .webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
 else
 element.webkitRequestFullScreen();
 } else if (element.msRequestFullscreen) {
 element.msRequestFullscreen();
 }
 } else if (fullScreenElement == element) {
 if (element.requestFullscreen) {
 $doc.cancelFullscreen();
 } else if (element.mozRequestFullScreen) {
 $doc.mozCancelFullScreen();
 } else if (element.webkitRequestFullScreen) {
 $doc.webkitCancelFullScreen();
 } else if (element.msRequestFullscreen) {
 $doc.msExitFullscreen();
 }
 }
 }-*/;


 On Wed, Oct 7, 2015 at 5:35 PM, NewbieGwtUser 
 wrote:

> if it works with JSNI API, could you please give me an example how to
> integrate it into my appli (wether in my host html page or within the java
> code of the uibinder).
>
>
>
> Le mercredi 7 octobre 2015 16:26:10 UTC+2, Thomas Broyer a écrit :
>>
>> If you mean "going fullscreen", there's an API for that <
>> https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API>
>> (see also browser support and known issues at
>> http://caniuse.com/#feat=fullscreen )
>> With GWT, you'll have to use JSNI to call those functions.
>>
>> On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser
>> wrote:
>>>
>>> Hello everybody,
>>>
>>> Actually I'm newbie in developing with gwt, and I have to add a
>>> "full screen mode" button to my gwt app
>>> and am looking for a way to fire the F11 Event.
>>>
>>> So I created a button to which I associated a UiHandler:
>>>
>>>
>>>
>>>
>>>
>>> private final int F11_KEY = 122;
>>>
>>> @UiHandler("Button")
>>> public void onKeyButtonClick(ClickEvent event){
>>> Document.get().createKeyPressEvent(false, false, false, false,
>>> F11_KEY);
>>> }
>>>
>>> but that didn't work for me,
>>>
>>> if someone could help me find the solution, I'll be very grateful.
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google
> Groups "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



 --
 Vassilis Virvilis

>>>
>>>
>>>
>>> --
>>> Vassilis Virvilis
>>>
>>> --
>>> You received this message because you are subscribed to the 

Export CellTable to Excel ? HELP!

2015-10-07 Thread Aldo Pergjergji
Hi guys, 

i'm new in GWT and i need to export my CellTable to Excel (client side)?

Any example?

Thanks

Aldo

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Template Engine?

2015-10-07 Thread Cristian Rinaldi
Hello:

Were there any plans on working with templates (not UiBinder), templates 
related how angular or aurelia work.
I think it would be desirable to have such a project, because it is closer 
to how it works naturally with HTML today, too, I believe that using 
JsInterop would not be difficult to make the databinding using 
Object.observe

Thanks

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: simulate F11 Key event with gwt

2015-10-07 Thread Vassilis Virvilis
Hi,

I am not sure something like this gonna work. Browsers won't like their
fullscreen mode being triggered by javascript.

I think that you could trigger the event if you had an event listener for
F11 that overrides browser full screen mode. In that case you could trigger
the event and have your listener fired up - but not the browser's
fullscreen mode so it's not really what you want.

   Vassilis


On Wed, Oct 7, 2015 at 5:18 PM, NewbieGwtUser  wrote:

> Hello everybody,
>
> Actually I'm newbie in developing with gwt, and I have to add a "full
> screen mode" button to my gwt app
> and am looking for a way to fire the F11 Event.
>
> So I created a button to which I associated a UiHandler:
>
>
>
>
>
> private final int F11_KEY = 122;
>
> @UiHandler("Button")
> public void onKeyButtonClick(ClickEvent event){
> Document.get().createKeyPressEvent(false, false, false, false, F11_KEY);
> }
>
> but that didn't work for me,
>
> if someone could help me find the solution, I'll be very grateful.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: simulate F11 Key event with gwt

2015-10-07 Thread NewbieGwtUser
if it works with JSNI API, could you please give me an example how to 
integrate it into my appli (wether in my host html page or within the java 
code of the uibinder).



Le mercredi 7 octobre 2015 16:26:10 UTC+2, Thomas Broyer a écrit :
>
> If you mean "going fullscreen", there's an API for that <
> https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API> (see 
> also browser support and known issues at 
> http://caniuse.com/#feat=fullscreen )
> With GWT, you'll have to use JSNI to call those functions.
>
> On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser wrote:
>>
>> Hello everybody,
>>
>> Actually I'm newbie in developing with gwt, and I have to add a "full 
>> screen mode" button to my gwt app 
>> and am looking for a way to fire the F11 Event.
>>
>> So I created a button to which I associated a UiHandler:
>>
>>
>>
>>
>>
>> private final int F11_KEY = 122; 
>>
>> @UiHandler("Button")
>> public void onKeyButtonClick(ClickEvent event){
>> Document.get().createKeyPressEvent(false, false, false, false, F11_KEY);
>> }
>>
>> but that didn't work for me,
>>
>> if someone could help me find the solution, I'll be very grateful.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: simulate F11 Key event with gwt

2015-10-07 Thread Thomas Broyer
If you mean "going fullscreen", there's an API for that 
 (see also 
browser support and known issues at http://caniuse.com/#feat=fullscreen )
With GWT, you'll have to use JSNI to call those functions.

On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser wrote:
>
> Hello everybody,
>
> Actually I'm newbie in developing with gwt, and I have to add a "full 
> screen mode" button to my gwt app 
> and am looking for a way to fire the F11 Event.
>
> So I created a button to which I associated a UiHandler:
>
>
>
>
>
> private final int F11_KEY = 122; 
>
> @UiHandler("Button")
> public void onKeyButtonClick(ClickEvent event){
> Document.get().createKeyPressEvent(false, false, false, false, F11_KEY);
> }
>
> but that didn't work for me,
>
> if someone could help me find the solution, I'll be very grateful.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: simulate F11 Key event with gwt

2015-10-07 Thread Vassilis Virvilis
Discaimer: This will make one element to go fullscreen - if you want the
full page to go full screen you will need to specify body. This is
equivalent of the HTML video player on youtube going fullscreen,

Known problems with this:

   - Safari: Keyboard on fullscreen mode is not working for security
   reasons
   - IOS Safari: Fullscreen is not working. You have to accept it is a fact
   of mac life.


I am using this:

public static native void toggleFullScreen(Element element) /*-{
var fullScreenElement = ($doc.fullScreenElement
|| $doc.mozFullScreenElement ||
$doc.webkitFullscreenElement || $doc.msFullscreenElement);

//
if (fullScreenElement == null) {
if (element.requestFullscreen) {
element.requestFullscreen();
} else if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
if
(@com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()())
element

.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
else
element.webkitRequestFullScreen();
} else if (element.msRequestFullscreen) {
element.msRequestFullscreen();
}
} else if (fullScreenElement == element) {
if (element.requestFullscreen) {
$doc.cancelFullscreen();
} else if (element.mozRequestFullScreen) {
$doc.mozCancelFullScreen();
} else if (element.webkitRequestFullScreen) {
$doc.webkitCancelFullScreen();
} else if (element.msRequestFullscreen) {
$doc.msExitFullscreen();
}
}
}-*/;


On Wed, Oct 7, 2015 at 5:35 PM, NewbieGwtUser  wrote:

> if it works with JSNI API, could you please give me an example how to
> integrate it into my appli (wether in my host html page or within the java
> code of the uibinder).
>
>
>
> Le mercredi 7 octobre 2015 16:26:10 UTC+2, Thomas Broyer a écrit :
>>
>> If you mean "going fullscreen", there's an API for that <
>> https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API> (see
>> also browser support and known issues at
>> http://caniuse.com/#feat=fullscreen )
>> With GWT, you'll have to use JSNI to call those functions.
>>
>> On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser wrote:
>>>
>>> Hello everybody,
>>>
>>> Actually I'm newbie in developing with gwt, and I have to add a "full
>>> screen mode" button to my gwt app
>>> and am looking for a way to fire the F11 Event.
>>>
>>> So I created a button to which I associated a UiHandler:
>>>
>>>
>>>
>>>
>>>
>>> private final int F11_KEY = 122;
>>>
>>> @UiHandler("Button")
>>> public void onKeyButtonClick(ClickEvent event){
>>> Document.get().createKeyPressEvent(false, false, false, false, F11_KEY);
>>> }
>>>
>>> but that didn't work for me,
>>>
>>> if someone could help me find the solution, I'll be very grateful.
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Simulate F11Key in GWT button

2015-10-07 Thread NewbieGwtUser
Hi everybody,

I'm a newbie in developing with GWT, and I'd like to create an application 
in which I want to create a button that simulate exactly the F11Key event.

Could someone tell me if is this possible or not and if yes, how ???

Thank you so much.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


simulate F11 Key event with gwt

2015-10-07 Thread NewbieGwtUser
Hello everybody,

Actually I'm newbie in developing with gwt, and I have to add a "full 
screen mode" button to my gwt app 
and am looking for a way to fire the F11 Event.

So I created a button to which I associated a UiHandler:





private final int F11_KEY = 122; 

@UiHandler("Button")
public void onKeyButtonClick(ClickEvent event){
Document.get().createKeyPressEvent(false, false, false, false, F11_KEY);
}

but that didn't work for me,

if someone could help me find the solution, I'll be very grateful.


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: simulate F11 Key event with gwt

2015-10-07 Thread Vassilis Virvilis
Obviously you will need to substitute
@com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()()
with true if you want the keyboard to work in chrome in fullscreen mode

   Vassilis

On Wed, Oct 7, 2015 at 5:46 PM, Vassilis Virvilis  wrote:

> Discaimer: This will make one element to go fullscreen - if you want the
> full page to go full screen you will need to specify body. This is
> equivalent of the HTML video player on youtube going fullscreen,
>
> Known problems with this:
>
>- Safari: Keyboard on fullscreen mode is not working for security
>reasons
>- IOS Safari: Fullscreen is not working. You have to accept it is a
>fact of mac life.
>
>
> I am using this:
>
> public static native void toggleFullScreen(Element element) /*-{
> var fullScreenElement = ($doc.fullScreenElement
> || $doc.mozFullScreenElement ||
> $doc.webkitFullscreenElement || $doc.msFullscreenElement);
>
> //
> if (fullScreenElement == null) {
> if (element.requestFullscreen) {
> element.requestFullscreen();
> } else if (element.mozRequestFullScreen) {
> element.mozRequestFullScreen();
> } else if (element.webkitRequestFullScreen) {
> if
> (@com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()())
> element
>
> .webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
> else
> element.webkitRequestFullScreen();
> } else if (element.msRequestFullscreen) {
> element.msRequestFullscreen();
> }
> } else if (fullScreenElement == element) {
> if (element.requestFullscreen) {
> $doc.cancelFullscreen();
> } else if (element.mozRequestFullScreen) {
> $doc.mozCancelFullScreen();
> } else if (element.webkitRequestFullScreen) {
> $doc.webkitCancelFullScreen();
> } else if (element.msRequestFullscreen) {
> $doc.msExitFullscreen();
> }
> }
> }-*/;
>
>
> On Wed, Oct 7, 2015 at 5:35 PM, NewbieGwtUser 
> wrote:
>
>> if it works with JSNI API, could you please give me an example how to
>> integrate it into my appli (wether in my host html page or within the java
>> code of the uibinder).
>>
>>
>>
>> Le mercredi 7 octobre 2015 16:26:10 UTC+2, Thomas Broyer a écrit :
>>>
>>> If you mean "going fullscreen", there's an API for that <
>>> https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API> (see
>>> also browser support and known issues at
>>> http://caniuse.com/#feat=fullscreen )
>>> With GWT, you'll have to use JSNI to call those functions.
>>>
>>> On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser wrote:

 Hello everybody,

 Actually I'm newbie in developing with gwt, and I have to add a "full
 screen mode" button to my gwt app
 and am looking for a way to fire the F11 Event.

 So I created a button to which I associated a UiHandler:





 private final int F11_KEY = 122;

 @UiHandler("Button")
 public void onKeyButtonClick(ClickEvent event){
 Document.get().createKeyPressEvent(false, false, false, false, F11_KEY);
 }

 but that didn't work for me,

 if someone could help me find the solution, I'll be very grateful.


 --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Vassilis Virvilis
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Is there any integration between GWT and Google Web Designer ?

2015-10-07 Thread yves
Hi

It is not about the old GWT Designer but well about this tool 
https://www.google.com/webdesigner/ !

I don't use Google Web Designer, but I wonder if there might be any mean to 
produce GWT compatbile code with this tool ?

Thanks
Yves

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there any integration between GWT and Google Web Designer ?

2015-10-07 Thread Alain Ekambi
I don't know the tool but if it produces html CSS it should be possible to
integrate that into GWT
On 7 Oct 2015 18:02, "yves"  wrote:

> Hi
>
> It is not about the old GWT Designer but well about this tool
> https://www.google.com/webdesigner/ !
>
> I don't use Google Web Designer, but I wonder if there might be any mean
> to produce GWT compatbile code with this tool ?
>
> Thanks
> Yves
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: simulate F11 Key event with gwt

2015-10-07 Thread Juan Pablo Gardella
Do you know why "supportsKeysInFullScreenMode()()"  requires double '()'?

On 7 October 2015 at 09:49, Vassilis Virvilis  wrote:

> Obviously you will need to substitute
> @com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()()
> with true if you want the keyboard to work in chrome in fullscreen mode
>
>Vassilis
>
> On Wed, Oct 7, 2015 at 5:46 PM, Vassilis Virvilis 
> wrote:
>
>> Discaimer: This will make one element to go fullscreen - if you want the
>> full page to go full screen you will need to specify body. This is
>> equivalent of the HTML video player on youtube going fullscreen,
>>
>> Known problems with this:
>>
>>- Safari: Keyboard on fullscreen mode is not working for security
>>reasons
>>- IOS Safari: Fullscreen is not working. You have to accept it is a
>>fact of mac life.
>>
>>
>> I am using this:
>>
>> public static native void toggleFullScreen(Element element) /*-{
>> var fullScreenElement = ($doc.fullScreenElement
>> || $doc.mozFullScreenElement ||
>> $doc.webkitFullscreenElement || $doc.msFullscreenElement);
>>
>> //
>> if (fullScreenElement == null) {
>> if (element.requestFullscreen) {
>> element.requestFullscreen();
>> } else if (element.mozRequestFullScreen) {
>> element.mozRequestFullScreen();
>> } else if (element.webkitRequestFullScreen) {
>> if
>> (@com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()())
>> element
>>
>> .webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
>> else
>> element.webkitRequestFullScreen();
>> } else if (element.msRequestFullscreen) {
>> element.msRequestFullscreen();
>> }
>> } else if (fullScreenElement == element) {
>> if (element.requestFullscreen) {
>> $doc.cancelFullscreen();
>> } else if (element.mozRequestFullScreen) {
>> $doc.mozCancelFullScreen();
>> } else if (element.webkitRequestFullScreen) {
>> $doc.webkitCancelFullScreen();
>> } else if (element.msRequestFullscreen) {
>> $doc.msExitFullscreen();
>> }
>> }
>> }-*/;
>>
>>
>> On Wed, Oct 7, 2015 at 5:35 PM, NewbieGwtUser 
>> wrote:
>>
>>> if it works with JSNI API, could you please give me an example how to
>>> integrate it into my appli (wether in my host html page or within the java
>>> code of the uibinder).
>>>
>>>
>>>
>>> Le mercredi 7 octobre 2015 16:26:10 UTC+2, Thomas Broyer a écrit :

 If you mean "going fullscreen", there's an API for that <
 https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API> (see
 also browser support and known issues at
 http://caniuse.com/#feat=fullscreen )
 With GWT, you'll have to use JSNI to call those functions.

 On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser wrote:
>
> Hello everybody,
>
> Actually I'm newbie in developing with gwt, and I have to add a "full
> screen mode" button to my gwt app
> and am looking for a way to fire the F11 Event.
>
> So I created a button to which I associated a UiHandler:
>
>
>
>
>
> private final int F11_KEY = 122;
>
> @UiHandler("Button")
> public void onKeyButtonClick(ClickEvent event){
> Document.get().createKeyPressEvent(false, false, false, false,
> F11_KEY);
> }
>
> but that didn't work for me,
>
> if someone could help me find the solution, I'll be very grateful.
>
>
> --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Vassilis Virvilis
>>
>
>
>
> --
> Vassilis Virvilis
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To 

Re: simulate F11 Key event with gwt

2015-10-07 Thread Thomas Broyer
JSNI: the first "()" is part of the method signature (formal parameters), 
the second one is for calling the method (actual argument values).

On Wednesday, October 7, 2015 at 5:58:50 PM UTC+2, Juan Pablo Gardella 
wrote:
>
> Do you know why "supportsKeysInFullScreenMode()()"  requires double '()'?
>
> On 7 October 2015 at 09:49, Vassilis Virvilis  wrote:
>
>> Obviously you will need to substitute 
>> @com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()() 
>> with true if you want the keyboard to work in chrome in fullscreen mode
>>
>>Vassilis
>>
>> On Wed, Oct 7, 2015 at 5:46 PM, Vassilis Virvilis  
>> wrote:
>>
>>> Discaimer: This will make one element to go fullscreen - if you want the 
>>> full page to go full screen you will need to specify body. This is 
>>> equivalent of the HTML video player on youtube going fullscreen,
>>>
>>> Known problems with this:
>>>
>>>- Safari: Keyboard on fullscreen mode is not working for security 
>>>reasons 
>>>- IOS Safari: Fullscreen is not working. You have to accept it is a 
>>>fact of mac life. 
>>>
>>>
>>> I am using this:
>>>
>>> public static native void toggleFullScreen(Element element) /*-{
>>> var fullScreenElement = ($doc.fullScreenElement
>>> || $doc.mozFullScreenElement || 
>>> $doc.webkitFullscreenElement || $doc.msFullscreenElement);
>>>
>>> //
>>> if (fullScreenElement == null) {
>>> if (element.requestFullscreen) {
>>> element.requestFullscreen();
>>> } else if (element.mozRequestFullScreen) {
>>> element.mozRequestFullScreen();
>>> } else if (element.webkitRequestFullScreen) {
>>> if 
>>> (@com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()())
>>> element
>>> 
>>> .webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
>>> else
>>> element.webkitRequestFullScreen();
>>> } else if (element.msRequestFullscreen) {
>>> element.msRequestFullscreen();
>>> }
>>> } else if (fullScreenElement == element) {
>>> if (element.requestFullscreen) {
>>> $doc.cancelFullscreen();
>>> } else if (element.mozRequestFullScreen) {
>>> $doc.mozCancelFullScreen();
>>> } else if (element.webkitRequestFullScreen) {
>>> $doc.webkitCancelFullScreen();
>>> } else if (element.msRequestFullscreen) {
>>> $doc.msExitFullscreen();
>>> }
>>> }
>>> }-*/;
>>>
>>>
>>> On Wed, Oct 7, 2015 at 5:35 PM, NewbieGwtUser  
>>> wrote:
>>>
 if it works with JSNI API, could you please give me an example how to 
 integrate it into my appli (wether in my host html page or within the java 
 code of the uibinder).



 Le mercredi 7 octobre 2015 16:26:10 UTC+2, Thomas Broyer a écrit :
>
> If you mean "going fullscreen", there's an API for that <
> https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API> (see 
> also browser support and known issues at 
> http://caniuse.com/#feat=fullscreen )
> With GWT, you'll have to use JSNI to call those functions.
>
> On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser wrote:
>>
>> Hello everybody,
>>
>> Actually I'm newbie in developing with gwt, and I have to add a 
>> "full screen mode" button to my gwt app 
>> and am looking for a way to fire the F11 Event.
>>
>> So I created a button to which I associated a UiHandler:
>>
>>
>>
>>
>>
>> private final int F11_KEY = 122; 
>>
>> @UiHandler("Button")
>> public void onKeyButtonClick(ClickEvent event){
>> Document.get().createKeyPressEvent(false, false, false, false, 
>> F11_KEY);
>> }
>>
>> but that didn't work for me,
>>
>> if someone could help me find the solution, I'll be very grateful.
>>
>>
>> -- 
 You received this message because you are subscribed to the Google 
 Groups "GWT Users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to 
 google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> -- 
>>> Vassilis Virvilis
>>>
>>
>>
>>
>> -- 
>> Vassilis Virvilis
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send