Teemu Suo-Anttila
91564dfe76
Make Grid recalculate columns on resize (#16539)
Change-Id: Ib2b9ecc995ec6fe2627c545efc2a312a59df6b9c
9 years ago
Pekka Hyvönen
f79b978884
Reapplying column width on Grid actually reapplies the width (#16900)
Change-Id: I8a0bc92294004411782c6ee5b0e460b892570aa3
9 years ago
Artur Signell
b20922110d
Method for requesting column width recalculation (#16748)
Change-Id: I089f08a056a358d9857ce6608293878e2b8bbd9e
9 years ago
Jouni Koivuviita
5276f103c5
Fix documentation typo
Change-Id: I7ae157f0fa4a352f16adb0634cbc545c14cb34f3
9 years ago
Henrik Paul
22eebbd639
Workaround for firefox miscalculating row widths (#16606)
Change-Id: I7c6aeed36fe81a51feffe05e687527f08ac2bd65
9 years ago
Leif Åstrand
ee1fa83504
Show editor save error (#16602)
Change-Id: I2727a9fabef4291798e97495c2df86b077387cbb
9 years ago
Henrik Paul
0e141e31bb
Highlights erroneous cells in Grid editor (#16575)
Change-Id: Ie1f9d738db7a03ddb01b968782ad5e4877af1d7e
9 years ago
Jouni Koivuviita
0c82dad0ab
Grid editor theme redesign (#16593)
Editor theme is now more flexible with regards to CSS. There are now
separate elements for containing the edited cells and the “footer”
which contains an optional message area and the save and cancel buttons.
Change-Id: I9addcb6adca792a9251ffada99fbe9b77502c77a
9 years ago
Johannes Dahlström
a15f284795
Grid columns can now be marked as non-editable (#16538)
Non-editable columns are not assigned editor fields. When the editor is active,
any non-editable content is not displayed (this should changein the future).
This is separate from setting the property or editor field read-only - in those
cases the field is still used to display the data which may not be desired and
will fail if there is no converter.
Also add Column.setEditorField(Field<?>) and the corresponding getter.
Change-Id: Ice17c357895cb63a8e1bfd6abaffc1d803399e98
9 years ago
Artur Signell
b5b98e4744
Revert "Grid now uses ObjectRenderer by default (#15417)"
This reverts commit abaec0217b
.
Change-Id: I7f8de3ee803b6de1957ad04b5b1b3bf210783826
9 years ago
Henrik Paul
323e8bb458
Makes it possible to change save/cancel captions in Grid editor (#16551)
Change-Id: I4e303613f66a13b3ad6a9b2284537e5548391a4a
9 years ago
Henrik Paul
7cffb158ce
Speeds up column adding in Grid (#16474)
Grid.onStateChange is now about 40% faster when adding columns,
and setting several column widths has now way less overhead.
Change-Id: I7bd900324207bfb2543a1a90390665b90206aefd
9 years ago
Henrik Paul
103b177475
Editor save/cancel buttons stay visually in place (#16562)
Change-Id: Ia63ffc36bee83e1bd20dc6e1a83616f94574a89b
9 years ago
Henrik Paul
0533c6d9c8
Grid editor save/cancel buttons can now be rendered on top (#16534)
Change-Id: Ie70588885f0c876757df96c0deffe7e020cc29e5
9 years ago
Teemu Suo-Anttila
e6ff02e314
Make Grid and renderer buttons look like Vaadin NativeButton (#16260)
Change-Id: I23a2ee3986360746f0978fa93c96d64fc4f7f442
9 years ago
Teemu Suo-Anttila
a6cb362fa4
Disable and restore editor and scroll locking on setEnabled (#16502)
Change-Id: I26b612f5a412c4e056d02799ab8f83429ab46cac
9 years ago
Henrik Paul
abaec0217b
Grid now uses ObjectRenderer by default (#15417)
Change-Id: I2aa8105c0eadbadb29f9aab9e3e3aeb21629f6f3
9 years ago
Teemu Suo-Anttila
425e91b77d
Prevent text selection when multi sorting with header clicks (#16275)
Change-Id: I294b60f9aa613bc976adcc1d265e4b260dda1876
9 years ago
Teemu Suo-Anttila
74976a7ffc
Fix Editor creating fields before client Grid can attach them (#16214)
This patch includes some race condition handling.
Change-Id: I6ab3cf15a67de722181b2718ab85b6b4a6bcb997
9 years ago
Johannes Dahlström
7ddaaae384
Parameterize client-side Grid.addColumn to return the argument type (#16262)
This allows invoking custom methods on the return value.
Change-Id: I5f2749b792db3627b46e676aee82dc672fec7113
9 years ago
Leif Åstrand
911972c58b
Make Grid react to theme changes (#15418)
Change-Id: Id67e378a0363a1c84cf08552a1528d612f6d43fe
9 years ago
Henrik Paul
8e4b607730
Adds error handling to Grid Editor (#15556)
Change-Id: I93551548aad280c4e0193d65a066976d40d65a86
9 years ago
Teemu Suo-Anttila
35372dc1d3
Add ItemClickEvents to Grid (#15449)
Change-Id: I743f4de9fd11c5d81b11a3b8f2e0957293c5587c
9 years ago
Artur Signell
bf8836bb56
Separate pure client side util methods to a new class (#15553, #15544)
* Deprecated old methods in Util for backwards compatibility
Change-Id: I9de5e6b930d9f2c0268967dc7b1cf465e6310280
9 years ago
Teemu Suo-Anttila
329a247563
Fix Grid editor hanging on exception in commit (#15536)
This patch adds a minimal editor subpart support.
Change-Id: I36a81cb432f71821715cb60338a07a289bdae18d
9 years ago
Teemu Suo-Anttila
81165cf0bd
Change Grid default selection model to Single (#15435)
Change-Id: Iba651c043fa47125b12d17371947042cbb03a589
9 years ago
Teemu Suo-Anttila
395955d960
Move column constants from state to GridConstants (#15510)
Change-Id: I9dd103d2f9725499823231881c432696f05b80db
9 years ago
Teemu Suo-Anttila
ab6cb8ed35
Fix header texts to captions in Grid client side (#15511)
Change-Id: Ibd6ceae1148820a6644271986e5ea3aab36b08fa
9 years ago
Teemu Suo-Anttila
2e4677b67a
Fix DefaultTextRenderer warning with String data (#15430)
Change-Id: I04eae1e82da6bb0213be19599c7d8fc3085a92a5
9 years ago
Henrik Paul
464cab6680
Distribute GridUtil methods where they are actually used (#13334)
Change-Id: I10f015d0f5fce8f005a4ebdfeb218025459cf751
9 years ago
Johannes Dahlström
8355e9d00f
Make disabled Grid nonfocusable and ignore events (#13334)
Change-Id: Ie017b0449c84ec1afd902503712133ab095282d8
9 years ago
Henrik Paul
b6910633fe
DefaultTextRenderer shows nulls as empty strings (#13334)
Change-Id: I1fa88cbbb946b932a2a453392a50aff91c36671b
9 years ago
Teemu Suo-Anttila
ab07a2ef32
Fix cache updating in AbstractRemoteDataSource on row remove (#13334)
Also contains a minor performance tweak for row adding in start of the
cache and updates to cell focus logic.
Change-Id: Ia64e43dd5ae8777014885b5e7dd05cb31b54eae2
9 years ago
Teemu Suo-Anttila
e4aa47017a
Prevent scrolling when adding rows above the focused cell (#13334)
Change-Id: Ic9c9285bae16f7ddec72f621976667ee68a7c103
9 years ago
Leif Åstrand
fe6f23946a
Set @since values for Grid classes
Change-Id: Ib0c7d23c2a963e24ecca7769f6b179826be55102
9 years ago
Henrik Paul
434fb5bf5c
Heights are now double precision floats (#13334)
Change-Id: Id9e1dd4b4a480dd512f3dd78fde2f9a0256087e9
9 years ago
Johannes Dahlström
7eb1b4f173
Change "editor row" to "editor" in style names (#13334)
Change-Id: I690c8c17c673ec2d77870cf305dee1ac1b9bc3be
9 years ago
Teemu Suo-Anttila
ca62a4a1f7
Use CellReferences everywhere in Renderer APIs (#13334)
This patch adds getElement() to RowReference and CellReference
Change-Id: I3df6e50256f628e5cdb5d64d741ff1eb59e8e1c3
9 years ago
Teemu Suo-Anttila
1326e5cf76
Use CellReference in Grid events and event handling (#13334)
Change-Id: Ie4ed85e56f0c23850eec56518a7493f5ed3257bd
9 years ago
Leif Åstrand
12f3e37776
Use CellReference instead of FlyweightCell in Grid APIs (#13334)
Change-Id: I519e433219a028e99678574227ca44d5b66d07bc
9 years ago
Johannes Dahlström
303216675c
Make editor request API easier to use (#13334)
Change-Id: I53f2cf8f248aaa3798a82b0a1f42d320ca9c2e05
9 years ago
Johannes Dahlström
6ed909f2c6
Change "editor row" to just "editor" in method names and javadoc (#13334)
Change-Id: Idafdbe3d71a38a979e1eeb07c527f66ce61ccfa9
9 years ago
Johannes Dahlström
4a3a97c0d0
Rename "active" row/cell to "focused" (#13334)
Change-Id: I7a507db8ec62b2e669cc2562cbfaf1693d394f6e
9 years ago
Jouni Koivuviita
48904a34a2
Grid theme API changes and style fixes
Renamed decorative element style names:
- “headercorner” -> “header-deco”
- “footercorner” -> “footer-deco”
- “horizontalscrollbarbackground” -> “horizontal-scrollbar-deco”
The “-stripe” style name is now added for odd rows, not even (like in
all Table themes).
Re-implemented the Base mixins for Grid and Escalator. They are now
used for all themes, which should make future development easier
because things should only be implemented in one place.
This change makes the theme also less brittle hopefully, because it
reduces the amount of pixel calculations for paddings etc. and relies
more on plain CSS.
The Base theme now offers many variables for extending themes. This
reduces unnecessary CSS output, and makes it easier to maintain
multiple themes for the Grid.
Added a box-shadow and box-sizing mixins to Base.
Converted all CSS comments to Sass comments.
Change-Id: Iba925062c754c115b5f15e155659cfdccc702945
9 years ago
Teemu Suo-Anttila
b08392ecae
Move SortDirection from grid package to data package (#13334)
Change-Id: Id8fecbee0171b783a62d747433667267f530a6a7
9 years ago
Teemu Suo-Anttila
d7b53ac359
Fix keyboard navigation from footer/header to body (#13334)
Change-Id: I2537a0931e26e001f641b27f7bb428e7941be56f
9 years ago
Henrik Paul
30e9ac4a5a
Fixes an issue with Escalator.getVisibleRowRange() if it's empty
Change-Id: I091248c4b4151769b351b45b7715d116de56c41a
9 years ago
Johannes Dahlström
8fbd9973b7
Remove unused "header-active" classname and style (#13334)
Change-Id: I11de89a69161d9b355d0de63b8a61470259b518e
9 years ago
Teemu Suo-Anttila
d5295b6257
Fixes removing Widgets from Grid header/footer
Change-Id: Ic2872fec49851ea3c8ed32ca2a77dcbd27e739a8
9 years ago
Teemu Suo-Anttila
b90c84f755
Refactor Grid client side package structure (#13334)
Change-Id: Iab81d2344480d2b60303172a96f4e5e4fa8e1623
9 years ago