diff options
Diffstat (limited to 'src/com/vaadin/ui/GridLayout.java')
-rw-r--r-- | src/com/vaadin/ui/GridLayout.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/GridLayout.java b/src/com/vaadin/ui/GridLayout.java index ae678198f9..08e3168791 100644 --- a/src/com/vaadin/ui/GridLayout.java +++ b/src/com/vaadin/ui/GridLayout.java @@ -399,6 +399,16 @@ public class GridLayout extends AbstractLayout implements } /** + * Gets the number of contained components. Consistent with the iterator + * returned by {@link #getComponentIterator()}. + * + * @return the number of contained components + */ + public int getComponentCount() { + return components.size(); + } + + /** * Paints the contents of this component. * * @param target |