DecimalScript.java
1.17 KB
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.content;
import com.adobe.xfa.AppModel;
import com.adobe.xfa.Arg;
import com.adobe.xfa.Obj;
import com.adobe.xfa.ScriptFuncObj;
import com.adobe.xfa.ScriptPropObj;
import com.adobe.xfa.ScriptTable;
import com.adobe.xfa.content.ContentScript;
import com.adobe.xfa.content.DecimalValue;
public class DecimalScript
extends ContentScript {
protected static final ScriptTable moScriptTable = new ScriptTable(ContentScript.moScriptTable, "decimal", new ScriptPropObj[]{new ScriptPropObj(DecimalScript.class, "value", "getValue", "setValue", 5, 10, 9, 0), new ScriptPropObj(DecimalScript.class, null, "getValue", "setValue", 5, 10, 9, 0)}, null);
public static ScriptTable getScriptTable() {
return moScriptTable;
}
public static void getValue(Obj pObj, Arg oRetVal) {
oRetVal.setDouble(new Double(((DecimalValue)pObj).getValue()));
}
public static void setValue(Obj pObj, Arg oArg) {
boolean bStrongTyping = ((DecimalValue)pObj).getAppModel().getLegacySetting(AppModel.XFA_LEGACY_V30_SCRIPTING);
((DecimalValue)pObj).setValue(oArg.getDouble(bStrongTyping), false, true, false);
}
}