Reviewers: jgw,

Description:
This patch tweaks a couple of minor issues in showcase.
1. In the StackPanel example, the tree in the first stack should be open
by default.

2. In the DatePicker sample, the DateBox should only include the date
component.  The time component of the date has very little significance
in a DatePicker and always appears as noon.

Testing:
=======
Verified manually.

Please review this at http://gwt-code-reviews.appspot.com/118806

Affected files:
    
samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwStackPanel.java
    
samples/showcase/src/com/google/gwt/sample/showcase/client/content/widgets/CwDatePicker.java


Index:  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/widgets/CwDatePicker.java
===================================================================
---  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/widgets/CwDatePicker.java
     
(revision 7242)
+++  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/widgets/CwDatePicker.java
     
(working copy)
@@ -107,7 +107,9 @@
      datePicker.setValue(new Date(), true);

      // Create a DateBox
+    DateTimeFormat dateFormat = DateTimeFormat.getLongDateFormat();
      DateBox dateBox = new DateBox();
+    dateBox.setFormat(new DateBox.DefaultFormat(dateFormat));

      // Combine the widgets into a panel and return them
      VerticalPanel vPanel = new VerticalPanel();
Index:  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwStackPanel.java
===================================================================
---  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwStackPanel.java
       
(revision 7242)
+++  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwStackPanel.java
       
(working copy)
@@ -269,6 +269,7 @@
      addItem(mailPanelRoot, images.templates(), mailFolders[2]);
      addItem(mailPanelRoot, images.sent(), mailFolders[3]);
      addItem(mailPanelRoot, images.trash(), mailFolders[4]);
+    mailPanelRoot.setState(true);
      return mailPanel;
    }



-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to