SmComboBoxDatasetType

SmComboBoxDatasetType 是数据集类型选择器,用于指定数据集类型。其接口说明可参见SmComboBoxDatasetType 接口

示范代码

SmComboBoxDatasetType 控件使用的示例代码片段如下,完整代码请参见SmComboBoxDatasource页面:

  
this.labelDatasetType = new JLabel("数据集类型:");
this.smComboBoxDatasetType = new SmComboBoxDatasetType();
//设置是否显示“简单数据集”选项,默认不显示
this.smComboBoxDatasetType.setHasSimpleDataset(true);
//设置是否显示“所有数据集”选项,默认不显示
this.smComboBoxDatasetType.setHasAll(false);
//设置支持的数据集类型,此处设置为点、线、面数据集
this.smComboBoxDatasetType.setSupportedDatasetTypes(DatasetType.REGION,DatasetType.LINE,DatasetType.POINT);
      

SmComboBoxDatasetType 控件显示效果如下: