100 lines
2.4 KiB
Java
100 lines
2.4 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.status;
|
|
|
|
import javax.baja.status.BStatus;
|
|
import javax.baja.status.BStatusValue;
|
|
import javax.baja.sys.BDouble;
|
|
import javax.baja.sys.BFacets;
|
|
import javax.baja.sys.BINumeric;
|
|
import javax.baja.sys.BIcon;
|
|
import javax.baja.sys.BValue;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Property;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BStatusNumeric
|
|
extends BStatusValue
|
|
implements BINumeric {
|
|
public static final Property value = BStatusNumeric.newProperty(0, 0.0, null);
|
|
public static final Type TYPE;
|
|
private static final BIcon icon;
|
|
static /* synthetic */ Class class$javax$baja$status$BStatusNumeric;
|
|
|
|
public double getValue() {
|
|
return this.getDouble(value);
|
|
}
|
|
|
|
public void setValue(double d) {
|
|
this.setDouble(value, d, null);
|
|
}
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public final double getNumeric() {
|
|
return this.getValue();
|
|
}
|
|
|
|
public final BFacets getNumericFacets() {
|
|
return BFacets.NULL;
|
|
}
|
|
|
|
public final BValue getValueValue() {
|
|
return BDouble.make(this.getValue());
|
|
}
|
|
|
|
public final Property getValueProperty() {
|
|
return value;
|
|
}
|
|
|
|
public String valueToString(Context context) {
|
|
return BDouble.toString(this.getValue(), context);
|
|
}
|
|
|
|
public BIcon getIcon() {
|
|
return icon;
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
public BStatusNumeric(double d, BStatus bStatus) {
|
|
super(bStatus);
|
|
this.setValue(d);
|
|
}
|
|
|
|
public BStatusNumeric(double d) {
|
|
this.setValue(d);
|
|
}
|
|
|
|
public BStatusNumeric() {
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$status$BStatusNumeric;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$status$BStatusNumeric = BStatusNumeric.class("[Ljavax.baja.status.BStatusNumeric;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
icon = BIcon.std("statusNumeric.png");
|
|
}
|
|
}
|
|
|