This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.google.gwt.emultest.java.util.stream; | |
import com.google.gwt.emultest.java.util.EmulTestBase; | |
import java.lang.Object; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class StreamTest extends EmulTestBase { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Log { | |
/* | |
* type - is "INFO", "DEBUG", "ERROR" etc | |
* object - is an "id" of the person calling it. as a convention, I use 'this' unless it is a static method, then I pass in the class | |
* msg - the log message | |
*/ | |
public static void log(String type, Object object, String msg) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HowDoIInnerHtml implements EntryPoint { | |
@Override | |
public void onModuleLoad() { | |
Element body = Document.get().getBody(); | |
DivElement newDiv = Document.get().createDivElement(); | |
newDiv.setClassName("foo"); | |
newDiv.setInnerText("Text in the div"); | |
SpanElement newSpan = Document.get().createSpanElement(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Window.alert("about to add handlers"); | |
Window.addCloseHandler(new CloseHandler<Window>() { | |
@Override | |
public void onClose(CloseEvent<Window> event) { | |
Window.alert("close"); | |
} | |
}) ; | |
Window.addWindowClosingHandler(new ClosingHandler() { | |
@Override | |
public void onWindowClosing(ClosingEvent event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface OptionsObj { | |
public List<String> getKeys(); | |
public void setKeys(List<String> keys); | |
@PropertyName("include_docs") | |
public boolean isIncludeDocs(); | |
@PropertyName("include_docs") | |
publiv void setIncludeDocs(boolean includeDocs); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Turn on GWT logging --> | |
<set-property name="gwt.logging.logLevel" value="FINEST" /> | |
<set-property name="gwt.logging.enabled" value="TRUE" /> | |
<!-- ...except the popup handler, which is just about useless --> | |
<set-property name="gwt.logging.popupHandler" value="DISABLED" /> | |
<!-- optional: turn on gxt internal logging --> | |
<set-property name="gxt.logging.enabled" value="true" /> | |
<!-- emulated stack traces so you can see the full error --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyGinModule extends AbstractGinModule { | |
public void configure() { | |
//... | |
//OPTION 1 part 1 | |
bind(Scheduler.class).toProvider(MySchedulerProvider.class); | |
//... | |
} | |
//OPTION 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample implements IsWidget { | |
private final Binder binder = GWT.create(Binder.class); | |
private Widget root; | |
@UiField(provided=true) MyBundle bundle = GWT.create(MyBundle.class); | |
public Sample() { | |
//first, provided items | |
bundle.myCss().ensureInjected(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: pom.xml | |
=================================================================== | |
--- pom.xml (revision 1297) | |
+++ pom.xml (working copy) | |
@@ -139,7 +139,7 @@ | |
<dependency> | |
<groupId>com.extjs</groupId> | |
<artifactId>gxt</artifactId> | |
- <version>2.2.5-gwt22</version> | |
+ <version>2.3.0-gwt22</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling module com.sencha.gxt.test.TestRunner | |
--------------------------- | |
JAVA INITIAL: | |
--------------------------- | |
public void display(Splittable result){ | |
Window.alert("boolean value? " + result.asBoolean() + "\n" + "is null? " + (result == null)); | |
} | |
--------------------------- | |
FinalizeVisitor: | |
--------------------------- |