01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.sample.showcase2.client.grid;
09:
10: import com.gwtext.client.widgets.Panel;
11: import com.gwtext.client.widgets.grid.GridPanel;
12: import com.gwtext.sample.showcase2.client.SampleGrid;
13: import com.gwtext.sample.showcase2.client.ShowcasePanel;
14:
15: public class ListGridSample extends ShowcasePanel {
16:
17: public Panel getViewPanel() {
18: if (panel == null) {
19: panel = new Panel();
20: GridPanel grid = new SampleGrid(false, new int[] { 0 });
21: grid.setHideColumnHeader(true);
22: grid.setHeight(320);
23: grid.setWidth(220);
24: grid.setIconCls(null);
25: panel.add(grid);
26: }
27: return panel;
28: }
29:
30: public String getIntro() {
31: return "<p>This is an example of a simple Grid styled as a List box by hiding the Grid's column header. This is done by calling setHideColumnHeader(true) on the GridPanel</p>";
32: }
33: }
|