1 5 package org.jdesktop.swing.data; 6 7 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 |