use of com.sldeditor.ui.detail.BasePanel 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