Search in sources :

Example 11 with VendorOptionInterface

use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.

the class VendorOptionRasterFactory method updateFieldDataManager.

/**
 * Updates the field data manager.
 *
 * @param fieldConfigManager the field config manager
 */
public void updateFieldDataManager(GraphicPanelFieldManager fieldConfigManager) {
    for (VendorOptionInterface vendorOption : vendorOptionList) {
        if (vendorOption != null) {
            PopulateDetailsInterface populateInterface = (PopulateDetailsInterface) vendorOption;
            fieldConfigManager.add(populateInterface.getFieldDataManager());
        }
    }
}
Also used : VendorOptionInterface(com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface) PopulateDetailsInterface(com.sldeditor.ui.iface.PopulateDetailsInterface)

Example 12 with VendorOptionInterface

use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.

the class VendorOptionFillFactory 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());
        }
    }
}
Also used : VendorOptionInterface(com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface) PopulateDetailsInterface(com.sldeditor.ui.iface.PopulateDetailsInterface)

Example 13 with VendorOptionInterface

use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.

the class FieldConfigVendorOptionTest method testRevertToDefaultValue.

/**
 * Test method for
 * {@link com.sldeditor.ui.detail.config.FieldConfigVendorOption#revertToDefaultValue()}.
 */
@Test
public void testRevertToDefaultValue() {
    List<VendorOptionInterface> veList = null;
    boolean valueOnly = true;
    FieldConfigVendorOption field = new FieldConfigVendorOption(new FieldConfigCommonData(Double.class, FieldIdEnum.NAME, "label", valueOnly), veList);
    field.revertToDefaultValue();
    field.createUI();
    field.revertToDefaultValue();
}
Also used : FieldConfigVendorOption(com.sldeditor.ui.detail.config.FieldConfigVendorOption) FieldConfigCommonData(com.sldeditor.ui.detail.config.FieldConfigCommonData) VendorOptionInterface(com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface) Test(org.junit.Test)

Example 14 with VendorOptionInterface

use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.

the class PointFillDetails method createVendorOptionPanel.

/**
 * Creates the vendor option panel.
 *
 * @return the detail panel
 */
private void createVendorOptionPanel() {
    vendorOptionFillFactory = new VendorOptionFillFactory(getPanelId());
    List<VendorOptionInterface> voList = vendorOptionFillFactory.getVendorOptionList();
    if (voList != null) {
        for (VendorOptionInterface vendorOption : voList) {
            vendorOption.setParentPanel(this);
        }
    }
}
Also used : VendorOptionFillFactory(com.sldeditor.ui.detail.vendor.geoserver.fill.VendorOptionFillFactory) VendorOptionInterface(com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface)

Example 15 with VendorOptionInterface

use of com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface in project sldeditor by robward-scisys.

the class PolygonFillDetails method createVendorOptionPanel.

/**
 * Creates the vendor option panel.
 *
 * @return the detail panel
 */
private void createVendorOptionPanel() {
    vendorOptionFillFactory = new VendorOptionFillFactory(getPanelId());
    List<VendorOptionInterface> voList = vendorOptionFillFactory.getVendorOptionList();
    if (voList != null) {
        for (VendorOptionInterface vendorOption : voList) {
            vendorOption.setParentPanel(this);
        }
    }
}
Also used : VendorOptionFillFactory(com.sldeditor.ui.detail.vendor.geoserver.fill.VendorOptionFillFactory) VendorOptionInterface(com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface)

Aggregations

VendorOptionInterface (com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface)16 Test (org.junit.Test)6 FieldConfigCommonData (com.sldeditor.ui.detail.config.FieldConfigCommonData)5 FieldConfigVendorOption (com.sldeditor.ui.detail.config.FieldConfigVendorOption)5 PopulateDetailsInterface (com.sldeditor.ui.iface.PopulateDetailsInterface)4 VersionData (com.sldeditor.common.vendoroption.VersionData)2 VendorOptionFillFactory (com.sldeditor.ui.detail.vendor.geoserver.fill.VendorOptionFillFactory)2 VendorOptionRasterFactory (com.sldeditor.ui.detail.vendor.geoserver.raster.VendorOptionRasterFactory)2 ArrayList (java.util.ArrayList)2 GeoServerVendorOption (com.sldeditor.common.vendoroption.GeoServerVendorOption)1 VendorOptionInfo (com.sldeditor.common.vendoroption.info.VendorOptionInfo)1 VendorOptionInfoPanel (com.sldeditor.common.vendoroption.info.VendorOptionInfoPanel)1 BasePanel (com.sldeditor.ui.detail.BasePanel)1 RasterSymbolizerDetails (com.sldeditor.ui.detail.RasterSymbolizerDetails)1 VendorOptionFactoryInterface (com.sldeditor.ui.detail.vendor.VendorOptionFactoryInterface)1 VendorOptionFTSFactory (com.sldeditor.ui.detail.vendor.geoserver.featuretypestyle.VendorOptionFTSFactory)1 VendorOptionTextFactory (com.sldeditor.ui.detail.vendor.geoserver.text.VendorOptionTextFactory)1