Package com.nexirius.framework.datamodel

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


        initMembers();
        readDataFrom(in);
    }

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

    public DataModelRemoteEvent() {
    }

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

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

        }
    }

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

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

        }
    }

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

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

    }

    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

Related Classes of com.nexirius.framework.datamodel.IntModel

Copyright © 2018 www.massapicom. 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.