Search in sources :

Example 56 with VersionData

use of com.sldeditor.common.vendoroption.VersionData in project sldeditor by robward-scisys.

the class PrefData method clone.

/**
 * Clone.
 *
 * @return the pref data
 */
/*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#clone()
     */
@Override
public PrefData clone() {
    PrefData copy = new PrefData();
    copy.uiLayoutClass = this.uiLayoutClass;
    copy.useAntiAlias = this.useAntiAlias;
    copy.backgroundColour = new Color(this.backgroundColour.getRGB());
    copy.saveLastFolderView = this.saveLastFolderView;
    copy.lastFolderViewed = this.lastFolderViewed;
    copy.lastViewedKey = this.lastViewedKey;
    copy.checkAppVersionOnStartUp = this.checkAppVersionOnStartUp;
    if (this.vendorOptionList != null) {
        copy.vendorOptionList = new ArrayList<VersionData>();
        for (VersionData versionData : vendorOptionList) {
            copy.vendorOptionList.add(versionData.clone());
        }
    }
    return copy;
}
Also used : VersionData(com.sldeditor.common.vendoroption.VersionData) Color(java.awt.Color)

Aggregations

VersionData (com.sldeditor.common.vendoroption.VersionData)56 Test (org.junit.Test)36 ArrayList (java.util.ArrayList)26 VendorOptionVersion (com.sldeditor.common.vendoroption.VendorOptionVersion)13 GeoServerVendorOption (com.sldeditor.common.vendoroption.GeoServerVendorOption)9 PrefData (com.sldeditor.common.preferences.PrefData)7 VendorOptionInfo (com.sldeditor.common.vendoroption.info.VendorOptionInfo)5 Color (java.awt.Color)5 SLDData (com.sldeditor.common.data.SLDData)4 VendorOptionTypeInterface (com.sldeditor.common.vendoroption.VendorOptionTypeInterface)4 File (java.io.File)4 VendorOptionTableModel (com.sldeditor.common.vendoroption.selection.VendorOptionTableModel)3 ValueComboBoxDataGroup (com.sldeditor.ui.widgets.ValueComboBoxDataGroup)3 IOException (java.io.IOException)3 LinkedHashMap (java.util.LinkedHashMap)3 DataSourcePropertiesInterface (com.sldeditor.common.DataSourcePropertiesInterface)2 StyleWrapper (com.sldeditor.common.data.StyleWrapper)2 JsonArray (com.google.gson.JsonArray)1 JsonObject (com.google.gson.JsonObject)1 JsonParser (com.google.gson.JsonParser)1