Ahmed Ashour
10bd7544fd
Improve naming of fields and variables (#10242)
* Variable names to conform to naming convention.
* Use static constants where it makes sense
6 lat temu
Ahmed Ashour
adcf2e2e80
Use enhanced for loop instead of Iterator. (#10100)
6 lat temu
Ahmed Ashour
11ddb11cbc
Update modifier order to follow Java Specification suggestions (#10050)
Also includes some other minor cleanup.
6 lat temu
Ahmed Ashour
f6e082f517
Use String.isEmpty()
6 lat temu
Henri Sara
027b14f484
Refactor WidgetUtil.findWidget()
Adds two variants:
- find widget of any type
- accept all or only exact matches
Updates uses of findWidget(e, null) in non-compatibility packages.
7 lat temu
Artur Signell
504b3c4c65
Use diamond operator where it can be used
Does not modify compatibility packages to keep to closer to Vaadin 7.7
Change-Id: Ic9c4944eb90218290545a04ecd7455eb63910012
7 lat temu
Artur Signell
588f3cc7f8
Update copyright year to 2016
Change-Id: I6485dee1ebba12b180a9063ed4b530f7dc63cd77
7 lat temu
Artur Signell
eeffa805a2
Remove trailing whitespace from code and javadoc
Change-Id: I4c852b7f9928e190572876690d5bef1234494a5d
7 lat temu
Artur Signell
6d54d78944
Format using Eclipse Neon
Change-Id: I33f1cc33969ff74a95b1b8cc0f2add589be5aae0
7 lat temu
Teemu Suo-Anttila
18fe7aa260
Build vaadin-client with maven
Change-Id: I36c426086a2b957f6f738d17470c499a01ddac3b
8 lat temu
Artur Signell
dcfebeb461
Revert to old simpleName logic (differs for inner classes) (#15544)
All existing recorded TB tests contain Outer$Inner and not Inner so they will
fail if this is switched to using Class.getSimpleName
Change-Id: Ic79355fbc61403ed2929271d302db35e20dda38c
9 lat temu
Leif Åstrand
93c56ee184
Get rid of WidgetUtil.getSimpleName (#15544)
Change-Id: I345938e5e2196bbc8438b3401879507994b3b050
9 lat temu
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 lat temu
Artur Signell
2c8c29e68b
Update remaining copyright years to 2014
Change-Id: I1fc2bd735b538ebac6d4f41fc8536f26795cc85f
10 lat temu
Leif Åstrand
a9845c9c10
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.
Change-Id: I7da943a77b8d0d0b9185d8c70f87d676a275d24b
10 lat temu
Leif Åstrand
2152829c65
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.
Change-Id: Iea5547f789edc77c3b4ac95a5e2eb34d2717999e
10 lat temu
Teemu Suo-Anttila
d05dd140ce
Add ' to allowed characters in LegacyLocator validation (#13329)
Change-Id: I2503ce46b1abbf2fd237eaff538d77e565d25eb6
10 lat temu
Henri Sara
a8947f7f64
Allow also dots and spaces in legacy locator PIDs (#13017)
These characters are used in automated tests of Vaadin itself.
Change-Id: I7cff655e36f39c48f539487609e58eac90ec8761
10 lat temu
Henri Sara
caddd1e323
More flexible criteria for using LegacyLocatorStrategy (#13017)
Change-Id: I88070e09010de77ac4656df47a308aae635a8328
10 lat temu
Henri Sara
bf77c65bd4
Allow also subparts in LegacyLocatorStrategy (#13017)
Change-Id: I7df7cbd03497168b772ee0636df05afb7bcc7995
10 lat temu
Henri Sara
e941ab1391
Expand allowed character set for LegacyLocatorStrategy (#13017)
Change-Id: Ib95fecb67e97d71fb68faee82aa9ebf458c735f3
10 lat temu
Patrik Lindström
cbfffae957
Add VaadinLocator multielement queries (#13016, #13017, #13018, #13019)
Change-Id: If6faa939953023761dccaf256001c6ece018d5e8
10 lat temu
Patrik Lindström
d70d6a2cac
Make component predicate matches exact (#12913)
Change-Id: Ia9a938977437a2188a6f5b207789058abce62965
10 lat temu
Patrik Lindström
5b8b824942
Fix TB3 style selectors (#12902, #12904)
Change-Id: Ia1ad464b6890248e700ed2dbea03746671210eee
10 lat temu
Henri Sara
5cc968b378
Support mixed legacy and VaadinFinder locators (#12641, #12642, #12643)
ComponentLocator tries to use all available locator strategies until a
match is found (#12641 ) and VaadinFinderLocatorStrategy also accepts
simple indexed paths (#12642 ) with legacy locators as a backup. To
enable mixed use of locators, LegacyLocatorStrategy now implements
getElementByPathStartingAt() (#12643 ).
Change-Id: I6b763565adef0e294b353ef6e2dfdf70ae0d77a9
10 lat temu
Jonatan Kronqvist
72db2044ea
Implemented the extensions to ComponentLocator needed for TB4 #12485
Change-Id: I8c7db91967003290bbff4e703235aa36d5e9e1f3
10 lat temu
Jonatan Kronqvist
6ab9e2d060
Allow different locator strategies #12485
Refactored the ComponentLocator class to allow for implementing
different locator strategies.
Change-Id: I93f3decbce4d4361cc605bcf0ce4379a187c482c
10 lat temu
Artur Signell
3e79704b63
Do not use generated ids as anchor points for TestBench (#11634)
Change-Id: I831af0d72d009405ceed3e201bc135dffb43c8b2
11 lat temu
Leif Åstrand
c926a09f54
Global code reformat
Change-Id: I4b3c74ede518aa2712038d1451974a93cdecabc2
11 lat temu
Artur Signell
7354052432
Fixed ComponentLocator to be backwards compatible
The WAI-ARIA fix (#11180 ) introduced a new FlowPanel in a PopupDateField popup which is now handled properly.
Change-Id: I192018c95d6d1502e3a50e5c30d4125d467ddf94
11 lat temu
Artur Signell
fb68bd5303
Updated copyright notices and added missing license headers
Change-Id: I419ce4581d1a8b84d4236a85a1333d23f3423b2e
11 lat temu
Leif Åstrand
9d6d48a002
Restore compatibility with selectors without slots (#9893)
Change-Id: Iea7661ff39d9903f78e290086c1c51f270c8c60d
11 lat temu
Leif Åstrand
ac1b5cb7a1
Fix selector backwards compatibility (#9893)
Change-Id: Ib69645f9cc866893b8a85e369414b7c15b440b6e
11 lat temu
Leif Åstrand
7e4651c719
Refactor client-side ordered layouts (#9893)
* Rename VOrderedLayout to VAbstractOrderedLayout
* Move VAbstractOrderedLayout to the orderedlayout package
* Extract Slot to a standalone class with Icon as a private inner class
* Extract CaptionPosition to a standalone class
Change-Id: Id9450b30838a4511bd3c3b7cf371e145274ff198
11 lat temu
Artur Signell
65981705b4
Renamed ComponentState to AbstractComponentState (#9032)
Change-Id: Ida6e0cb7064580be36627fd735d79b82ee69356d
11 lat temu
Johannes Dahlström
d67ed23096
Move widget classes from c.v.c.ui.<widget> to c.v.c.ui (#9392)
Change-Id: I5bc64ed7446ca6f87311bf63f49fb883cfd8b538
11 lat temu
Johannes Dahlström
e6c881bb47
Rename Application.getRootConnector to getUIConnector (#10158)
Change-Id: I9f7714cc8a723550e521b1cd0fb70499f3f12138
11 lat temu
Leif Åstrand
d70d4c209d
Stop attempting to build dom path if reaching the root (#9534)
Change-Id: I5755bc292b9e752765086fcce8ce5edaa5300f34
11 lat temu
Artur Signell
faf3766f7d
Avoid NPE if a child cannot be found (#10039)
Change-Id: I756b5d8a66b89eedb335c23b1ae9610bdb80b2d0
11 lat temu
Jonatan Kronqvist
facd941115
Fixes #9828 - ComponentLocator now makes use of debug IDs if present
Change-Id: I58aeee42ef386dd3eef8fdf25f8dd430eb22774c
11 lat temu
Artur Signell
83a0a0c124
Reverted previous fix and fixed in a more compatible way (#9534)
11 lat temu
Artur Signell
7aafd30a4d
Workaround for Firefox 15 element comparsion issue (#9534)
11 lat temu
John Ahlroos
8e83c36157
Fixed ComponentLocator to check for null paths. (fix for broken
BooleanTextField test)
11 lat temu
John Ahlroos
33626d382d
Applied CSSLayout patch for #9357
11 lat temu
Leif Åstrand
7d25670284
Reformat project
11 lat temu
John Ahlroos
2fd07a0bd2
Refactored and cleaned up the newly add ordered layouts
11 lat temu
John Ahlroos
e517a95a33
Fixed interpreting caption domNode paths in VBoxLayout in
ComponentLocator
11 lat temu
John Ahlroos
6744d2c114
Fixed ComponentLocator in the case where tests refer to an
AbsolutePanel inside a Gridlayout which has been removed.
11 lat temu
John Ahlroos
b92a93f86a
Another fix to ComponentLocator, this time fixed locators with
VBoxLayout/domChild
11 lat temu
Artur Signell
c14171d134
Renamed UI package which accidentally had been renamed to upper case
11 lat temu