From 2a6e9153c9589f4aac37593945ace8499eb32305 Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Tue, 11 Dec 2012 12:47:49 +0200 Subject: ComboBox should have getter and setter methods for pageLength #5381 Change-Id: I92597e49f2dc12c9fb90c2a35a213386da56bb3f --- server/src/com/vaadin/ui/ComboBox.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'server') 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 @@ -791,6 +791,27 @@ public class ComboBox extends AbstractSelect implements return false; } + /** + * 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 -- cgit v1.2.3