diff options
author | Build Agent <build@vaadin.com> | 2014-03-28 16:00:29 +0200 |
---|---|---|
committer | Build Agent <build@vaadin.com> | 2014-03-28 16:00:29 +0200 |
commit | 6d94e30a42ee6f2c1c521537ca805558094bd8bc (patch) | |
tree | 625368c8ca7d5dae3b5c21495cbfb59a098744f9 /client | |
parent | a8c2c7b4a83b839dbf3b6540ed328793efb1dedd (diff) | |
parent | 29e7df26ad034eacdbf37fc03985873aabda6576 (diff) | |
download | vaadin-framework-6d94e30a42ee6f2c1c521537ca805558094bd8bc.tar.gz vaadin-framework-6d94e30a42ee6f2c1c521537ca805558094bd8bc.zip |
Merge changes from origin/7.1
1f4ca4c Prevent resize for sorted column if not initialized (#12951)
437f4e9 Improved portlet configuration resolution. (#7814)
55a1b20 Added headers support for WebSphere Portal. (#13491)
f979681 Fix VScrollTable to clear reported ranges (#13353)
a473222 Added browser inclusion and exclusion for TB3Runner.
29e7df2 Makes combobox work with pasted texts. (#13214).
Change-Id: Icdb5a633d1d9f7bf7004b4b45857d268ea674f50
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VFilterSelect.java | 26 | ||||
-rw-r--r-- | client/src/com/vaadin/client/ui/VScrollTable.java | 5 | ||||
-rw-r--r-- | client/src/com/vaadin/client/ui/table/TableConnector.java | 4 |
3 files changed, 32 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/ui/VFilterSelect.java b/client/src/com/vaadin/client/ui/VFilterSelect.java index 81762b3aef..b97eff0fbd 100644 --- a/client/src/com/vaadin/client/ui/VFilterSelect.java +++ b/client/src/com/vaadin/client/ui/VFilterSelect.java @@ -1148,6 +1148,32 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler, popupOpener.addClickHandler(this); setStyleName(CLASSNAME); + + sinkEvents(Event.ONPASTE); + } + + /* + * (non-Javadoc) + * + * @see + * com.google.gwt.user.client.ui.Composite#onBrowserEvent(com.google.gwt + * .user.client.Event) + */ + @Override + public void onBrowserEvent(Event event) { + super.onBrowserEvent(event); + + if (event.getTypeInt() == Event.ONPASTE) { + if (textInputEnabled) { + Scheduler.get().scheduleDeferred(new ScheduledCommand() { + + @Override + public void execute() { + filterOptions(currentPage); + } + }); + } + } } /** diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java index ad66355608..b2ba590d8e 100644 --- a/client/src/com/vaadin/client/ui/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/VScrollTable.java @@ -326,13 +326,13 @@ public class VScrollTable extends FlowPanel implements HasWidgets, ArrayList<SelectionRange> ranges = new ArrayList<SelectionRange>(2); int endOfFirstRange = row.getIndex() - 1; - if (!(endOfFirstRange - startRow.getIndex() < 0)) { + if (endOfFirstRange >= startRow.getIndex()) { // create range of first part unless its length is < 1 ranges.add(new SelectionRange(startRow, endOfFirstRange - startRow.getIndex() + 1)); } int startOfSecondRange = row.getIndex() + 1; - if (!(getEndIndex() - startOfSecondRange < 0)) { + if (getEndIndex() >= startOfSecondRange) { // create range of second part unless its length is < 1 VScrollTableRow startOfRange = scrollBody .getRowByRowIndex(startOfSecondRange); @@ -862,6 +862,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, // Send the selected row ranges client.updateVariable(paintableId, "selectedRanges", ranges.toArray(new String[selectedRowRanges.size()]), false); + selectedRowRanges.clear(); // clean selectedRowKeys so that they don't contain excess values for (Iterator<String> iterator = selectedRowKeys.iterator(); iterator diff --git a/client/src/com/vaadin/client/ui/table/TableConnector.java b/client/src/com/vaadin/client/ui/table/TableConnector.java index 1e19e76f1e..610f2f8010 100644 --- a/client/src/com/vaadin/client/ui/table/TableConnector.java +++ b/client/src/com/vaadin/client/ui/table/TableConnector.java @@ -303,7 +303,9 @@ public class TableConnector extends AbstractHasComponentsConnector implements getWidget().tabIndex = getState().tabIndex; getWidget().setProperTabIndex(); - getWidget().resizeSortedColumnForSortIndicator(); + if (getWidget().initializedAndAttached) { + getWidget().resizeSortedColumnForSortIndicator(); + } // Remember this to detect situations where overflow hack might be // needed during scrolling |