diff options
author | elmot <elmot@vaadin.com> | 2016-04-15 11:25:33 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2016-04-15 11:15:48 +0000 |
commit | f55691ea87efa446da94bbe313afae9835619f87 (patch) | |
tree | 66c6309f4be44f8137a42b2a691b76aaf311f418 /shared | |
parent | 0a5aa96ce132255128a6557b1b41ef9f16d75e26 (diff) | |
download | vaadin-framework-f55691ea87efa446da94bbe313afae9835619f87.tar.gz vaadin-framework-f55691ea87efa446da94bbe313afae9835619f87.zip |
Add javadoc and @since for new API
Change-Id: I5c6be2ae0fdaff8b6b6169d6a1110ae824472532
(cherry picked from commit 97741f4545e5f246e7b1af01270abc832b9cf3ab)
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/MarginInfo.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/MarginInfo.java b/shared/src/com/vaadin/shared/ui/MarginInfo.java index 92f7956015..c66d1f0a11 100644 --- a/shared/src/com/vaadin/shared/ui/MarginInfo.java +++ b/shared/src/com/vaadin/shared/ui/MarginInfo.java @@ -71,6 +71,16 @@ public class MarginInfo implements Serializable { doSetMargins(top, right, bottom, left); } + /** + * Creates a MarginInfo object by having horizontal and vertical margins specified (analogous to CSS). + * + * @since 7.6.5 + * + * @param vertical + * enable or disable top and bottom margins + * @param horizontal + * enable or disable left and right margins + */ public MarginInfo(boolean vertical, boolean horizontal) { this(vertical, horizontal, vertical, horizontal); } |