diff options
author | Artur Signell <artur@vaadin.com> | 2012-12-11 14:59:32 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-12-11 14:59:32 +0000 |
commit | ff58af76ded8bd96e1dbefb1590df030532cade9 (patch) | |
tree | 9bec10974bfc3a0079e05693fb5614ca93b8da89 /server | |
parent | 7e4651c719d7b02f1473002ca8ea09f600c663de (diff) | |
parent | 2a6e9153c9589f4aac37593945ace8499eb32305 (diff) | |
download | vaadin-framework-ff58af76ded8bd96e1dbefb1590df030532cade9.tar.gz vaadin-framework-ff58af76ded8bd96e1dbefb1590df030532cade9.zip |
Merge "ComboBox should have getter and setter methods for pageLength #5381"
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/ui/ComboBox.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/ComboBox.java b/server/src/com/vaadin/ui/ComboBox.java index c35ecdb21f..3bf6ee992b 100644 --- a/server/src/com/vaadin/ui/ComboBox.java +++ b/server/src/com/vaadin/ui/ComboBox.java @@ -792,6 +792,27 @@ public class ComboBox extends AbstractSelect implements } /** + * Returns the page length of the suggestion popup. + * + * @return the pageLength + */ + public int getPageLength() { + return pageLength; + } + + /** + * Sets the page length for the suggestion popup. Setting the page length to + * 0 will disable suggestion popup paging (all items visible). + * + * @param pageLength + * the pageLength to set + */ + public void setPageLength(int pageLength) { + this.pageLength = pageLength; + markAsDirty(); + } + + /** * Sets whether to scroll the selected item visible (directly open the page * on which it is) when opening the combo box popup or not. Only applies to * single select mode. |