use of com.sldeditor.ui.detail.vendor.geoserver.raster.VendorOptionRasterFactory in project sldeditor by robward-scisys.
the class FieldConfigVendorOptionTest method testVendorOptionsUpdated.
/**
* Test method for
* {@link com.sldeditor.ui.detail.config.FieldConfigVendorOption#vendorOptionsUpdated(java.util.List)}.
*/
@Test
public void testVendorOptionsUpdated() {
RasterSymbolizerDetails panel = new RasterSymbolizerDetails();
VendorOptionRasterFactory vendorOptionRasterFactory = new VendorOptionRasterFactory(getClass(), panel);
// CHECKSTYLE:OFF
List<VendorOptionInterface> veList = vendorOptionRasterFactory.getVendorOptionList("com.sldeditor.ui.detail.vendor.geoserver.raster.VOGeoServerContrastEnhancementNormalizeOverall");
for (VendorOptionInterface extension : veList) {
extension.setParentPanel(panel);
}
FieldConfigVendorOption field = new FieldConfigVendorOption(new FieldConfigCommonData(Double.class, FieldIdEnum.NAME, "label", false), veList);
field.vendorOptionsUpdated(null);
field.createUI();
List<VersionData> vendorOptionVersionsList = new ArrayList<VersionData>();
vendorOptionVersionsList.add(VersionData.getLatestVersion(GeoServerVendorOption.class));
field.vendorOptionsUpdated(vendorOptionVersionsList);
}
use of com.sldeditor.ui.detail.vendor.geoserver.raster.VendorOptionRasterFactory in project sldeditor by robward-scisys.
the class RasterSymbolizerDetails method createVendorOptionPanel.
/**
* Creates the vendor option panel.
*
* @return the detail panel
*/
private void createVendorOptionPanel() {
vendorOptionRasterFactory = new VendorOptionRasterFactory(getClass(), this);
List<VendorOptionInterface> voList = vendorOptionRasterFactory.getVendorOptionList();
if (voList != null) {
for (VendorOptionInterface vendorOption : voList) {
vendorOption.setParentPanel(this);
}
}
}
Aggregations