summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Layout.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/Layout.java')
-rw-r--r--server/src/com/vaadin/ui/Layout.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Layout.java b/server/src/com/vaadin/ui/Layout.java
index cd6ffc42d2..dc16b186f2 100644
--- a/server/src/com/vaadin/ui/Layout.java
+++ b/server/src/com/vaadin/ui/Layout.java
@@ -61,6 +61,23 @@ public interface Layout extends ComponentContainer, Serializable {
*/
public Alignment getComponentAlignment(Component childComponent);
+ /**
+ * Sets the alignment used for new components added to this layout. The
+ * default is {@link Alignment#TOP_LEFT}.
+ *
+ * @param defaultComponentAlignment
+ * The new default alignment
+ */
+ public void setDefaultComponentAlignment(
+ Alignment defaultComponentAlignment);
+
+ /**
+ * Returns the alignment used for new components added to this layout
+ *
+ * @return The default alignment
+ */
+ public Alignment getDefaultComponentAlignment();
+
}
/**