diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-25 23:31:19 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-04-02 13:34:22 +0300 |
commit | fb30fffdcb4c1e1e07e4ec8c1dc68f8104c911ee (patch) | |
tree | 70978f5238df68b9cf036bd323a74d2d10922337 /server/src/com/vaadin/ui/Layout.java | |
parent | dd157ae121433673c85c3c10b013af404fe2204b (diff) | |
download | vaadin-framework-fb30fffdcb4c1e1e07e4ec8c1dc68f8104c911ee.tar.gz vaadin-framework-fb30fffdcb4c1e1e07e4ec8c1dc68f8104c911ee.zip |
Enable setting default alignment for VerticalLayout, HorizontalLayout, GridLayout (#11421)
Change-Id: I56b14a6a027dc700748f2bd7219b47e1134bb56a
Diffstat (limited to 'server/src/com/vaadin/ui/Layout.java')
-rw-r--r-- | server/src/com/vaadin/ui/Layout.java | 17 |
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(); + } /** |