summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorelmot <elmot@vaadin.com>2016-04-15 11:25:33 +0300
committerelmot <elmot@vaadin.com>2016-04-15 11:25:33 +0300
commit97741f4545e5f246e7b1af01270abc832b9cf3ab (patch)
tree91c441057cdecd8109de220911b46f4a36c9bcd7
parent0592285441c2d4adee9abfcc692977cdf99407fa (diff)
downloadvaadin-framework-97741f4545e5f246e7b1af01270abc832b9cf3ab.tar.gz
vaadin-framework-97741f4545e5f246e7b1af01270abc832b9cf3ab.zip
Add javadoc and @since for new API
Change-Id: I5c6be2ae0fdaff8b6b6169d6a1110ae824472532
-rw-r--r--server/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java2
-rw-r--r--shared/src/com/vaadin/shared/ui/MarginInfo.java10
2 files changed, 12 insertions, 0 deletions
diff --git a/server/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java b/server/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java
index 255f34d936..45bd3751d3 100644
--- a/server/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java
+++ b/server/src/com/vaadin/server/widgetsetutils/ClassPathExplorer.java
@@ -506,6 +506,8 @@ public class ClassPathExplorer {
* directory (not a JAR file etc.) on the classpath.
*
* TODO this could be done better...
+ *
+ * @since 7.6.5
*
* @param widgetsetFileName
* relative path for the widgetset
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);
}