Hk-tang
f6a9a9ad48
Change to using StringBuilder (#11941)
Should use a StringBuilder to accumulate strings in a loop, to avoid the performance cost of repeatedly constructing strings.
4 years ago
Ilia Motornyi
d543e47bec
Enable Maven plugin for Eclipse formatting (#10829)
6 years ago
Ilia Motornyi
307bdc7db6
Fixes declarative update of existing Composite (#10825)
Fixes #10170
6 years ago
Ilia Motornyi
6541b7bad2
Update copyright year (#10761)
6 years ago
Ahmed Ashour
a9c83ba07e
Use .toLowerCase and .toUpperCase(Locale.ROOT) (#10182)
* Use .toLowerCase and .toUpperCase(Locale.ROOT)
* Spaces
* add spaces after if(
6 years ago
Ahmed Ashour
780e9cee6b
Simplify lambda expressions (#10198)
* Simplify lambda expressions
And remove unneeded 'return' keyword.
* Format
6 years ago
Ahmed Ashour
763a5cbe8c
First sentence of javadoc should end with a period (#10114)
Also includes minor other javadoc and formatting fixes.
6 years ago
Ahmed Ashour
3c7a951411
Use StandardCharsets.UTF_8 (#10113)
6 years ago
Ahmed Ashour
7fd440d244
Use single character for StringBuilder.append (#10102)
6 years ago
Leif Åstrand
921cd76504
Unify basic instance creation and related error reporting (#9704)
6 years ago
Artur
a5b1741e47
Support using Composite and CustomComponent as a Design root class (#9017)
Fixes #6043
7 years ago
Artur
e6eb43f9ac
Load declarative classes using thread context class loader (#8532)
* Load declarative classes using thread context class loader
Fixes #8528
7 years ago
Leif Åstrand
95d016c085
Global java code cleanup using Eclipse Neon.1
7 years ago
Per-Åke Minborg
25eba3c796
Use lambdas where appropriate
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf722d
7 years ago
Per-Åke Minborg
92f1d4c34c
Use Collection .isEmpty() over .size() == 0
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf721f
7 years ago
Per-Åke Minborg
41c183a9b6
Use String .isEmpty() over .equals("")
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf721e
7 years ago
Per-Åke Minborg
e4bc497e91
Use operator assignments where possible
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7212
7 years ago
Per-Åke Minborg
4bd1ce19eb
Add private constructor for utility classes
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7210
7 years ago
Artur Signell
588f3cc7f8
Update copyright year to 2016
Change-Id: I6485dee1ebba12b180a9063ed4b530f7dc63cd77
7 years ago
Artur Signell
eeffa805a2
Remove trailing whitespace from code and javadoc
Change-Id: I4c852b7f9928e190572876690d5bef1234494a5d
7 years ago
Artur Signell
6d54d78944
Format using Eclipse Neon
Change-Id: I33f1cc33969ff74a95b1b8cc0f2add589be5aae0
7 years ago
Artur Signell
94ae194409
Support static inner classes when reading/writing declarative files (#20038)
Uses outer class name as package name for static inner classes. When reading,
there is no way to know that the class is an inner class so only when creating
a class fails, an inner class is tried as a backup.
Change-Id: I3ebf5b2da11384f9dc64072a3dc8ee132607237c
8 years ago
Teemu Suo-Anttila
a6653d3fe4
Migrate vaadin-server build to maven
Change-Id: I5c740f4e9cb28103bab199f9a552153d82277e7e
8 years ago
Leif Åstrand
f71a6f1e5d
Clean up compiler warnings in Design.java
* Remove unused code
* Properly close streams
* Avoid unsafe casts
* Fix inconsistent javadocs
Change-Id: I20e3664ab8b0fc9e3a8037fc05a469a4f8a633ec
9 years ago
Henri Sara
1011cff7e8
Use "vaadin-" as default prefix for Design (#18957)
Change-Id: Ic9e0650e5c8e305258cbce033c4ef3f33307bf0f
8 years ago
Denis Anisimov
7ae4649a07
Always use charset for String.getBytes() method (#18863).
Change-Id: I15ce5a7922aebffc1a05ac55663033f7e5134d0c
8 years ago
Pekka Hyvönen
201ae89df5
Updated all empty @since tags to be published in 7.5.0
Removed invalid @since from MarginInfo.
Change-Id: I7ad0dee47e8686c5cbca05ca1363ae8741642be8
9 years ago
Leif Åstrand
015cfe537f
Allow customizing declarative tag names (#16933)
Change-Id: Icadaaab9166763e8e2086c6c114efd799ab580d6
9 years ago
Leif Åstrand
5830a1f96b
Add pluggable mechanism for loading classes for a design (#16583)
Change-Id: I2ac17e3c5a7c36492567238af8f4cf6723b0ec69
9 years ago
Mika Murtojarvi
bedbe2bf81
Allow reading and writing empty designs (#7749).
Change-Id: Id66201d040d07f0e0d731418624c9b702b2d0d3b
9 years ago
Artur Signell
8d7783b4e9
API refactoring (#7749)
Change-Id: I835756b240bc9ece885acdc8f43ec6a1599bb7c5
9 years ago
Mika Murtojarvi
87c559026a
Update the javadocs in declarative (#7749).
Change-Id: If4fd1f0434c1c6d78e47fc503b49781c35494f84
9 years ago
Matti Hosio
3cfe26623b
Add namespace element for custom components (#7749)
Change-Id: Iea7e4057df5a61805ba2f6c087fbb3bcd23f68c7
9 years ago
Mika Murtojarvi
7818595589
Updates for the javadocs of declarative (#7749).
Change-Id: I623ba0c17673144f0886556937d25f80ea1f3ffd
9 years ago
Artur Signell
10b30728e9
createNode -> createElement
Change-Id: Ifb7342a860fa73d51dc462b788a4530abb0bb52f
9 years ago
Artur Signell
898e28d6ae
Add public API for loading design based on @DesignRoot (#7749)
Change-Id: Ic6f201a45d66aefe9ec93ba3be5a75b6532bf014
9 years ago
Artur Signell
a27ea03db9
Refactored API for loading designs (#7749)
Now contains read methods
* Component read(InputStream design)
* DesignContext read(InputStream design, Component rootComponent)
* DesignContext read(String filename, Component rootComponent)
and write methods
* write(Component component, OutputStream outputStream)
* write(DesignContext designContext, OutputStream outputStream)
Change-Id: I9d6862240c5b2018ec39a164a54e7c047a00971b
9 years ago
Artur Signell
2789f70167
Rename LayoutHandler to Design (#7749)
Change-Id: I86fcf9062804c7eb71d460d2003a3f5eb8d775eb
9 years ago
Matti Hosio
a025d511bf
Embed DesignSynchronizable methods to Component interface (#7749)
Change-Id: I06de4d2065dee107da40c2a4941e7d9e22f0832b
9 years ago
Matti Hosio
c4aab1fe91
Some logging improvements and minor fixes for Declarative (#7749)
Change-Id: Iccb1bbf3be1a030d4902165dbf59ecea3e8b134b
9 years ago
Mika Murtojarvi
409727ec61
Fix errors that affect validation builds (#7749).
Change-Id: Idfed1c2f87812afcbb961eb238a36a1e09d61952
9 years ago
Matti Hosio
18b333ee3d
Support for automatic binding of the fields of the root layout (#7749)
The fields are bound to the components generated when parsing the design. The binding is done based on localId, id or caption.
Change-Id: I32ecac3cb76737c9d9d05a123db85fe65d55369c
9 years ago
Mika Murtojarvi
be35a9b3f1
Fixes for the public API of DesignContext.
Also adds tests for parsing and for finding components by id.
Change-Id: I3202a19f1699ee906f97cc57b08a9b2fd540f51b
9 years ago
Matti Hosio
405ae14a6b
Declarative: Use Element in DesingSynchronizable method parameters
Change-Id: I18f49d3248e3ecacd08bfa2e2baa03dd0329b0c7
9 years ago
Mika Murtojarvi
ecb037d2d9
Vaadin declarative: parser and html generator.
The parser creates a Component hierarchy from a given html file. The
html generator does the converse, outputs html given a component
hierarchy with a single root.
Current TODOs: 1) add automatic tests - some of the functionality may
not have been tested in any way. 2) Remove files that are not relevant
for this change set but were accidentally included in a commit.
Change-Id: I222e01291aab75c2249d4aa4904f16fb153d4397
9 years ago