Anna Koskinen
3afe45849e
Code cleanup (#12333)
- removed unused private methods
- removed unused private variables
- removed unnecessary initializations
- removed unnecessary substring(0)
- removed inner assignments
- renamed private methods that started with upper case
- renamed static final variables to use upper case
- converted to use non-deprecated options
- suppressed unavoidable warnings
- divided long Strings to multiple lines
- added missing types
- added missing JavaDoc parameters
- formatting
- updated comments & JavaDocs
2 years ago
Anna Koskinen
32764eca80
Update copyright year range. (#12215)
* Update copyright year range.
3 years ago
Teemu Suo-Anttila
1f28031c4b
Update since tags (#11001)
6 years ago
Ilia Motornyi
70e00ec762
Add DesignContext getter to ComponentCreatedEvent (#10943)
6 years ago
Ilia Motornyi
6541b7bad2
Update copyright year (#10761)
6 years ago
Ahmed Ashour
ab18b6c58e
Remove unneeded .toString() (#10141)
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
867006d2f8
Use String.isEmpty() (#10045)
6 years ago
Ilia Motornyi
0740ac116e
Partial javadocs fix for vaadin-server
7 years ago
Aleksi Hietanen
ae567a02f3
Add @FunctionalInterface annotation to interfaces where applicable (#7954)
Closes vaadin/framework8-issues#548
7 years ago
Denis Anisimov
b8e84da2e2
Correct all tests that introspect classpath for Vaadin classes.
Fixes vaadin/framework8-issues#399
RemoveListenersDeprecatedTest test is fixed.
Corrections are made to make the test above passes.
Change-Id: I209a4693d241a1488b69b4742f48549dbf4bf0ac
7 years ago
elmot
c0d712cdbe
Renaming DataSource -> DataProvider to avoid collisions with javax.sql.DataSource
Change-Id: I6babcadc72f3f37feff98088eee23b153a080f11
7 years ago
Per-Åke Minborg
0f42869ce1
Use final modifier where appropriate
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7226
7 years ago
Denis Anisimov
9abe01a588
Introduce "shouldWriteDefaultValues" property to DesignContext.
Change-Id: I979448e5af032333a6a2f7b99b11ab16c41d7b18
7 years ago
Aleksi Hietanen
2cdb3b3932
Add utility for outputting the full declarative syntax of components
Change-Id: I4bc740154ffb5a30892b1859a7550a7aeff94fb3
7 years ago
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 years ago
Artur Signell
6c7d2dafcd
Map <vaadin7> declarative prefix to com.vaadin.v7.ui
Change-Id: I3b529cf4c918eb6ce733fa6d126428d759c88345
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
Henri Sara
2e6c40a374
Add @since for DesignContext
Change-Id: I92fbe5ed5bc8e770b6289b4cfae725f837b8eaef
8 years ago
John Ahlroos
46556f9dbb
Store unknown attributes in DesignContext #19749
Change-Id: I1e90d422ec716092e6d407b6965902f48eac1646
8 years ago
Teemu Suo-Anttila
a6653d3fe4
Migrate vaadin-server build to maven
Change-Id: I5c740f4e9cb28103bab199f9a552153d82277e7e
8 years ago
Henri Sara
a97534f4c2
Add @since for 7.5.7 changes
Change-Id: I253c6074167bae60149a5f2f0d22c6de160978d4
8 years ago
Henri Sara
1011cff7e8
Use "vaadin-" as default prefix for Design (#18957)
Change-Id: Ic9e0650e5c8e305258cbce033c4ef3f33307bf0f
8 years ago
Leif Åstrand
2227124925
Add missing @since for 7.5
Change-Id: Id8f78c9ef7670c5413d3b7d28eef732dd1b7512d
9 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
John Ahlroos
72d2fabc95
Add getter for local id #17444
Change-Id: I0007bdf111bf516cb9e2f244b63fde42213f5c98
9 years ago
Mika Murtojarvi
6abcbdf1ee
Allow setting local id via DesignContext (#16584).
Change-Id: Ie599e8517823ca431d2d9e9232217db53444d7aa
9 years ago
Leif Åstrand
b7808ca283
Add selective data write support to AbstractSelect (#17148)
Change-Id: I06f82fe05f3b370af85538c0a85f2e60ee28d72d
9 years ago
Leif Åstrand
015cfe537f
Allow customizing declarative tag names (#16933)
Change-Id: Icadaaab9166763e8e2086c6c114efd799ab580d6
9 years ago
Alexey Fansky
9086245a6d
Using ComponentFactory in DesignContext.getDefaultInstance() (#16990)
Change-Id: I0bb3e7975f2b48cdc589de740cb07ac893b13461
9 years ago
Leif Åstrand
5830a1f96b
Add pluggable mechanism for loading classes for a design (#16583)
Change-Id: I2ac17e3c5a7c36492567238af8f4cf6723b0ec69
9 years ago
Leif Åstrand
648b493cbb
Use non-blocking Map implementation for caches (#16582)
Change-Id: Id2d3bc317f6763480b2ef5ce71244f048c5cfc26
9 years ago
Artur Signell
a66eeb58e8
Do not loop infinitely when encountering an invalid tag name (#16522)
Also do not write to sysout
Change-Id: Idae318a851323cd27b3363d12e8080101e996d9c
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
Matti Hosio
6d75a89e8d
Do not throw exception when trying to bind a preinitialized instance field (#7749)
Change-Id: I8b40e667d03b63e05f006e7cedf108345591d118
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
353206974a
Fix writing issues (#7749)
* A root component with @DesignRoot must always use its superclass for
default values. Otherwise the written design will be empty as the
design is read in the constructor.
* A component which is not the root must not write its component tree
if the component tree is generated in the constructor. This is a
simplification which should be good enough for most cases (can't add
children in constructor and also using addComponent - in this case
the component added with addComponent will not be written).
* Test cases for nested templates
Change-Id: I3a384d1d8654b9865a3a790ebeb055a300a62135
9 years ago
Artur Signell
3b75f2b148
SynchronizeFrom/ToDesign -> read/writeDesign (#7749)
Change-Id: Ie5e420ac5d62a2aa3206051888e6dd0f8f30df11
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
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
9730b6def1
Declarative feature improvements (#7749)
Change-Id: Ie04db36ad08f686bf6b173241652836f639d3bd9
9 years ago