Examples of IntModel


Examples of com.nexirius.framework.datamodel.IntModel

public class DataModelGetEvent extends DataModelRemoteEvent {



    public DataModelGetEvent(int id) {
        append(new IntModel(id, ID));
    }
View Full Code Here

Examples of com.nexirius.framework.datamodel.IntModel

        initMembers();
        readDataFrom(in);
    }

    private void initMembers() {
        append(new IntModel(-1, ID));
    }
View Full Code Here

Examples of com.nexirius.framework.datamodel.IntModel

    public DataModelRemoteEvent() {
    }

    public int getDataModelID() {
        try {
            IntModel id = (IntModel) getChild(ID);

            return id.getInt();
        } catch (Exception ex) {
            return -1;
        }
    }
View Full Code Here

Examples of com.nexirius.framework.datamodel.IntModel

        }
    }

    public int getSubtype() {
        try {
            IntModel i = (IntModel) getChild(SUBTYPE);

            return i.getInt();
        } catch (Exception ex) {
            return -1;
        }
    }
View Full Code Here

Examples of com.nexirius.framework.datamodel.IntModel

        }
    }

    public int getIndex() {
        try {
            IntModel i = (IntModel) getChild(INDEX);

            return i.getInt();
        } catch (Exception ex) {
            return -1;
        }
    }
View Full Code Here

Examples of com.nexirius.framework.datamodel.IntModel

    }

    private void init(String name, Rectangle bounds) {
        this.name = new StringModel(name, "name");
        append(this.name);
        x = new IntModel(bounds.x, "x");
        append(x);
        y = new IntModel(bounds.y, "y");
        append(y);
        w = new IntModel(bounds.width, "w");
        append(w);
        h = new IntModel(bounds.height, "h");
        append(h);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.