Add reinit method for preserve-on-refresh UIs (#12191)
UI.reinit() is now called when an existing, preserved UI is shown after a
browser reload of the current page. The default implementation is empty.
The browser window size and location are up to date in UI.reinit();
window resize and URI fragment listeners, if any, will be called after
returning from UI.reinit().
* ConnectorTracker.getConnector() is now DnDService-aware
* Deprecated LCM.getDragAndDropService() is removed
* LCM.getConnector() simply delegates to ConnectorTracker.getConnector()
Build Agent [Fri, 28 Mar 2014 14:00:29 +0000 (16:00 +0200)]
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).
Use window name "_self" with Page.setLocation (#12925)
This signals the client side to stop running so it will not eg.
flash a "session expired" dialog sent via push just before the
browser navigates away (see #12298). setLocation should thus
not be used to start downloads anymore.
Refactored static path resolution in VaadinPortletService.
Refactored theme name resolution in VaadinPortletService.
Refactored widgetset name resolution in VaadinPortletService.
Leif Åstrand [Mon, 24 Mar 2014 16:24:45 +0000 (18:24 +0200)]
Refactor to use the right Element class (#13287)
Changed implementations and APIs to use the non-deprecated Element class
wherever possible without breaking backwards compatibility.
* Methods defined in interfaces have not been touched.
* Return types have only been changed methods that should have no
existing third party callers (i.e. private, internal or @since 7.2)
* For methods that third party code might have overridden, the method
has been deprecated in favor of a new method that just delegates to the
old method.
* For methods that can't reasonably be overridden by third party code
(i.e. private, final, static, internal or @since 7.2), the parameter
type has been changed without retaining the old method.
Leif Åstrand [Fri, 21 Mar 2014 13:00:38 +0000 (15:00 +0200)]
Use FQN instead of import for the bad Element class (#13287)
This is the first step towards eliminating usage of the class. Reasoning
about upcoming steps will be easier when it's clear which class
"Element" refers to.
Build Agent [Fri, 21 Mar 2014 08:29:58 +0000 (10:29 +0200)]
Merge changes from origin/7.1
7112abe Preventing premature start of drag due to Chrome move event #13381 7e7b623 reduce frequency of session locking and StreamingProgressEvents (#13155) 7cab7fd Improve error message when reusing UI instance (#13457) 3e53fa6 Fixed "EEE" in DateField's date pattern (#13443) 1881ea8 Fix for width issue of TabSheet (#12805) 396820e Test for streaming reconnect issue (#13435) 2f93186 Eliminate .v-caption memory leak (#13346) 0c7cbc7 Fixes a memory leak on IE8 in LayoutManagerIE8 (#12688) 5441ef0 Merged IntegrationTestRunner into TB3Runner 3545db2 Added User-Agent and Screen Width + Height labels to portlet test. c5aaf93 Refactored JSR286 portlet test. 52dcbaa Pressing ESC now closes the DateField popup when using month or year resolutions. (#12317) e45294f Revert "Preventing premature start of drag due to Chrome move event #13381"
Artur Signell [Fri, 14 Mar 2014 10:36:12 +0000 (12:36 +0200)]
Throw exception when trying to invalidate FakeHttpSession
The FakeHttpSession is used only for Tomcat 7 as far as I can see (#11721)
Invalidating the fake session will not invalidate the real session so
the end result will not be what the user expects, therefore we throw an
exception instead in this case.
Teemu Pöntelin [Tue, 11 Mar 2014 17:45:38 +0000 (19:45 +0200)]
Fix for width issue of TabSheet (#12805)
Width of v-tabsheet-tabcontainer was set by copying the width
from the ComponentConnector. This produced an incorrect result
when a relative width (other than 100%) was used. Fixed by
assigning the width to 100% when the TabSheet has a defined
width.
Fabian Lange [Wed, 12 Mar 2014 11:47:00 +0000 (12:47 +0100)]
reduce frequency of session locking and StreamingProgressEvents (#13155)
This change introduces throttling of streaming progress events. Before
a event was fired once a buffer was filled. However as the buffer is only
4kb in size, fast uploads would trigger massive amounts of events.
This change is backwards incompatible on a logical level. Before this
change, a listener would get contentLength/4kb events, while after this
change the amount is limited to one progress event per 500ms.
Fabian Lange [Wed, 26 Feb 2014 18:17:21 +0000 (19:17 +0100)]
Preventing premature start of drag due to Chrome move event #13381
The drag only actually starts when the mouse move or touch move event is
more than 3 pixel away.
The purpose is twofold:
a) it fixes the glitchy behaviour of Chrome which for some reason
sometimes fires a move directly after the mousedown, which starts a drag
immediately.
b) it helps people with shaky hands or imprecise hardware, why might not
want to drag but to select but slightly move the pointer. Some frameworks
opted to make the distance configurable.
Due to sub pixels (which might be the cause for a) in the first place),
a distance of 1 or 2 pixel is not enough. Experiments showed that unaware
users did not notice that 3 pixels movement are required for the drag to
actually start (the ghost has already a delay of 300ms)
Change-Id: I71b50b72486344a7dbe4ed927b34b1f8fab0db20
Class AbstractTransactionalQuery should be public (#12285)
AbstractTransactionalQuery was not visible outside its package
(default visibility). Added `public`.
Making this class public avoids lots of boilerplate code when making
alternate implementations of a QueryDelegate.
A standard TableQuery does a lot of introspection on the DB schema.
If the schema is known beforehand, alternate implementations may specify
this information explicitly, and inherit from AbstractTransactionalQuery
to reuse part of the implementation.