All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.viaoa.model.oa.VInteger Maven / Gradle / Ivy

package com.viaoa.model.oa;

import java.util.logging.Logger;

import com.viaoa.annotation.OAClass;
import com.viaoa.annotation.OAProperty;
import com.viaoa.object.OAObject;

@OAClass(
    shortName = "int",
    displayName = "Integer",
    displayProperty = "value",
    sortProperty = "value",
    localOnly = true
)
public class VInteger extends OAObject {
    private static final long serialVersionUID = 1L;
    private static Logger LOG = Logger.getLogger(VInteger.class.getName());
    
    public static final String P_Value = "Value";
    
    public int value;
    
    public VInteger() {
    }
    public VInteger(int x) {
        setValue(x);
    }
    
    @OAProperty(displayLength = 3)
    public int getValue() {
        return value;
    }
    public void setValue(int newValue) {
        fireBeforePropertyChange(P_Value, this.value, newValue);
        int old = value;
        this.value = newValue;
        firePropertyChange(P_Value, old, this.value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy