package org.percepta.mgrankvi;

import java.io.Serializable;

/**
 * Position of component containing top and left position in relation to parent.
 *
 * @author Mikael Grankvist - Vaadin }>
 */
public class Position implements Serializable {

    private Integer topValue = 0;
    private Integer leftValue = 0;

    public Position() {
    }

    public Position(Integer topValue, Integer leftValue) {
        this.topValue = topValue;
        this.leftValue = leftValue;
    }

    public Integer getTopValue() {
        return topValue;
    }

    public void setTopValue(Integer topValue) {
        this.topValue = topValue;
    }

    public Integer getLeftValue() {
        return leftValue;
    }

    public void setLeftValue(Integer leftValue) {
        this.leftValue = leftValue;
    }

    public Integer[] toArray() {
        return new Integer[]{topValue, leftValue};
    }
}

@@ -361,27 +361,28 @@
 ion(Integer 
-top
+left
 Value, Integ
@@ -376,36 +376,35 @@
 tValue, Integer 
-left
+top
 Value) %7B%0A       
@@ -857,22 +857,22 @@
 r%5B%5D%7B
-top
+left
 Value, 
-left
+top
 Valu

Fix position to be (left, top) as we use it that way and not as written.