summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/GridLayout.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-11-12 07:53:27 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-11-12 07:53:27 +0000
commit0fd630341f78d17225d2f1a1e774981da3115721 (patch)
tree6742ec3a802da666a913d5e97267cd97b1038aa3 /src/com/itmill/toolkit/ui/GridLayout.java
parent2458fd57dca00936992461cfb7f7c41958ffcce7 (diff)
downloadvaadin-framework-0fd630341f78d17225d2f1a1e774981da3115721.tar.gz
vaadin-framework-0fd630341f78d17225d2f1a1e774981da3115721.zip
javadocs for expand ratio methods
svn changeset:5867/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/GridLayout.java')
-rw-r--r--src/com/itmill/toolkit/ui/GridLayout.java36
1 files changed, 30 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/ui/GridLayout.java b/src/com/itmill/toolkit/ui/GridLayout.java
index 49aea44ce9..9f68f841a6 100644
--- a/src/com/itmill/toolkit/ui/GridLayout.java
+++ b/src/com/itmill/toolkit/ui/GridLayout.java
@@ -1163,7 +1163,17 @@ public class GridLayout extends AbstractLayout implements
}
/**
- * TODO
+ * Sets the expand ratio of given column. Expand ratio defines how excess
+ * space is distributed among columns. Excess space means the space not
+ * consumed by non relatively sized components.
+ *
+ * <p>
+ * By default excess space is distributed evenly.
+ *
+ * <p>
+ * Note, that width needs to be defined for this method to have any effect.
+ *
+ * @see #setWidth(float, int)
*
* @param columnIndex
* @param ratio
@@ -1173,10 +1183,12 @@ public class GridLayout extends AbstractLayout implements
}
/**
- * TODO
+ * Returns the expand ratio of given column
+ *
+ * @see #setColumnExpandRatio(int, float)
*
* @param columnIndex
- * @return
+ * @return the expand ratio, 0.0f by default
*/
public float getColumnExpandRatio(int columnIndex) {
Float r = columnExpandRatio.get(columnIndex);
@@ -1184,7 +1196,17 @@ public class GridLayout extends AbstractLayout implements
}
/**
- * TODO
+ * Sets the expand ratio of given row. Expand ratio defines how excess space
+ * is distributed among rows. Excess space means the space not consumed by
+ * non relatively sized components.
+ *
+ * <p>
+ * By default excess space is distributed evenly.
+ *
+ * <p>
+ * Note, that height needs to be defined for this method to have any effect.
+ *
+ * @see #setHeight(float, int)
*
* @param rowIndex
* @param ratio
@@ -1194,10 +1216,12 @@ public class GridLayout extends AbstractLayout implements
}
/**
- * TODO
+ * Returns the expand ratio of given row.
+ *
+ * @see #setRowExpandRatio(int, float)
*
* @param rowIndex
- * @return
+ * @return the expand ratio, 0.0f by default
*/
public float getRowExpandRatio(int rowIndex) {
Float r = rowExpandRatio.get(rowIndex);