aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-12-11 14:59:32 +0000
committerVaadin Code Review <review@vaadin.com>2012-12-11 14:59:32 +0000
commitff58af76ded8bd96e1dbefb1590df030532cade9 (patch)
tree9bec10974bfc3a0079e05693fb5614ca93b8da89 /server
parent7e4651c719d7b02f1473002ca8ea09f600c663de (diff)
parent2a6e9153c9589f4aac37593945ace8499eb32305 (diff)
downloadvaadin-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.java21
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.