File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes How come static interfaces in GWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How come static interfaces in GWT" Watch "How come static interfaces in GWT" New topic

How come static interfaces in GWT

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 203
I have never heard of static interfaces in java. i thought top level classes and interfaces can never be static.

i visited the google site to see the widget code and i was surprised to see static interfaces. Just browse to the following url and goto source code to check the source of the wiget CheckBox.

check this out

Is this not java
David Newton

Joined: Sep 29, 2008
Posts: 12617

Bear in mind that client-side code is compiled into JavaScript. If I have to guess (and I'm guessing) I'd say it's something that allows different behavior on the JavaScript side. It might be interesting to compare the difference in JavaScript code with and without the static modifier.
I agree. Here's the link:
subject: How come static interfaces in GWT
It's not a secret anymore!