GuideNumericStepper.java 1.1 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  org.apache.sling.api.resource.ValueMap
 *  org.apache.sling.commons.json.JSONException
 *  org.apache.sling.commons.json.JSONObject
 */
package com.adobe.aemds.guide.common;

import com.adobe.aemds.guide.common.GuideNumericBox;
import org.apache.sling.api.resource.ValueMap;
import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.JSONObject;

public class GuideNumericStepper
extends GuideNumericBox {
    public String getStepperOptions() throws JSONException {
        JSONObject jsonObject = new JSONObject();
        JSONObject iconsObject = new JSONObject();
        jsonObject.put("step", (double)Float.parseFloat((String)this.resourceProps.get("stepSize", (Object)"1")));
        iconsObject.put("up", (Object)((String)this.resourceProps.get("incIcon", (Object)"ui-icon-plusthick")));
        iconsObject.put("down", (Object)((String)this.resourceProps.get("decIcon", (Object)"ui-icon-minusthick")));
        jsonObject.put("icons", (Object)iconsObject);
        return jsonObject.toString();
    }
}