]> source.dussan.org Git - vaadin-framework.git/commit
Unify listeners on the server side
authorAleksi Hietanen <aleksi@vaadin.com>
Fri, 23 Sep 2016 10:14:52 +0000 (13:14 +0300)
committerDenis Anisimov <denis@vaadin.com>
Thu, 29 Sep 2016 13:14:35 +0000 (13:14 +0000)
commit2bee988272657df4d886ea79b04be9fbc54d3928
tree6825ec60243faac7fd4114928090e115e2e11d01
parent599b61bc8598db35fa111880dd4db57f9da2adda
Unify listeners on the server side

This patch updates server side add*Listener methods to return
a registration object and deprecates their corresponding
remove*Listener methods.

Additionally this patch removes add/removeListener methods which were
deprecated in 7.0.

Change-Id: I26ac5f11882512288fbbf601c7cb2aaff653ec76
156 files changed:
compatibility-server/src/main/java/com/vaadin/v7/event/FieldEvents.java
compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractTextField.java
compatibility-server/src/main/java/com/vaadin/v7/ui/ComboBox.java
compatibility-server/src/main/java/com/vaadin/v7/ui/DateField.java
compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java
compatibility-server/src/main/java/com/vaadin/v7/ui/OptionGroup.java
compatibility-server/src/test/java/com/vaadin/tests/server/component/AbstractListenerMethodsTestBase.java [new file with mode: 0644]
server/src/main/java/com/vaadin/event/Action.java
server/src/main/java/com/vaadin/event/ContextClickEvent.java
server/src/main/java/com/vaadin/event/EventRouter.java
server/src/main/java/com/vaadin/event/FieldEvents.java
server/src/main/java/com/vaadin/event/LayoutEvents.java
server/src/main/java/com/vaadin/event/MethodEventSource.java
server/src/main/java/com/vaadin/event/UIEvents.java
server/src/main/java/com/vaadin/navigator/Navigator.java
server/src/main/java/com/vaadin/server/AbstractClientConnector.java
server/src/main/java/com/vaadin/server/ClientConnector.java
server/src/main/java/com/vaadin/server/DragAndDropService.java
server/src/main/java/com/vaadin/server/Page.java
server/src/main/java/com/vaadin/server/data/AbstractDataSource.java
server/src/main/java/com/vaadin/ui/AbsoluteLayout.java
server/src/main/java/com/vaadin/ui/AbstractColorPicker.java
server/src/main/java/com/vaadin/ui/AbstractComponent.java
server/src/main/java/com/vaadin/ui/AbstractComponentContainer.java
server/src/main/java/com/vaadin/ui/AbstractDateField.java
server/src/main/java/com/vaadin/ui/AbstractField.java
server/src/main/java/com/vaadin/ui/AbstractFocusable.java
server/src/main/java/com/vaadin/ui/AbstractMultiSelect.java
server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java
server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java
server/src/main/java/com/vaadin/ui/AbstractSingleSelect.java
server/src/main/java/com/vaadin/ui/AbstractSplitPanel.java
server/src/main/java/com/vaadin/ui/Button.java
server/src/main/java/com/vaadin/ui/CheckBox.java
server/src/main/java/com/vaadin/ui/ColorPickerArea.java
server/src/main/java/com/vaadin/ui/ComboBox.java
server/src/main/java/com/vaadin/ui/Component.java
server/src/main/java/com/vaadin/ui/ComponentContainer.java
server/src/main/java/com/vaadin/ui/CssLayout.java
server/src/main/java/com/vaadin/ui/Embedded.java
server/src/main/java/com/vaadin/ui/Grid.java
server/src/main/java/com/vaadin/ui/GridLayout.java
server/src/main/java/com/vaadin/ui/HasComponents.java
server/src/main/java/com/vaadin/ui/Image.java
server/src/main/java/com/vaadin/ui/LegacyWindow.java
server/src/main/java/com/vaadin/ui/Panel.java
server/src/main/java/com/vaadin/ui/PopupView.java
server/src/main/java/com/vaadin/ui/TabSheet.java
server/src/main/java/com/vaadin/ui/UI.java
server/src/main/java/com/vaadin/ui/Upload.java
server/src/main/java/com/vaadin/ui/Window.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerGradient.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerGrid.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerHistory.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerPopup.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerPreview.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerSelect.java
server/src/main/java/com/vaadin/ui/components/colorpicker/HasColorChangeListener.java
server/src/main/java/com/vaadin/ui/renderers/ClickableRenderer.java
server/src/test/java/com/vaadin/server/RemoveListenersDeprecatedTest.java [new file with mode: 0644]
server/src/test/java/com/vaadin/tests/server/component/AbstractListenerMethodsTestBase.java
server/src/test/java/com/vaadin/tests/server/components/WindowTest.java
server/src/test/java/com/vaadin/tests/server/navigator/NavigatorTest.java
server/src/test/java/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java
uitest/src/main/java/com/vaadin/tests/FocusingComponents.java
uitest/src/main/java/com/vaadin/tests/ListenerOrder.java
uitest/src/main/java/com/vaadin/tests/ModalWindow.java
uitest/src/main/java/com/vaadin/tests/OrderedLayoutSwapComponents.java
uitest/src/main/java/com/vaadin/tests/TestBench.java
uitest/src/main/java/com/vaadin/tests/TestDateField.java
uitest/src/main/java/com/vaadin/tests/TestForContainerFilterable.java
uitest/src/main/java/com/vaadin/tests/TestForStyledUpload.java
uitest/src/main/java/com/vaadin/tests/TestForTabSheet.java
uitest/src/main/java/com/vaadin/tests/TestForUpload.java
uitest/src/main/java/com/vaadin/tests/TestSetVisibleAndCaching.java
uitest/src/main/java/com/vaadin/tests/TestSizeableIncomponents.java
uitest/src/main/java/com/vaadin/tests/application/ErrorInUnloadEvent.java
uitest/src/main/java/com/vaadin/tests/components/AbstractComponentContainerTest.java
uitest/src/main/java/com/vaadin/tests/components/AbstractOrderedLayoutTest.java
uitest/src/main/java/com/vaadin/tests/components/FocusAndBlurListeners.java
uitest/src/main/java/com/vaadin/tests/components/TouchScrollables.java
uitest/src/main/java/com/vaadin/tests/components/button/ButtonErrorMessage.java
uitest/src/main/java/com/vaadin/tests/components/button/ButtonHtml.java
uitest/src/main/java/com/vaadin/tests/components/button/ButtonIOSDragTest.java
uitest/src/main/java/com/vaadin/tests/components/button/Buttons2.java
uitest/src/main/java/com/vaadin/tests/components/button/ShortCutListenerModification.java
uitest/src/main/java/com/vaadin/tests/components/button/TooltipForDisabledButton.java
uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxCombinedWithEnterShortcut.java
uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxDataSourceChange.java
uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxInPopupView.java
uitest/src/main/java/com/vaadin/tests/components/combobox/ComboBoxSlowInFF.java
uitest/src/main/java/com/vaadin/tests/components/combobox/RemovalOfSelectedIcon.java
uitest/src/main/java/com/vaadin/tests/components/customcomponent/CustomComponentSizeUpdate.java
uitest/src/main/java/com/vaadin/tests/components/datefield/DateFieldEmptyValid.java
uitest/src/main/java/com/vaadin/tests/components/datefield/DateFieldReadOnly.java
uitest/src/main/java/com/vaadin/tests/components/embedded/EmbeddedClickListenerRelativeCoordinates.java
uitest/src/main/java/com/vaadin/tests/components/embedded/EmbeddedImageRefresh.java
uitest/src/main/java/com/vaadin/tests/components/gridlayout/InsertRowInMiddle.java
uitest/src/main/java/com/vaadin/tests/components/label/LabelWrapping.java
uitest/src/main/java/com/vaadin/tests/components/nativebutton/NativeButtonHtml.java
uitest/src/main/java/com/vaadin/tests/components/notification/NotificationsAndModalWindow.java
uitest/src/main/java/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
uitest/src/main/java/com/vaadin/tests/components/orderedlayout/LayoutClickListenerTest.java
uitest/src/main/java/com/vaadin/tests/components/orderedlayout/ReplaceComponentNPE.java
uitest/src/main/java/com/vaadin/tests/components/panel/PanelClickListenerRelativeCoordinates.java
uitest/src/main/java/com/vaadin/tests/components/panel/PanelShouldNotScroll.java
uitest/src/main/java/com/vaadin/tests/components/select/ComboBoxAddWhileFiltering.java
uitest/src/main/java/com/vaadin/tests/components/splitpanel/AbstractSplitPanelTest.java
uitest/src/main/java/com/vaadin/tests/components/splitpanel/SplitPanelExtraScrollbars.java
uitest/src/main/java/com/vaadin/tests/components/splitpanel/SplitPanelReversePosition.java
uitest/src/main/java/com/vaadin/tests/components/table/AddNonRenderedRow.java
uitest/src/main/java/com/vaadin/tests/components/table/ContainerChangeWithPartlySamePropertyIds.java
uitest/src/main/java/com/vaadin/tests/components/table/MultiSelectWithRemovedRow.java
uitest/src/main/java/com/vaadin/tests/components/table/ScrollDetachSynchronization.java
uitest/src/main/java/com/vaadin/tests/components/table/SetCurrentPageFirstItemId.java
uitest/src/main/java/com/vaadin/tests/components/table/TableContextMenuOnField.java
uitest/src/main/java/com/vaadin/tests/components/table/TableModifcationsWhenScrolledRight.java
uitest/src/main/java/com/vaadin/tests/components/table/TableReduceContainerSize.java
uitest/src/main/java/com/vaadin/tests/components/table/TableToggleVisibility.java
uitest/src/main/java/com/vaadin/tests/components/tabsheet/RemoveTabs.java
uitest/src/main/java/com/vaadin/tests/components/tabsheet/TabSheetTest.java
uitest/src/main/java/com/vaadin/tests/components/tabsheet/TabsheetNPE.java
uitest/src/main/java/com/vaadin/tests/components/textarea/ScrollCursor.java
uitest/src/main/java/com/vaadin/tests/components/textfield/TextFieldWithProperty.java
uitest/src/main/java/com/vaadin/tests/components/textfield/TextFieldWithPropertyFormatter.java
uitest/src/main/java/com/vaadin/tests/components/tree/TreeContainerChange.java
uitest/src/main/java/com/vaadin/tests/components/treetable/ChangeDataSourcePageLengthZero.java
uitest/src/main/java/com/vaadin/tests/components/treetable/RemoveAllItemsRefresh.java
uitest/src/main/java/com/vaadin/tests/components/treetable/RowHeightWithoutRows.java
uitest/src/main/java/com/vaadin/tests/components/ui/UriFragment.java
uitest/src/main/java/com/vaadin/tests/components/upload/ForceSubmit.java
uitest/src/main/java/com/vaadin/tests/components/upload/TestUploadFilename.java
uitest/src/main/java/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java
uitest/src/main/java/com/vaadin/tests/components/window/ExecuteJavaScript.java
uitest/src/main/java/com/vaadin/tests/components/window/LazyWindowResize.java
uitest/src/main/java/com/vaadin/tests/components/window/SubWindowOrder.java
uitest/src/main/java/com/vaadin/tests/components/window/SubWindowWithUndefinedHeight.java
uitest/src/main/java/com/vaadin/tests/components/window/SubWindows.java
uitest/src/main/java/com/vaadin/tests/components/window/WindowClickEvents.java
uitest/src/main/java/com/vaadin/tests/components/window/WindowResizeListener.java
uitest/src/main/java/com/vaadin/tests/components/window/WindowScrollingUp.java
uitest/src/main/java/com/vaadin/tests/containers/sqlcontainer/MassInsertMemoryLeakTestApp.java
uitest/src/main/java/com/vaadin/tests/dd/DDTest6.java
uitest/src/main/java/com/vaadin/tests/fieldgroup/AbstractBeanFieldGroupTest.java
uitest/src/main/java/com/vaadin/tests/layouts/CaptionsInLayouts.java
uitest/src/main/java/com/vaadin/tests/layouts/CaptionsInLayoutsWaiAria.java
uitest/src/main/java/com/vaadin/tests/layouts/ComplexGLColumnExpansionWithColSpan.java
uitest/src/main/java/com/vaadin/tests/layouts/CssLayoutCustomCss.java
uitest/src/main/java/com/vaadin/tests/layouts/CssLayoutSizeChangePropagation.java
uitest/src/main/java/com/vaadin/tests/layouts/DeepComponentTrees.java
uitest/src/main/java/com/vaadin/tests/layouts/GridLayoutNPE.java
uitest/src/main/java/com/vaadin/tests/layouts/MovingInvisibleField.java
uitest/src/main/java/com/vaadin/tests/layouts/TestLayoutPerformance.java
uitest/src/main/java/com/vaadin/tests/layouts/VerticalLayoutWithRelativeSizeComponentsInitiallyHidden.java
uitest/src/main/java/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
uitest/src/main/java/com/vaadin/tests/resources/NonExistingFileResource.java