Search in sources :

Example 1 with BasePanel

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);
                    }
                }
            }
        }
    }
}
Also used : BasePanel(com.sldeditor.ui.detail.BasePanel) VendorOptionInterface(com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface)

Aggregations

BasePanel (com.sldeditor.ui.detail.BasePanel)1 VendorOptionInterface (com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface)1