diff options
author | John Alhroos <john.ahlroos@itmill.com> | 2010-12-08 10:32:25 +0000 |
---|---|---|
committer | John Alhroos <john.ahlroos@itmill.com> | 2010-12-08 10:32:25 +0000 |
commit | 67ee0dd133babea7c4996674ebb8aba2812777c9 (patch) | |
tree | 84c371beb0f22cefce48661268fcd39bf1222978 | |
parent | b53a089367535a54d5c7d0b6813bcee3e682e456 (diff) | |
download | vaadin-framework-67ee0dd133babea7c4996674ebb8aba2812777c9.tar.gz vaadin-framework-67ee0dd133babea7c4996674ebb8aba2812777c9.zip |
Opened up some baseline properties of GridLayout to make it more extendable.
svn changeset:16399/svn branch:6.5
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java index 44f84b2844..637b9cc51f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java @@ -98,6 +98,42 @@ public class VGridLayout extends SimplePanel implements Paintable, Container { return margin.cast(); } + /** + * Returns the column widths measured in pixels + * + * @return + */ + protected int[] getColumnWidths() { + return columnWidths; + } + + /** + * Returns the row heights measured in pixels + * + * @return + */ + protected int[] getRowHeights() { + return rowHeights; + } + + /** + * Returns the spacing between the cells horizontally in pixels + * + * @return + */ + protected int getHorizontalSpacing() { + return spacingPixelsHorizontal; + } + + /** + * Returns the spacing between the cells vertically in pixels + * + * @return + */ + protected int getVerticalSpacing() { + return spacingPixelsVertical; + } + @SuppressWarnings("unchecked") public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { rendering = true; |