summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java b/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java
index c66d1f0a11..0af3b7351f 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java
@@ -49,7 +49,9 @@ public class MarginInfo implements Serializable {
*
* @param bitMask
* bits to set
+ * @deprecated use other constructors instead of this one
*/
+ @Deprecated
public MarginInfo(int bitMask) {
this.bitMask = bitMask;
}
@@ -86,6 +88,16 @@ public class MarginInfo implements Serializable {
}
/**
+ * Creates a MarginInfo with the same values as another MarginInfo object.
+ *
+ * @param other
+ * another MarginInfo object
+ */
+ public MarginInfo(MarginInfo other) {
+ setMargins(other);
+ }
+
+ /**
* Enables or disables margins on all edges simultaneously.
*
* @param enabled
@@ -172,9 +184,12 @@ public class MarginInfo implements Serializable {
/**
* Returns the current bit mask that make up the margin settings.
+ * <p>
+ * This method is for internal use by the framework.
*
* @return an integer bit mask
*/
+ @Deprecated
public int getBitMask() {
return bitMask;
}