KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > swing > data > DefaultDataModelTest


1 /*
2  * Created on 17.12.2004
3  *
4  */

5 package org.jdesktop.swing.data;
6
7 /**
8  * @author (C) 2004 Jeanette Winzenburg, Berlin
9  * @version $Revision: 1.3 $ - $Date: 2005/02/25 13:29:07 $
10  */

11 public class DefaultDataModelTest extends AbstractDataModelTst {
12
13     protected DataModel createDataModelWithValidator(boolean valid) {
14         DataModel dataModel = TestDataModelFactory.createDataModelWithValidator(valid);
15         return dataModel;
16     }
17
18     protected DataModel createEmptyDataModel(MetaData[] metaData, int rowCount) {
19         DataModel model = new DefaultDataModel(metaData);
20         return model;
21     }
22
23     protected boolean supportsEmptySelection() {
24         return false;
25     }
26
27     protected boolean guaranteeNonEmptySelection(DataModel model) {
28         return true;
29
30     }
31     protected DataModel createFilledDataModel() {
32         return TestDataModelFactory.createFilledPersonModel(true);
33     }
34
35 }
36
Popular Tags