Reviewers: rchandia,
Description:
Minor tweaks for dynatablerd and showcase.
Please review this at http://gwt-code-reviews.appspot.com/990801/show
Affected files:
M
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.ui.xml
M
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
M
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.ui.xml
Index:
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.ui.xml
===================================================================
---
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.ui.xml
(revision 9038)
+++
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.ui.xml
(working copy)
@@ -8,6 +8,10 @@
.thirty {
width: 30%
+ }
+
+ .table {
+ width: 100%;
}
</ui:style>
<g:DockLayoutPanel ui:field="dock" unit="EX">
@@ -29,7 +33,7 @@
</g:DockLayoutPanel>
</g:north>
<g:center>
- <cv:CellTable ui:field="table" />
+ <cv:CellTable ui:field="table" stylePrimaryName="{style.table}" />
</g:center>
</g:DockLayoutPanel>
</ui:UiBinder>
\ No newline at end of file
Index:
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
===================================================================
---
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
(revision 9038)
+++
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
(working copy)
@@ -33,6 +33,7 @@
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellList;
import
com.google.gwt.user.cellview.client.HasKeyboardPagingPolicy.KeyboardPagingPolicy;
+import
com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy.KeyboardSelectionPolicy;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.AbstractImagePrototype;
import com.google.gwt.user.client.ui.Button;
@@ -174,6 +175,7 @@
ContactDatabase.ContactInfo.KEY_PROVIDER);
cellList.setPageSize(30);
cellList.setKeyboardPagingPolicy(KeyboardPagingPolicy.INCREASE_RANGE);
+
cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.BOUND_TO_SELECTION);
// Add a selection model so we can select cells.
final SingleSelectionModel<ContactInfo> selectionModel = new
SingleSelectionModel<ContactInfo>(
Index:
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.ui.xml
===================================================================
---
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.ui.xml
(revision 9038)
+++
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.ui.xml
(working copy)
@@ -6,7 +6,6 @@
<ui:style>
.cellTable {
- height: 400px;
width: 600px;
border: 1px solid #ccc;
text-align: left;
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors