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 BasicArrayGridSample extends ShowcasePanel {
16:
17: public String getSourceUrl() {
18: return "source/grid/BasicArrayGridSample.java.html";
19: }
20:
21: public Panel getViewPanel() {
22: if (panel == null) {
23: panel = new Panel();
24: GridPanel grid = new SampleGrid();
25: grid.setHeight(350);
26: grid.setWidth(600);
27: grid.setTitle("Array Grid");
28: panel.add(grid);
29: }
30: return panel;
31: }
32:
33: public String getIntro() {
34: return "<p>This is an example of a basic Grid. The data for a Grid comes from its backing Store. In this example, the Store is populated using local array data.</p>"
35: + "<p>Some simple Column Renderer's are also assigned to the 'Change' column to style the cell depending on the data</p> ";
36: }
37: }
|