Author: [EMAIL PROTECTED]
Date: Tue Dec 2 10:22:02 2008
New Revision: 4223
Modified:
releases/1.6/user/javadoc/com/google/gwt/examples/LazyPanelExample.java
Log:
Per jlabanca's review feedback, lowered cuteness and explained
setVisible(false) call.
reviewed by jlabanca
submitted by rjrjr
Modified:
releases/1.6/user/javadoc/com/google/gwt/examples/LazyPanelExample.java
==============================================================================
--- releases/1.6/user/javadoc/com/google/gwt/examples/LazyPanelExample.java
(original)
+++ releases/1.6/user/javadoc/com/google/gwt/examples/LazyPanelExample.java
Tue Dec 2 10:22:02 2008
@@ -26,10 +26,7 @@
public class LazyPanelExample implements EntryPoint {
- /**
- * A friendly little LazyPanel.
- */
- static class HelloLazy extends LazyPanel {
+ private static class HelloLazyPanel extends LazyPanel {
@Override
protected Widget createWidget() {
return new Label("Well hello there!");
@@ -37,7 +34,10 @@
}
public void onModuleLoad() {
- final Widget lazy = new HelloLazy();
+ final Widget lazy = new HelloLazyPanel();
+
+ // Not strictly necessary, but keeps the empty outer div
+ // from effecting layout before it is of any use
lazy.setVisible(false);
PushButton b = new PushButton("Click me");
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---