aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/ConnectorTracker.java
Commit message (Collapse)AuthorAgeFilesLines
* Make Vaadin component handling proxy-friendly (#14639)Juuso Valli2014-09-121-1/+1
| | | | | | Comparisons with the ==-operator between a proxy and it's underlying instance fail, so we should use a custom equals method instead. Change-Id: Iaa86ae830fecbedfb1f55636e25f5affebf5aba3
* replaced all org.json.* usages with elemental.json.* (#8942)Taras Hupalo2014-08-261-16/+17
| | | | Change-Id: I4809fbbdb48f3e36c8e1da8552ff3fa734714105
* Optimizes initial sizes of frequently used Collections. (#14223)Fabian Lange2014-07-141-44/+47
| | | | | | | | | There are a few places in frequently used core classes which could initialize collection classes with the correct (or slightly oversized) length. Maps are initialized with 2x the size due to its load factor. Change-Id: I3aee5a60602937a8550ca5a200ec2a529ff36fe9
* Avoid object creation in getAllChildrenIterable in most cases. (#14142)Fabian Lange2014-07-041-1/+1
| | | | | | | | | | | | API change from: public static Iterable<ClientConnector> getAllChildrenIterable(final ClientConnector connector) to public static Iterable<? extends ClientConnector> getAllChildrenIterable(final ClientConnector connector) avoids creating wrappers in case the component has either no subcomponents or no extensions. This covers the vast majority of components. Change-Id: I48ffd2f26f09c265fae6e1aaabdbaa655d52ffb8
* Ignore -1 sync id on the server (#14084)Leif Åstrand2014-07-011-2/+15
| | | | Change-Id: Iad73c44852c207f29381d59bea25275ac8f24dbd
* Optimizes ConnectorTracker.cleanConnectorMap (#13803)Fabian Lange2014-05-221-45/+32
| | | | | | | | | | | | | | | cleanConnectorMap is a hot method. This change improves multiple code paths: 1) The global resource handler is no longer get()ed from the session for each connector (was in two loops). 2) The ConnectorTracker is no longer get()ed from the UI for each connector (was in one loop). 3) values() iterator for ClientConnectors replaces keySet() iterator + get(key) call 4) use getUI() from ClientConnector instead manual method. 5) moved removeUnregisteredConnectors to ease inlining and readability. Change-Id: I25ff5bc32d27d30ecd8d354922ec6e4a02b05921
* Merge changes from origin/7.1Artur Signell2014-04-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e77e73c Update copyright year to 2014 Conflicts: client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java client/src/com/vaadin/client/ApplicationConnection.java server/src/com/vaadin/data/util/converter/StringToNumberConverter.java shared/src/com/vaadin/shared/ui/ui/PageState.java shared/src/com/vaadin/shared/ui/window/WindowState.java theme-compiler/src/com/vaadin/sass/SassCompiler.java theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java theme-compiler/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluator.java theme-compiler/src/com/vaadin/sass/internal/expression/BinaryExpression.java theme-compiler/src/com/vaadin/sass/internal/expression/BinaryOperator.java theme-compiler/src/com/vaadin/sass/internal/expression/exception/ArithmeticException.java theme-compiler/src/com/vaadin/sass/internal/expression/exception/IncompatibleUnitsException.java theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandler.java theme-compiler/src/com/vaadin/sass/internal/handler/SCSSDocumentHandlerImpl.java theme-compiler/src/com/vaadin/sass/internal/handler/SCSSErrorHandler.java theme-compiler/src/com/vaadin/sass/internal/parser/CharStream.java theme-compiler/src/com/vaadin/sass/internal/parser/Generic_CharStream.java theme-compiler/src/com/vaadin/sass/internal/parser/LexicalUnitImpl.java theme-compiler/src/com/vaadin/sass/internal/parser/LocatorImpl.java theme-compiler/src/com/vaadin/sass/internal/parser/MediaListImpl.java theme-compiler/src/com/vaadin/sass/internal/parser/ParseException.java theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java theme-compiler/src/com/vaadin/sass/internal/parser/SCSSLexicalUnit.java theme-compiler/src/com/vaadin/sass/internal/parser/SCSSParseException.java theme-compiler/src/com/vaadin/sass/internal/parser/SelectorListImpl.java theme-compiler/src/com/vaadin/sass/internal/parser/Selectors.java theme-compiler/src/com/vaadin/sass/internal/parser/ThrowedParseException.java theme-compiler/src/com/vaadin/sass/internal/parser/Token.java theme-compiler/src/com/vaadin/sass/internal/parser/TokenMgrError.java theme-compiler/src/com/vaadin/sass/internal/resolver/ClassloaderResolver.java theme-compiler/src/com/vaadin/sass/internal/resolver/FilesystemResolver.java theme-compiler/src/com/vaadin/sass/internal/resolver/ScssStylesheetResolver.java theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java theme-compiler/src/com/vaadin/sass/internal/selector/SelectorUtil.java theme-compiler/src/com/vaadin/sass/internal/tree/BlockNode.java theme-compiler/src/com/vaadin/sass/internal/tree/ExtendNode.java theme-compiler/src/com/vaadin/sass/internal/tree/ForNode.java theme-compiler/src/com/vaadin/sass/internal/tree/FunctionNode.java theme-compiler/src/com/vaadin/sass/internal/tree/ImportNode.java theme-compiler/src/com/vaadin/sass/internal/tree/KeyframesNode.java theme-compiler/src/com/vaadin/sass/internal/tree/ListContainsNode.java theme-compiler/src/com/vaadin/sass/internal/tree/ListModifyNode.java theme-compiler/src/com/vaadin/sass/internal/tree/ListRemoveNode.java theme-compiler/src/com/vaadin/sass/internal/tree/MediaNode.java theme-compiler/src/com/vaadin/sass/internal/tree/MicrosoftRuleNode.java theme-compiler/src/com/vaadin/sass/internal/tree/MixinDefNode.java theme-compiler/src/com/vaadin/sass/internal/tree/MixinNode.java theme-compiler/src/com/vaadin/sass/internal/tree/NestPropertiesNode.java theme-compiler/src/com/vaadin/sass/internal/tree/Node.java theme-compiler/src/com/vaadin/sass/internal/tree/RuleNode.java theme-compiler/src/com/vaadin/sass/internal/tree/SimpleNode.java theme-compiler/src/com/vaadin/sass/internal/tree/VariableNode.java theme-compiler/src/com/vaadin/sass/internal/tree/controldirective/EachDefNode.java theme-compiler/src/com/vaadin/sass/internal/tree/controldirective/IfElseDefNode.java theme-compiler/src/com/vaadin/sass/internal/tree/controldirective/IfNode.java theme-compiler/src/com/vaadin/sass/internal/util/ColorUtil.java theme-compiler/src/com/vaadin/sass/internal/util/DeepCopy.java theme-compiler/src/com/vaadin/sass/internal/util/FastByteArrayInputStream.java theme-compiler/src/com/vaadin/sass/internal/util/FastByteArrayOutputStream.java theme-compiler/src/com/vaadin/sass/internal/util/StringUtil.java theme-compiler/src/com/vaadin/sass/internal/visitor/BlockNodeHandler.java theme-compiler/src/com/vaadin/sass/internal/visitor/EachNodeHandler.java theme-compiler/src/com/vaadin/sass/internal/visitor/ExtendNodeHandler.java theme-compiler/src/com/vaadin/sass/internal/visitor/IfElseNodeHandler.java theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java theme-compiler/src/com/vaadin/sass/internal/visitor/NestedNodeHandler.java theme-compiler/src/com/vaadin/sass/internal/visitor/VariableNodeHandler.java theme-compiler/tests/src/com/vaadin/sass/AbstractTestBase.java theme-compiler/tests/src/com/vaadin/sass/internal/expression/ArithmeticExpressionEvaluatorTest.java theme-compiler/tests/src/com/vaadin/sass/parser/ParserTest.java theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java theme-compiler/tests/src/com/vaadin/sass/testcases/css/Interpolation.java theme-compiler/tests/src/com/vaadin/sass/testcases/css/Selectors.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AutomaticSassTests.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Comments.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/ControlDirectives.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Extends.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Functions.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Imports.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Mixins.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/NestedProperties.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Nesting.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/ParentImports.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/ParentSelector.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/SassLangTests.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/SassLangTestsBroken.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/SassTestRunner.java theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Variables.java theme-compiler/tests/src/com/vaadin/sass/tree/ImportNodeTest.java uitest/src/com/vaadin/tests/push/BasicPushTest.java uitest/src/com/vaadin/tests/push/PushConfigurationTest.java uitest/src/com/vaadin/tests/push/PushReconnectTest.java Change-Id: Ic08c4f9aecd4c684ce74408de4e0b0d0ff617273
| * Update copyright year to 2014Artur Signell2014-04-161-1/+1
| | | | | | | | Change-Id: Ic77338304dc7e58e49f27dcdaf0bab2e00f5bba6
* | Move DragAndDropService to VaadinSession (#11409)Johannes Dahlström2014-03-311-1/+10
| | | | | | | | | | | | | | | | * ConnectorTracker.getConnector() is now DnDService-aware * Deprecated LCM.getDragAndDropService() is removed * LCM.getConnector() simply delegates to ConnectorTracker.getConnector() Change-Id: I9627d50f7386ead8d92ccbba27b4a558c03076c7
* | Remove all unnecessary semicolons reported by EclipseLeif Åstrand2014-03-211-1/+1
| | | | | | | | Change-Id: I15f6fff50e709238655a0a50f605a833e2be7d6f
* | Ignore RPC calls from components that are concurrently removed (#12337)Henrik Paul2013-09-101-0/+135
|/ | | | Change-Id: I8b97444d33b9535b9073fd705fed15a6cc2992e7
* Verify the connector hierarchy if assertions are enabled (#12271)Leif Åstrand2013-07-231-0/+50
| | | | Change-Id: I87632abe9d86927b7ba4254724fedfdb04513205
* Improving performance of ConnectorTracker (#12218)Fabian Lange2013-07-151-3/+3
| | | | | | | Swapping the if check in cleanConnectorMap to prevent unnecessary calls to isComponentVisible when the connector is in uninitializedConnectors set. Change-Id: If6305a908364f8a7bb51fd7302449c6f54c274a3
* Do not push only meta data to the client (#11490)Artur Signell2013-04-051-1/+10
| | | | Change-Id: I589ede89583be90e99fbed6fe5c0c6c1ac4d7c0a
* Removed CommunicationManager and PortletCommunicationManagerJohannes Dahlström2013-03-271-3/+3
| | | | | | | | | * Moved AbstractCommunicationManager abstract methods getThemeResourceAsStream and createBootstrapHandler to VaadinService * Made ACM non-abstract and renamed to LegacyCommunicationManager * Lifted anonymous inner BootstrapHandler subclasses into named public classes Change-Id: I31739ce8a506d572e75ca8cd5509be215e01693d
* Refactor server-side communications (#11192, #7891)Johannes Dahlström2013-03-271-0/+17
| | | | | | | | | | * Move UIDL writing from AbstractCommunicationManager to UidlWriter * Move request handling from ACM to RequestHandlers * Move server RPC message handling to ServerRpcHandler * Move portlet event notifications to PortletListenerNotifier (a RequestHandler) * Communication handlers reside in c.v.server.communication Change-Id: I087e923dbdf88c6b3fcaafbdb7f685d9d3dad0c1
* (#10563) Logging now uses parameters.Mikael Grankvist2013-02-281-32/+44
| | | | Change-Id: Icc807cc2eb391fb0118800383fc93d1e23b04570
* Updated copyright notices and added missing license headersArtur Signell2013-01-041-1/+1
| | | | Change-Id: I419ce4581d1a8b84d4236a85a1333d23f3423b2e
* Don't remove diffstate data before cleanup (#10532)Leif Åstrand2012-12-141-11/+43
| | | | | | | | * Avoid returning unregistered but not cleaned connectors from e.g. getDirtyConnectors() and getConnector() * Add some sanity checks to ensure unregistered connectors are not used Change-Id: I1103586863d2f299d50af5058233a7b4c967d4c6
* Moved StreamVariable handling from AbstractCommunicationManager toAnna Koskinen2012-12-071-0/+115
| | | | | | | ConnectorTracker to prevent untimely unregistrations through other UIs within the same session (#10112) Change-Id: Id04c97970325be65b0b3c63756a2f2e731dd60d2
* Moved isComponentVisible to separate interface (#10303)Artur Signell2012-11-201-1/+2
| | | | | | HasComponents.isComponentVisible is now SelectiveRenderer.isRendered Change-Id: Ic3b9cd65278ffc2a38ee20c76ec771ee057268bf
* Serialize and deserialize diff state manually (#9717, #9767)Artur Signell2012-09-281-3/+42
| | | | | | Extended UISerialization test to both serialize and deserialize and also validate ConnectorTracker (de)serialization Change-Id: Ifb8228bd56ec3635e4267e78160eef14dd9ff318
* Fixed serialization issues (#9640)Artur Signell2012-09-241-1/+1
| | | | ConnectorTracker diff state is now transient and thus not serialized. This could be improved in the future (#9717)
* Revert "Verify that lock is held when accessing state (#9515)"Leif Åstrand2012-09-101-3/+0
| | | | This reverts commit 998c9c97b4b7d9531028b442df4c38a33b60e5f0.
* Verify that lock is held when accessing state (#9515)Leif Åstrand2012-09-091-0/+3
|
* Remove getApplication() and add getSession() (#9402)Leif Åstrand2012-09-051-1/+1
|
* Don't mark connector as dirty when writing response (#9444, #9452)Leif Åstrand2012-09-031-1/+46
|
* Replace ApplicationResource with ConnectorResource (#9419)Leif Åstrand2012-08-301-0/+14
|
* Merged com.vaadin.terminal.gwt.server into com.vaadin.server (#9431)Artur Signell2012-08-291-2/+2
|
* Renamed com.vaadin.terminal -> com.vaadin.server (#9431)Artur Signell2012-08-291-1/+1
|
* Renamed com.vaadin.terminal.gwt.client to com.vaadin.client (#9432)Artur Signell2012-08-291-1/+1
|
* Discard reference state for invisible connectors (#9400)Leif Åstrand2012-08-271-4/+13
|
* Remaining Root -> UI renames (#8908)Artur Signell2012-08-241-3/+3
|
* Component.getRoot() -> Component.getUI() (#8908)Artur Signell2012-08-241-1/+1
|
* Renamed Root to UI, automatic rename (#8908)Artur Signell2012-08-241-18/+18
| | | | | | | | | | | | | | | | | | | Automatic rename in Eclipse of the class Root to UI with all rename options enabled, rename also embedded "Root" in variable and method names. The following classes/methods were excluded in the rename: - BootstrapHandler.getApplicationCSSClassName() - ComponentLocator - ConnectorMap - ItemClickEvent - KeepAllItemsVisible - MenuBarTest - MenuBarTooltips - TreeTableTest - TreeWithIcons - Trees - VDebugConsole.printLayoutProblems()
* Handle requestRepaint automatically (#9325)Leif Åstrand2012-08-231-0/+4
|
* Don't import from client even for javadoc (#9026)Leif Åstrand2012-08-201-2/+2
|
* Add crude support for only sending state changes (#9026)Leif Åstrand2012-08-201-0/+13
|
* Introduce ClientConnector.beforeClientResponse(boolean initial) #9228Leif Åstrand2012-08-201-0/+45
| | | | Remove Component.updateState() to use the new method instead.
* Replaced license place holder with actual license (#8955)Artur Signell2012-08-161-1/+13
|
* Removed @version which is included in some files but not in all (#9299)Artur Signell2012-08-151-1/+0
|
* Eliminated dependencies from server to client (#9279)Artur Signell2012-08-131-1/+0
|
* Moved server files to a server src folder (#9299)Artur Signell2012-08-131-0/+320