Also adds shared state for grid's selection models.
This is mostly for making it possible later to modify the selection models,
without breaking backwards API compatibility and having to duplicate code.
Change-Id: If93720df282bf5ca3aff17a20b455d60b33f764c
Enable select all checkbox for MultiSelection Grid.
It is by default shown only if used data provider is in-memory.
Can be configured to be explicitly shown or hidden.
Change-Id: I50569d915604c3722a22e14b7628663d5680ed83
Still missing following things coming in next patches:
- select all checkbox
- firing an event when data provider is changed in grid
- read only selection models for grid
Part 1 for vaadin/framework8-issues#232
Change-Id: Ib2c7c81a838f43cb7c521a56d50139c91961f54a
All Vaadin components use the old HandlerRegistration except Grid
renderers and ServerConnector. Since most Vaadin components extend GWT
components we can't change to the bindary version until GWT does, so the
only way we can unify the usage is using the old version.
Change-Id: I82a5b66df977fe0e7bcab7e981332d0cf7e0bdbf
Extracts grid single selection into separate class, which
is an extension like in V7. Using an extension makes it
possible to easily add multiselect and no-select modes back,
and support custom selection models.
Adds Grid:asSingleSelect() SingleSelect so that grid can be
used as a Select in a binder.
Removes all remaining references to SelectionModels in Listings.
Renames SingleSelectionChangeEvent to SingleSelectionEvent, because
then it is unified with selection listener and MultiSelectionEvent.
Fixes vaadin/framework8-issues#424
Fixes vaadin/framework8-issues#425
Change-Id: Ie22bef29cfd4336c3f65d4e63531c578b8dd76a3
Scrolling down submenus via scrollbar (MenuBar.isAutoOpen()) (#10456)
full name of defect: Can't scroll down submenus using the scrollbar when
MenuBar.isAutoOpen() == true
Tests.
Change-Id: I2cbe797c96dc6a780df147e165babb23f7fbdef3
Replace setRequired & HasRequired with setRequiredIndicator
Vaadin 7 compatiblity fields still use setRequired via AbstractField (legacy).
Public setRequiredIndicator is added to AbstractField, AbstractMultiSelect and AbstractSingleSelect.
Internally it is still handled on AbstractComponent & -Connector level.
Changes the declarative syntax, required -> required-indicator-visible.
Fixes vaadin/framework8-issue#419
Change-Id: I940dc66944d27584bd78e5452aee627ee3abd03a
Use placeholder instead of inputPrompt for DateField
Renames the API server side and uses placeholder attribute for input.
Removed PopupDateFieldInputPrompt test since it tests input prompt logic,
that is no longer there after switching to native placeholder attribute
for input element.
Change-Id: I5c66456781f8703ba2e253134b88f8372825528f
All components are now in immediate mode by default.
V7 compatibility components will use AbstractLegacyComponent that has immediate.
V7 ColorPickerPopup will not have setImmediate, since it extends V8 Window,
which is not in V7 compatibility packages.
Removed OutOfSync and ResynchronizeAfterAsyncRemoval Tests,
since those tested UI in not immediate mode, which is invalid now.
Removed WindowResizeListener, LazyWindowResize, test UIs,
since both used immediate and there were no test run for either.
Change-Id: Ie1c8cfa4c48461db944ff9b13efe8473c5a3298f
Separate immediate mode for Upload from AbstactComponent.immediate
Makes it possible to remove the immediate from AbstractComponent.
Part 2 / 2 of adding proper Upload immediateMode, first was to move
old Upload to v7 compatiblity packages.
Change-Id: Iff99df70d9465fa1f3bad4baae44a0488eba01c0
commit 11c3f8bd9e - Test and its UI class
are added (both V8 and V7). Required functionality should be available
via modern GWT version.
commit 729dbf96fe - About update release
notes. No need to be included.
commit 675f38349c - V8 already contains
correct Import-Packages section which uses osgi.javax.servlet.version
variable whise version is 3.0.0 at the moment.
commit 5da7c052f5 - Use Vaadin plugin
7.7.0 from 7.7.0.alpha1. Is not applicable.
commit 1df80001ab - Updated tutorial to
Vaadin 7.7.0. Is not applicable. The tutorial already contains correct
links and updated source code snippets.
commit 8b4f0ed8a8 - set-property-fallback
name="user.agent" value="safari". Is already there.
commit 28ed04e827 - Fix animation end
listeners so they are always removed. Is already there.
commit 408253bc3f - Use servlet context
classloader when finding servlet class for websockets. Is already there.
commit 7a6f250d89 - Fire actions before
removing menu from the DOM. Is already there.
commit 9b66c6eb9b - Do not run test on IE8
as IE8 is broken. Transplanted.
commit 3faa43ff39 - Discard for DateField
when the data source contains null. It is not applicable for V8 (There
is no anymore discard method in DateField (and no datasource suport in
field)). Transplanted for DateField in compatibility.
commit e0c1f91a3d - Fix ComboBox paging
when number of items equals page length. It's already done by another
fix which replaced ComboBox in compatibility package to the V7 version.
commit 83a1b8a096 - Update DOM and update
escalator row count in the correct order. Transplanted.
commit 45f2fba8ff - Prevent editor from
being canceled while it is being saved. Transplanted to compatibility
package. Is not applicable to modern Grid.
commit ad67f7f43a - Delete broken
stylesheet and revert to default style until a new stylesheet is
created. Is already there.
commit c970a78d42 - Always show loading
indicator for JavaScript RPC. Transplanted.
commit 2aad341606 - Make test independent
of any converters present in the factory. It's already there.
commit c9ad48430b - Do not include
yuicompressor for Sass compiler. Transplanted. Exclusion is added into
vaadin/pom.xml
commit 52d01a68e9 - Test for Firefox
download disconnecting push channel. Transplanted.
commit 4bc375d1d2 - Handle encoded URL
characters correctly when constructing widget set name. Transplanted.
commit 17ba88eaf8 - Update version to
7.7-SNAPSHOT. Is not applicable.
commit 47b7b13e5c - Ensure Firefox always
updates the grid scrollbar. Transplanted. Made changes in the logic to
the test for modern Grid component.
commit 4d851ba21d - Calculate column
widths immediately if there is data. Transplanted to both client side
modules.
commit 8f0b1a1dd0 - Skip Maven enforcer
plugin during demo validation. Transplanted (one build file is
affected).
commit 62815353e1 - Build demos from 7.7
branch (now for master branch). FW8 demos are added (one build file is
affected).
commit 815d72115d - Make test pass on all
browsers. Transplanted to both V7 and V8 version tests.
commit 516c428ca1 - Use widget set
specified by init parameter. Transplanted to the one UIProvider class.
commit b00c580ed7 - Use correct column
index when calculating min width during resize. Transplanted into both
client side classes (main and compatibility) as is. Test for V7 is
transplanted as is. Test for V8 is written from scratch based on V7
version.
commit 7dd91cf057 - Fix regression that
broke widget set compilation in 7.7.1. It's already there.
commit c665731b0b - Ensure temporary
layout manager state is cleared at the end of a layout phase.
Transplanted to the one LayoutManager class.
commit 57a965251a - Fix assertion error
when column widths are calculated. Transplanted to both versions of the
client Grid widget.
commit c5c52684eb - Format Java files
using Eclipse Neon and Vaadin settings. Only formatting changes. Is not
transplanted.
f5d06d8771 - Change javadoc to a style
Eclipse formatter can handle. Transplanted to both versions of the
client Grid widget.
commit 6033e13c20 - Make initially
disabled grid work when enabled. Transplanted to both client side
modules.
commit a2d6e4fb4b - Use
requestAnimationFrame when scrolling in Grid. Transplanted to both
client side modules.
commit fe9438e7b7 - Specify branch also
for Sampler. Is not applicable for master branch.
commit 1ec5d8ef7c - Update to Chrome 53.
Is already there.
commit 961851bfbc - Updated link to new
step 1 video in tutorial. Is already there.
commit 41dc2fe161 - Revert "Use widget set
specified by init parameter. Transplanted to the one UIProvider class.
commit 092b4f7f31 - Use widget set
specified by init parameter. Transplanted to the common server side
classes.
commit 977cec7e31 - Fix widget set builder
to create widget set in correct location. Transplanted to the one
ClassPathExplorer class file.
commit 6c12ad89ea - Format project pom
files using correct settings. Is not transplanted: only formatting
changes for POM files.
commit 0aad93ecc1 - Add tests for
widgetset compilation in different modes. Transplanted. New test
projects.
commit 0a3a1ef832 - Use
versions-maven-plugin 2.3 to avoid NPE while setting project version. Is
already there.
Change-Id: Ie3a5088f25de1772f01ea30c4a5eba0b169ee0ab
No single select mode for list select.
Based on AbstractMultiSelect.
Removes feature for adding new items.
Change-Id: I9a92aaf1f3d338a3b05c3aa4048f9db496dacd1d
Removes feature for adding new items.
Introduces a AbstractMultiSelect-abstraction layer,
which is used in server side by TwinColSelect & CheckBoxGroup and
on client side only TwinColSelect for now. Plan is to use it for
ListSelect too.
Further improvement would be to make AbstractMultiSelect use
SelectionModel that extends AbstractSelectionModel and is thus used
as an extension both as client & server side.
Updates to JUnit 4.12 for easier use of @Parameterized test..
Change-Id: I64258c2229b9514d382693748e2ca562a1e448d4