use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.
the class VendorOptionFTSFactory method getFieldDataManager.
/**
* Gets the field data manager.
*
* @param fieldConfigManager the field config manager
*/
public void getFieldDataManager(GraphicPanelFieldManager fieldConfigManager) {
for (VendorOptionInterface vendorOption : vendorOptionList) {
if (vendorOption != null) {
PopulateDetailsInterface populateInterface = (PopulateDetailsInterface) vendorOption;
fieldConfigManager.add(populateInterface.getFieldDataManager());
}
}
}
use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.
the class VendorOptionTextFactory method getFieldDataManager.
/**
* Gets the field data manager.
*
* @param fieldConfigManager the field config manager
*/
public void getFieldDataManager(GraphicPanelFieldManager fieldConfigManager) {
for (VendorOptionInterface vendorOption : vendorOptionList) {
if (vendorOption != null) {
PopulateDetailsInterface populateInterface = (PopulateDetailsInterface) vendorOption;
fieldConfigManager.add(populateInterface.getFieldDataManager());
}
}
}
use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.
the class VendorOptionInfoManagerTest method testAddVendorOptionInfo.
/**
* Test method for
* {@link com.sldeditor.common.vendoroption.info.VendorOptionInfoManager#addVendorOptionInfo(com.sldeditor.ui.detail.vendor.VendorOptionFactoryInterface)}.
* {@link com.sldeditor.common.vendoroption.info.VendorOptionInfoManager#getPanel(java.lang.Class)}.
* {@link com.sldeditor.common.vendoroption.info.VendorOptionInfoManager#setSelectedVersion(java.lang.Class, com.sldeditor.common.vendoroption.VersionData)}.
*/
@Test
public void testAddVendorOptionInfo() {
VendorOptionInfoManager.getInstance().addVendorOptionInfo(null);
VendorOptionFactoryInterface f1 = new VendorOptionFactoryInterface() {
@Override
public List<VendorOptionInterface> getVendorOptionList() {
return null;
}
@Override
public List<VendorOptionInterface> getVendorOptionList(String className) {
return null;
}
@Override
public List<VendorOptionInfo> getVendorOptionInfoList() {
List<VendorOptionInfo> list = new ArrayList<VendorOptionInfo>();
return list;
}
};
VendorOptionInfoManager.getInstance().addVendorOptionInfo(f1);
VendorOptionInfoManager.getInstance().addVendorOptionInfo(f1);
VendorOptionInfoPanel panel1 = VendorOptionInfoManager.getInstance().getPanel(String.class);
VendorOptionInfoPanel panel2 = VendorOptionInfoManager.getInstance().getPanel(Double.class);
VendorOptionInfoPanel panel3 = VendorOptionInfoManager.getInstance().getPanel(String.class);
assertTrue(panel1 == panel3);
assertTrue(panel1 != panel2);
VendorOptionInfoManager.getInstance().setSelectedVersion(null, null);
VersionData versionData = VersionData.decode(GeoServerVendorOption.class, "3.1.4");
VendorOptionInfoManager.getInstance().setSelectedVersion(String.class, versionData);
}
use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.
the class TextSymbolizerDetails method createVendorOptionPanel.
/**
* Creates the vendor option panel.
*
* @return the detail panel
*/
private void createVendorOptionPanel() {
vendorOptionTextFactory = new VendorOptionTextFactory(getClass());
List<VendorOptionInterface> veList = vendorOptionTextFactory.getVendorOptionList();
if (veList != null) {
for (VendorOptionInterface extension : veList) {
extension.setParentPanel(this);
}
}
}
use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.
the class FieldConfigVendorOption method updateVendorOptionPanels.
/**
* Update vendor option panels.
*
* @param vendorOptionVersionsList the vendor option versions list
*/
private void updateVendorOptionPanels(List<VersionData> vendorOptionVersionsList) {
if (veList != null) {
for (VendorOptionInterface vendorOption : veList) {
boolean displayVendorOption = VendorOptionManager.getInstance().isAllowed(vendorOptionVersionsList, vendorOption.getVendorOption());
BasePanel extensionPanel = vendorOption.getPanel();
if (extensionPanel != null) {
BasePanel parentPanel = (BasePanel) vendorOption.getParentPanel();
if (parentPanel != null) {
parentPanel.removePanel(extensionPanel);
if (displayVendorOption) {
parentPanel.insertPanel(this, extensionPanel, this.optionBox);
}
}
}
}
}
}
Aggregations