summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2012-12-11 12:47:49 +0200
committerPekka Hyvönen <pekka@vaadin.com>2012-12-11 12:47:49 +0200
commit2a6e9153c9589f4aac37593945ace8499eb32305 (patch)
tree8d845e3b8d072b29c9ae7e3af6f06dbba9008b1b /server/src/com/vaadin/ui
parenta24ae63c0068bf7eb9bdc9c662c7d9eb3760861f (diff)
downloadvaadin-framework-2a6e9153c9589f4aac37593945ace8499eb32305.tar.gz
vaadin-framework-2a6e9153c9589f4aac37593945ace8499eb32305.zip
ComboBox should have getter and setter methods for pageLength #5381
Change-Id: I92597e49f2dc12c9fb90c2a35a213386da56bb3f
Diffstat (limited to 'server/src/com/vaadin/ui')
-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.