Source Code Cross Referenced for ScreenManager.java in  » Ajax » gwtext-2.01 » com » gwtext » sample » showcase2 » client » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » gwtext 2.01 » com.gwtext.sample.showcase2.client 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * GWT-Ext Widget Library
003:         * Copyright(c) 2007-2008, GWT-Ext.
004:         * licensing@gwt-ext.com
005:         * 
006:         * http://www.gwt-ext.com/license
007:         */
008:        package com.gwtext.sample.showcase2.client;
009:
010:        import com.google.gwt.user.client.DOM;
011:        import com.google.gwt.user.client.History;
012:        import com.gwtext.client.core.EventCallback;
013:        import com.gwtext.client.core.EventObject;
014:        import com.gwtext.client.core.Function;
015:        import com.gwtext.client.data.*;
016:        import com.gwtext.client.util.DelayedTask;
017:        import com.gwtext.client.util.Format;
018:        import com.gwtext.client.widgets.*;
019:        import com.gwtext.client.widgets.event.ButtonListenerAdapter;
020:        import com.gwtext.client.widgets.form.TextField;
021:        import com.gwtext.client.widgets.form.event.TextFieldListenerAdapter;
022:        import com.gwtext.client.widgets.layout.AccordionLayout;
023:        import com.gwtext.client.widgets.layout.FitLayout;
024:        import com.gwtext.client.widgets.tree.TreeFilter;
025:        import com.gwtext.client.widgets.tree.TreeNode;
026:        import com.gwtext.client.widgets.tree.TreePanel;
027:        import com.gwtext.client.widgets.tree.TreeTraversalCallback;
028:        import com.gwtext.client.widgets.tree.event.TreeNodeListenerAdapter;
029:        import com.gwtext.sample.showcase2.client.button.ButtonsSample;
030:        import com.gwtext.sample.showcase2.client.button.CycleButtonSample;
031:        import com.gwtext.sample.showcase2.client.button.MenuButtonSample;
032:        import com.gwtext.sample.showcase2.client.button.ToggleButtonSample;
033:        import com.gwtext.sample.showcase2.client.chooser.ImageChooserSample;
034:        import com.gwtext.sample.showcase2.client.combination.ChartGeneratorSample;
035:        import com.gwtext.sample.showcase2.client.combo.*;
036:        import com.gwtext.sample.showcase2.client.dd.BasicDDSample;
037:        import com.gwtext.sample.showcase2.client.dd.BasicOnTopSample;
038:        import com.gwtext.sample.showcase2.client.form.*;
039:        import com.gwtext.sample.showcase2.client.grid.*;
040:        import com.gwtext.sample.showcase2.client.layout.*;
041:        import com.gwtext.sample.showcase2.client.misc.ColorPaletteSample;
042:        import com.gwtext.sample.showcase2.client.misc.DatePickerSample;
043:        import com.gwtext.sample.showcase2.client.misc.MaskingSample;
044:        import com.gwtext.sample.showcase2.client.misc.ProgressBarSample;
045:        import com.gwtext.sample.showcase2.client.panel.PanelsSample;
046:        import com.gwtext.sample.showcase2.client.tabs.BottomTabPanelSample;
047:        import com.gwtext.sample.showcase2.client.tabs.TabPanelSample;
048:        import com.gwtext.sample.showcase2.client.toolbar.ToolbarSample;
049:        import com.gwtext.sample.showcase2.client.tooltip.ToolTipTypesSample;
050:        import com.gwtext.sample.showcase2.client.tree.*;
051:        import com.gwtext.sample.showcase2.client.view.DataViewSample;
052:        import com.gwtext.sample.showcase2.client.window.LayoutWindowSample;
053:        import com.gwtext.sample.showcase2.client.window.MessageBoxSample;
054:
055:        import java.util.ArrayList;
056:        import java.util.List;
057:
058:        public class ScreenManager {
059:
060:            private static Store store;
061:            private TabPanel appTabPanel;
062:            private TextField searchField;
063:            private TreeFilter treeFilter;
064:            private TreePanel treePanel;
065:            private DelayedTask delayedTask = new DelayedTask();
066:
067:            public ScreenManager(TabPanel tabPanel) {
068:                this .appTabPanel = tabPanel;
069:            }
070:
071:            public Panel getAccordionNav() {
072:                Panel accordion = new Panel();
073:                accordion.setTitle("Accordion");
074:                accordion.setLayout(new AccordionLayout(true));
075:
076:                Store store = getStore();
077:
078:                Record[] records = store.getRecords();
079:                for (int i = 0; i < records.length; i++) {
080:                    Record record = records[i];
081:
082:                    String id = record.getAsString("id");
083:                    final String category = record.getAsString("category");
084:                    String title = record.getAsString("title");
085:                    final String iconCls = record.getAsString("iconCls");
086:
087:                    String thumbnail = record.getAsString("thumbnail");
088:                    String qtip = record.getAsString("qtip");
089:
090:                    final ShowcasePanel panel = (ShowcasePanel) record
091:                            .getAsObject("screen");
092:
093:                    if (category == null) {
094:                        Panel categoryPanel = new Panel();
095:                        categoryPanel.setAutoScroll(true);
096:                        categoryPanel.setLayout(new FitLayout());
097:                        categoryPanel.setId(id + "-acc");
098:                        categoryPanel.setTitle(title);
099:                        categoryPanel.setIconCls(iconCls);
100:                        accordion.add(categoryPanel);
101:                    } else {
102:                        Panel categoryPanel = (Panel) accordion
103:                                .findByID(category + "-acc");
104:                        TreePanel treePanel = (TreePanel) categoryPanel
105:                                .findByID(category + "-acc-tree");
106:                        TreeNode root = null;
107:                        if (treePanel == null) {
108:                            treePanel = new TreePanel();
109:                            treePanel.setAutoScroll(true);
110:                            treePanel.setId(category + "-acc-tree");
111:                            treePanel.setRootVisible(false);
112:                            root = new TreeNode();
113:                            treePanel.setRootNode(root);
114:                            categoryPanel.add(treePanel);
115:                        } else {
116:                            root = treePanel.getRootNode();
117:                        }
118:
119:                        TreeNode node = new TreeNode();
120:                        node.setText(title);
121:                        node.setId(id);
122:                        if (iconCls != null)
123:                            node.setIconCls(iconCls);
124:                        if (qtip != null)
125:                            node.setTooltip(qtip);
126:                        root.appendChild(node);
127:
128:                        addNodeClickListener(node, panel, iconCls);
129:                    }
130:                }
131:
132:                return accordion;
133:            }
134:
135:            private void addNodeClickListener(TreeNode node, final Panel panel,
136:                    final String iconCls) {
137:                if (panel != null) {
138:                    node.addListener(new TreeNodeListenerAdapter() {
139:                        public void onClick(Node node, EventObject e) {
140:                            String panelID = panel.getId();
141:                            if (appTabPanel.hasItem(panelID)) {
142:                                showScreen(panel, null, null, node.getId());
143:                            } else {
144:                                TreeNode treeNode = (TreeNode) node;
145:                                panel.setTitle(treeNode.getText());
146:                                String nodeIconCls = iconCls;
147:                                if (iconCls == null) {
148:                                    nodeIconCls = ((TreeNode) treeNode
149:                                            .getParentNode()).getIconCls();
150:                                }
151:                                showScreen(panel, treeNode.getText(),
152:                                        nodeIconCls, node.getId());
153:                            }
154:                        }
155:                    });
156:                }
157:            }
158:
159:            public void showScreen(String historyToken) {
160:                if (historyToken == null || historyToken.equals("")) {
161:                    appTabPanel.activate(0);
162:                } else {
163:                    Record record = store.getById(historyToken);
164:                    if (record != null) {
165:                        ShowcasePanel panel = (ShowcasePanel) record
166:                                .getAsObject("screen");
167:                        String title = record.getAsString("title");
168:                        String iconCls = record.getAsString("iconCls");
169:                        showScreen(panel, title, iconCls, historyToken);
170:                    }
171:                }
172:            }
173:
174:            public void showScreen(Panel panel, String title, String iconCls,
175:                    String screenName) {
176:                String panelID = panel.getId();
177:                if (appTabPanel.hasItem(panelID)) {
178:                    appTabPanel.scrollToTab(panel, true);
179:                    appTabPanel.activate(panelID);
180:                } else {
181:                    if (!panel.isRendered()) {
182:                        panel.setTitle(title);
183:                        if (iconCls == null) {
184:                            iconCls = "plugins-nav-icon";
185:                        }
186:                        panel.setIconCls(iconCls);
187:                    }
188:                    appTabPanel.add(panel);
189:                    appTabPanel.activate(panel.getId());
190:                }
191:                History.newItem(screenName);
192:            }
193:
194:            public TreePanel getTreeNav() {
195:                treePanel = new TreePanel();
196:                treePanel.setTitle("Tree View");
197:                treePanel.setId("nav-tree");
198:                treePanel.setWidth(180);
199:                treePanel.setCollapsible(true);
200:                treePanel.setAnimate(true);
201:                treePanel.setEnableDD(false);
202:                treePanel.setAutoScroll(true);
203:                treePanel.setContainerScroll(true);
204:                treePanel.setRootVisible(false);
205:                treePanel.setBorder(false);
206:                treePanel.setTopToolbar(getFilterToolbar());
207:
208:                TreeNode root = new TreeNode("Showcase Explorer");
209:                treePanel.setRootNode(root);
210:
211:                Store store = getStore();
212:
213:                Record[] records = store.getRecords();
214:                for (int i = 0; i < records.length; i++) {
215:                    Record record = records[i];
216:
217:                    String id = record.getAsString("id");
218:                    final String category = record.getAsString("category");
219:                    String title = record.getAsString("title");
220:                    final String iconCls = record.getAsString("iconCls");
221:
222:                    String thumbnail = record.getAsString("thumbnail");
223:                    String qtip = record.getAsString("qtip");
224:
225:                    final ShowcasePanel panel = (ShowcasePanel) record
226:                            .getAsObject("screen");
227:
228:                    TreeNode node = new TreeNode(title);
229:                    node.setId(id);
230:                    if (iconCls != null)
231:                        node.setIconCls(iconCls);
232:                    if (qtip != null)
233:                        node.setTooltip(qtip);
234:                    if (category == null || category.equals("")) {
235:                        root.appendChild(node);
236:                    } else {
237:                        Node categoryNode = root
238:                                .findChildBy(new NodeTraversalCallback() {
239:                                    public boolean execute(Node node) {
240:                                        return node.getId().equals(category);
241:                                    }
242:                                });
243:
244:                        if (categoryNode != null) {
245:                            categoryNode.appendChild(node);
246:                        }
247:                    }
248:                    addNodeClickListener(node, panel, iconCls);
249:                }
250:                treeFilter = new TreeFilter(treePanel);
251:                return treePanel;
252:            }
253:
254:            private void onSearchChange(final boolean filteredOnly) {
255:                final String filter = searchField.getText();
256:                if (filter == null || filter.equals("")) {
257:                    treeFilter.clear();
258:                    treeFilter.filterBy(new TreeTraversalCallback() {
259:                        public boolean execute(TreeNode node) {
260:                            node.setText(Format.stripTags(node.getText()));
261:                            return true;
262:                        }
263:                    });
264:                } else {
265:                    treeFilter.filterBy(new TreeTraversalCallback() {
266:                        public boolean execute(TreeNode node) {
267:                            String text = Format.stripTags(node.getText());
268:                            node.setText(text);
269:                            if (text.toLowerCase()
270:                                    .indexOf(filter.toLowerCase()) != -1) {
271:                                node.setText("<b>" + text + "</b>");
272:                                ((TreeNode) node.getParentNode()).expand();
273:                                return true;
274:                            } else {
275:                                final List childMatches = new ArrayList();
276:                                node.cascade(new NodeTraversalCallback() {
277:                                    public boolean execute(
278:                                            com.gwtext.client.data.Node node) {
279:                                        String childText = ((TreeNode) node)
280:                                                .getText();
281:                                        if (childText.toLowerCase().indexOf(
282:                                                filter.toLowerCase()) != -1) {
283:                                            childMatches.add(new Object());
284:                                        }
285:                                        return true;
286:                                    }
287:                                });
288:                                return !filteredOnly
289:                                        || childMatches.size() != 0;
290:                            }
291:                        }
292:                    });
293:                }
294:            }
295:
296:            private Toolbar getFilterToolbar() {
297:                final Toolbar filterToolbar = new Toolbar();
298:                ToolbarButton funnelButton = new ToolbarButton();
299:
300:                funnelButton
301:                        .setTooltip("Tree filtering is currently OFF<br>Click to turn Tree filtering <b>ON</b>");
302:                funnelButton.setCls("x-btn-icon filter-btn");
303:                funnelButton.setEnableToggle(true);
304:                funnelButton.addListener(new ButtonListenerAdapter() {
305:                    public void onToggle(Button button, boolean pressed) {
306:                        if (pressed) {
307:                            DOM.setStyleAttribute(button.getButtonElement(),
308:                                    "backgroundImage",
309:                                    "url(images/funnel_X.gif)");
310:                            button
311:                                    .setTooltip("Tree filtering is currently ON<br>Click to turn Tree filtering <b>OFF</b>");
312:                            onSearchChange(true);
313:                        } else {
314:                            DOM.setStyleAttribute(button.getButtonElement(),
315:                                    "backgroundImage",
316:                                    "url(images/funnel_plus.gif)");
317:                            button
318:                                    .setTooltip("Tree filtering is currently OFF<br>Click to turn Tree filtering <b>ON</b>");
319:                            treeFilter.clear();
320:                            onSearchChange(false);
321:                        }
322:                    }
323:                });
324:                filterToolbar.addButton(funnelButton);
325:
326:                searchField = new TextField();
327:                searchField.setWidth(120);
328:                searchField.setMaxLength(40);
329:                searchField.setGrow(false);
330:                searchField.setSelectOnFocus(true);
331:
332:                searchField.addListener(new TextFieldListenerAdapter() {
333:                    public void onRender(Component component) {
334:                        searchField.getEl().addListener("keyup",
335:                                new EventCallback() {
336:                                    public void execute(EventObject e) {
337:                                        delayedTask.delay(500, new Function() {
338:                                            public void execute() {
339:                                                onSearchChange(false);
340:                                            }
341:                                        });
342:                                    }
343:                                });
344:                    }
345:                });
346:
347:                filterToolbar.addField(searchField);
348:                filterToolbar.addFill();
349:
350:                ToolbarButton expandButton = new ToolbarButton();
351:                expandButton.setCls("x-btn-icon expand-all-btn");
352:                expandButton.setTooltip("Expand All");
353:                expandButton.addListener(new ButtonListenerAdapter() {
354:                    public void onClick(Button button, EventObject e) {
355:                        treePanel.expandAll();
356:                    }
357:                });
358:                filterToolbar.addButton(expandButton);
359:
360:                ToolbarButton collapseButton = new ToolbarButton();
361:                collapseButton.setCls("x-btn-icon collapse-all-btn");
362:                collapseButton.setTooltip("Collapse All");
363:                collapseButton.addListener(new ButtonListenerAdapter() {
364:                    public void onClick(Button button, EventObject e) {
365:                        treePanel.collapseAll();
366:                    }
367:                });
368:
369:                filterToolbar.addButton(collapseButton);
370:                return filterToolbar;
371:            }
372:
373:            public static Store getStore() {
374:                if (store == null) {
375:                    MemoryProxy proxy = new MemoryProxy(getData());
376:
377:                    RecordDef recordDef = new RecordDef(new FieldDef[] {
378:                            new StringFieldDef("id"),
379:                            new StringFieldDef("category"),
380:                            new StringFieldDef("title"),
381:                            new StringFieldDef("iconCls"),
382:                            new StringFieldDef("thumbnail"),
383:                            new StringFieldDef("qtip"),
384:                            new ObjectFieldDef("screen") });
385:
386:                    ArrayReader reader = new ArrayReader(0, recordDef);
387:                    store = new Store(proxy, reader);
388:                    store.load();
389:                }
390:                return store;
391:            }
392:
393:            private static Object[][] getData() {
394:                return new Object[][] {
395:
396:                        new Object[] { "tree-category", null, "Tree",
397:                                "tree-category-icon", null, null, null },
398:                        new Object[] { "editableTree", "tree-category",
399:                                "Editable Tree", null,
400:                                "images/thumbnails/tree/editable.gif", null,
401:                                new EditableTreePanel() },
402:                        new Object[] { "checkboxTree", "tree-category",
403:                                "Checkbox Tree", null, null, null,
404:                                new CheckboxTreePanel() },
405:                        new Object[] { "sortMultiSelectTree", "tree-category",
406:                                "Sort &amp; Multi-Select", null, null, null,
407:                                new SortableMultiSelectTreeSample() },
408:                        new Object[] { "twoTrees", "tree-category",
409:                                "Tree to Tree Drag &amp; Drop", null,
410:                                "images/thumbnails/tree/two-tree.gif", null,
411:                                new TwoTreesSample() },
412:                        new Object[] { "gridDD", "tree-category",
413:                                "Grid - Tree Drag &amp; Drop", null,
414:                                "images/thumbnails/tree/grid-tree.gif", null,
415:                                new GridTreeDDSample() },
416:
417:                        new Object[] { "buttons-category", null, "Buttons",
418:                                "buttons-category-icon", null, null, null },
419:                        new Object[] { "buttons", "buttons-category",
420:                                "Simple Buttons", null, null, null,
421:                                new ButtonsSample() },
422:                        new Object[] { "cycleButton", "buttons-category",
423:                                "Cycle Button", null, null, null,
424:                                new CycleButtonSample() },
425:                        new Object[] { "menuButton", "buttons-category",
426:                                "Menu Button", null,
427:                                "images/thumbnails/button/button-menu.gif",
428:                                null, new MenuButtonSample() },
429:                        new Object[] { "toggleButtons", "buttons-category",
430:                                "Toggle Buttons", null, null, null,
431:                                new ToggleButtonSample() },
432:
433:                        new Object[] { "layouts-category", null, "Layouts",
434:                                "layout-category-icon", null, null, null },
435:                        new Object[] { "horizontalLayout", "layouts-category",
436:                                "Horizontal Layout", null, null, null,
437:                                new HorizontalLayoutSample() },
438:                        new Object[] { "verticalLayout", "layouts-category",
439:                                "Vertical Layout", null, null, null,
440:                                new VerticalLayoutSample() },
441:                        new Object[] { "hvLayout", "layouts-category",
442:                                "Horizontal &amp Vertical Layout", null, null,
443:                                null, new HorizontalVerticalLayoutSample() },
444:                        new Object[] { "accordionLayout", "layouts-category",
445:                                "Accordion Layout", null,
446:                                "images/thumbnails/layout/accordion.gif", null,
447:                                new AccordionLayoutSample() },
448:                        new Object[] { "anchorLayout", "layouts-category",
449:                                "Anchor Layout", null, null, null,
450:                                new AnchorSample() },
451:                        new Object[] { "columnPctLayout", "layouts-category",
452:                                "Column Layout - Pct Only", null, null, null,
453:                                new ColumnPctSample() },
454:                        new Object[] { "columnMixedLayout", "layouts-category",
455:                                "Column Layout - Mixed", null, null, null,
456:                                new ColumnMixedSample() },
457:                        new Object[] { "combinedLayout", "layouts-category",
458:                                "Combined Layouts", null, null, null,
459:                                new CombinedLayoutSample() },
460:                        new Object[] { "complexLayout", "layouts-category",
461:                                "Complex Layout", null,
462:                                "images/thumbnails/layout/complex.gif", null,
463:                                new ComplexSample() },
464:                        new Object[] { "tableLayout", "layouts-category",
465:                                "Table Layout", null, null, null,
466:                                new TableSample() },
467:                        new Object[] { "cardLayout", "layouts-category",
468:                                "Wizard w/ CardLayout", null, null, null,
469:                                new CardLayoutSample() },
470:                        new Object[] { "rowLayout", "layouts-category",
471:                                "Row Layout", null, null, null,
472:                                new RowLayoutSample() },
473:
474:                        new Object[] { "panels-category", null, "Panels",
475:                                "panels-category-icon", null, null, null },
476:                        new Object[] { "panels", "panels-category", "Panels",
477:                                null, "images/thumbnails/panels/panel.gif",
478:                                null, new PanelsSample() },
479:
480:                        new Object[] { "windows-category", null, "Windows",
481:                                "windows-category-icon", null, null, null },
482:                        new Object[] { "messageBox", "windows-category",
483:                                "MessageBox &amp Progress", null,
484:                                "images/thumbnails/windows/msg-box.gif", null,
485:                                new MessageBoxSample() },
486:                        new Object[] { "layoutWindow", "windows-category",
487:                                "Layout Window", null,
488:                                "images/thumbnails/windows/layout-window.gif",
489:                                null, new LayoutWindowSample() },
490:
491:                        new Object[] { "combo-category", null, "Combobox",
492:                                "combo-category-icon", null, null, null },
493:                        new Object[] { "basicComboBox", "combo-category",
494:                                "Basic ComboBox", null,
495:                                "images/thumbnails/combo/combo.gif", null,
496:                                new BasicComboBoxSample() },
497:                        new Object[] { "linkedComboBox", "combo-category",
498:                                "Linked ComboBox", null,
499:                                "images/thumbnails/combo/combo-linked.gif",
500:                                null, new LinkedComboBoxSample() },
501:                        new Object[] { "compactComboBox", "combo-category",
502:                                "Compact ComboBox", null, null, null,
503:                                new ComboBoxCompactSample() },
504:                        new Object[] { "pagingComboBox", "combo-category",
505:                                "Paging ComboBox", null,
506:                                "images/thumbnails/combo/combo-paging.gif",
507:                                null, new ComboBoxPagingSample() },
508:                        new Object[] { "styledComboBox", "combo-category",
509:                                "Styled ComboBox", null,
510:                                "images/thumbnails/combo/combo-styled.gif",
511:                                null, new ComboBoxStyledSample() },
512:                        new Object[] { "liveSearch", "combo-category",
513:                                "Live Search", null,
514:                                "images/thumbnails/combo/combo-custom.gif",
515:                                null, new LiveSearchSample() },
516:
517:                        new Object[] { "toolbar-category", null,
518:                                "Toolbar & Menu Examples",
519:                                "toolbar-category-icon", null, null, null },
520:                        new Object[] { "toolbarAndMenus", "toolbar-category",
521:                                "Toolbar & Menus", null,
522:                                "images/thumbnails/toolbar/toolbar.gif", null,
523:                                new ToolbarSample() },
524:
525:                        new Object[] { "grids-category", null, "Grids",
526:                                "grids-category-icon", null, null, null },
527:                        new Object[] { "basicArrayGrid", "grids-category",
528:                                "Basic Array Grid", null,
529:                                "images/thumbnails/grid/grid-array.gif", null,
530:                                new BasicArrayGridSample() },
531:                        new Object[] { "propertyGrid", "grids-category",
532:                                "Property Grid", null,
533:                                "images/thumbnails/grid/property.gif", null,
534:                                new PropertyGridSample() },
535:                        new Object[] { "gridGrouping", "grids-category",
536:                                "Grid Grouping", null,
537:                                "images/thumbnails/grid/grid-grouping.gif",
538:                                null, new GridGroupingSample() },
539:                        new Object[] { "checkboxSelectionGrid",
540:                                "grids-category", "Checkbox Row Selection",
541:                                null, null, null, new CheckboxSelectionSample() },
542:                        new Object[] { "numberedRowsGrid", "grids-category",
543:                                "Numbered Rows", null,
544:                                "images/thumbnails/grid/grid-numbered.gif",
545:                                null, new NumberedRowsSample() },
546:                        new Object[] { "jsonGrid", "grids-category",
547:                                "Json Grid", null, null, null,
548:                                new JsonGridSample() },
549:                        new Object[] { "localJsonGrid", "grids-category",
550:                                "Local Json Grid", null, null, null,
551:                                new LocalJsonGridSample() },
552:                        new Object[] { "localXmlGrid", "grids-category",
553:                                "Local XML Grid", null,
554:                                "images/thumbnails/grid/grid-xml.gif", null,
555:                                new LocalXmlGridSample() },
556:                        new Object[] { "editableGrid", "grids-category",
557:                                "Editable Grid", null,
558:                                "images/thumbnails/grid/grid-edit.gif", null,
559:                                new EditableGridSample() },
560:                        new Object[] { "localPagingGrid", "grids-category",
561:                                "Grid with Local Paging", null,
562:                                "images/thumbnails/grid/grid-local-paging.gif",
563:                                null, new LocalPagingSample() },
564:                        new Object[] { "remotePagingGrid", "grids-category",
565:                                "Grid with Remote Paging", null,
566:                                "images/thumbnails/grid/grid-paging.gif", null,
567:                                new RemotePagingSample() },
568:                        new Object[] { "gridEvents", "grids-category",
569:                                "Grid Events", null, null, null,
570:                                new GridEventsSample() },
571:                        new Object[] { "listGrid", "grids-category",
572:                                "Grid as List box", null, null, null,
573:                                new ListGridSample() },
574:                        new Object[] { "largeGrid", "grids-category",
575:                                "Large Grid", null, null, null,
576:                                new LargeGridSample() },
577:
578:                        new Object[] { "forms-category", null, "Forms",
579:                                "forms-category-icon", null, null, null },
580:                        new Object[] { "anchoringForm", "forms-category",
581:                                "Anchoring", null, null, null,
582:                                new AnchoringSample() },
583:                        new Object[] { "simpleForm", "forms-category",
584:                                "Simple", null, null, null,
585:                                new SimpleFormSample() },
586:                        new Object[] { "fieldSetForm", "forms-category",
587:                                "FieldSet", null,
588:                                "images/thumbnails/forms/form-fieldset.gif",
589:                                null, new FieldSetsSample() },
590:                        new Object[] {
591:                                "multiColumnForm",
592:                                "forms-category",
593:                                "Multi Column",
594:                                null,
595:                                "images/thumbnails/forms/form-multi-column.gif",
596:                                null, new MultiColumnFormPanel() },
597:                        new Object[] { "loadSubmitXmlForm", "forms-category",
598:                                "Load / Submit", null,
599:                                "images/thumbnails/forms/form-xml.gif", null,
600:                                new XmlFormSample() },
601:                        new Object[] { "multipleFieldForm", "forms-category",
602:                                "Multiple Fields on Row", null,
603:                                "images/thumbnails/forms/form-multi-field.gif",
604:                                null, new MultiFieldFormSample() },
605:                        new Object[] { "formAsTab", "forms-category",
606:                                "Form as Tab", null, null, null,
607:                                new FormAsTabSample() },
608:                        new Object[] { "formWithTab", "forms-category",
609:                                "Form with Tab", null,
610:                                "images/thumbnails/forms/form-tabs.gif", null,
611:                                new FormWithTabSample() },
612:                        new Object[] { "formGrid", "forms-category",
613:                                "Form Grid Binding", null,
614:                                "images/thumbnails/forms/form-grid.gif", null,
615:                                new FormGridSample() },
616:                        new Object[] { "itemSelectorForm", "forms-category",
617:                                "Dual Item Selector", null,
618:                                "images/thumbnails/forms/item-selector.gif",
619:                                null, new ItemSelectorSample() },
620:
621:                        new Object[] { "tabs-category", null, "Tab Panels",
622:                                "tabs-category-icon", null, null, null },
623:                        new Object[] { "dynamicTabPanel", "tabs-category",
624:                                "Dynamic Tabs", null,
625:                                "images/thumbnails/tabs/tabs-adv.gif", null,
626:                                new TabPanelSample() },
627:                        new Object[] { "bottomTabPanel", "tabs-category",
628:                                "Bottom Tabs", null,
629:                                "images/thumbnails/tabs/tabs-bottom.gif", null,
630:                                new BottomTabPanelSample() },
631:
632:                        new Object[] { "combination-category", null,
633:                                "Combination Samples",
634:                                "combination-category-icon", null, null, null },
635:                        new Object[] {
636:                                "chartGenerator",
637:                                "combination-category",
638:                                "Dion's Chart Generator",
639:                                null,
640:                                "images/thumbnails/combination/chart-generator.gif",
641:                                null, new ChartGeneratorSample() },
642:
643:                        new Object[] { "dd-category", null, "Drag & Drop",
644:                                "dd-category-icon", null, null, null },
645:                        new Object[] { "basicDD", "dd-category", "Basic", null,
646:                                null, null, new BasicDDSample() },
647:                        new Object[] { "onTopDD", "dd-category", "On Top",
648:                                null, null, null, new BasicOnTopSample() },
649:
650:                        new Object[] { "misc-category", null, "Miscellaneous",
651:                                "misc-category-icon", null, "Miscellaneous",
652:                                null },
653:                        new Object[] { "dataView", "misc-category",
654:                                "Data View", "dataview-nav-icon", null, null,
655:                                new DataViewSample() },
656:                        new Object[] { "progressBar", "misc-category",
657:                                "Progress Bar", "progressbar-nav-icon",
658:                                "images/thumbnails/misc/progressbar.gif", null,
659:                                new ProgressBarSample() },
660:                        new Object[] { "colorPicker", "misc-category",
661:                                "Color Picker", "colorpicker-nav-icon", null,
662:                                null, new ColorPaletteSample() },
663:                        new Object[] { "datePicker", "misc-category",
664:                                "Date Picker", "datepicker-nav-icon", null,
665:                                null, new DatePickerSample() },
666:                        new Object[] { "tooltips", "misc-category", "Tooltips",
667:                                null, "images/thumbnails/misc/tooltip.gif",
668:                                null, new ToolTipTypesSample() },
669:                        new Object[] { "mask", "misc-category", "Mask Demo",
670:                                "mask-nav-icon",
671:                                "images/thumbnails/misc/mask.gif", null,
672:                                new MaskingSample() },
673:
674:                        new Object[] { "user-category", null,
675:                                "User Contributions", "user-icon", null,
676:                                "User Contributions", null },
677:                        new Object[] { "imageChooser", "user-category",
678:                                "Image Chooser", null,
679:                                "images/thumbnails/combination/chooser.gif",
680:                                null, new ImageChooserSample() }
681:
682:                };
683:            }
684:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.