From 429aeadef913b1d5f3cc932c70b54afa2a57275c Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 11 Apr 2012 19:58:26 +0300 Subject: [PATCH] Moved each component to its own package on client side Class loaders have problems with referring to static inner classes (e.g. state classes) when they cannot load the declaring class. To deal with this the components have been moved to their own packages and state/rpc classes will be defined in their own Java files. --- ...tWidgetSetBrowserSpecificOverrides.gwt.xml | 16 ++++---- .../gwt/client/ApplicationConnection.java | 6 +-- .../terminal/gwt/client/ComponentLocator.java | 10 ++--- .../terminal/gwt/client/DateTimeService.java | 2 +- .../terminal/gwt/client/LayoutManager.java | 2 +- .../terminal/gwt/client/VDebugConsole.java | 4 +- .../terminal/gwt/client/VUIDLBrowser.java | 2 +- .../vaadin/terminal/gwt/client/ui/Table.java | 15 ------- .../terminal/gwt/client/ui/VOverlay.java | 4 +- .../AbsoluteLayoutConnector.java | 33 +++------------- .../AbsoluteLayoutServerRPC.java | 8 ++++ .../absolutelayout/AbsoluteLayoutState.java | 26 +++++++++++++ .../{ => absolutelayout}/VAbsoluteLayout.java | 2 +- .../{ => accordion}/AccordionConnector.java | 7 +++- .../client/ui/{ => accordion}/VAccordion.java | 4 +- .../client/ui/{ => audio}/AudioConnector.java | 4 +- .../gwt/client/ui/{ => audio}/VAudio.java | 3 +- .../ui/{ => button}/ButtonConnector.java | 5 ++- .../client/ui/{ => button}/ButtonState.java | 2 +- .../gwt/client/ui/{ => button}/VButton.java | 5 ++- .../ui/{ => checkbox}/CheckBoxConnector.java | 25 ++---------- .../client/ui/checkbox/CheckBoxServerRpc.java | 9 +++++ .../gwt/client/ui/checkbox/CheckBoxState.java | 16 ++++++++ .../client/ui/{ => checkbox}/VCheckBox.java | 4 +- .../ui/{ => combobox}/ComboBoxConnector.java | 8 +++- .../ui/{ => combobox}/VFilterSelect.java | 8 +++- .../{ => csslayout}/CssLayoutConnector.java | 8 +++- .../client/ui/{ => csslayout}/VCssLayout.java | 3 +- .../CustomComponentConnector.java | 4 +- .../VCustomComponent.java | 2 +- .../CustomFieldConnector.java | 5 ++- .../CustomLayoutConnector.java | 5 ++- .../ui/{ => customlayout}/VCustomLayout.java | 2 +- .../AbstractDateFieldConnector.java | 3 +- .../InlineDateFieldConnector.java | 7 ++-- .../PopupDateFieldConnector.java | 7 ++-- .../{ => datefield}/TextualDateConnector.java | 2 +- .../ui/{ => datefield}/VCalendarPanel.java | 5 ++- .../client/ui/{ => datefield}/VDateField.java | 3 +- .../{ => datefield}/VDateFieldCalendar.java | 6 +-- .../ui/{ => datefield}/VPopupCalendar.java | 9 +++-- .../ui/{ => datefield}/VTextualDate.java | 5 ++- .../gwt/client/ui/dd/VTargetInSubtree.java | 4 +- .../DragAndDropWrapperConnector.java | 4 +- .../VDragAndDropWrapper.java | 3 +- .../VDragAndDropWrapperIE.java | 2 +- .../ui/{ => embedded}/EmbeddedConnector.java | 5 ++- .../client/ui/{ => embedded}/VEmbedded.java | 2 +- .../client/ui/{ => form}/FormConnector.java | 31 +++------------ .../gwt/client/ui/form/FormState.java | 26 +++++++++++++ .../gwt/client/ui/{ => form}/VForm.java | 4 +- .../{ => formlayout}/FormLayoutConnector.java | 14 ++++--- .../ui/{ => formlayout}/VFormLayout.java | 5 ++- .../{ => gridlayout}/GridLayoutConnector.java | 9 ++++- .../ui/{ => gridlayout}/VGridLayout.java | 4 +- .../client/ui/{ => link}/LinkConnector.java | 5 ++- .../gwt/client/ui/{ => link}/VLink.java | 3 +- .../{ => listselect}/ListSelectConnector.java | 4 +- .../client/ui/listselect/TooltipListBox.java | 38 ++++++++++++++++++ .../ui/{ => listselect}/VListSelect.java | 39 +------------------ .../gwt/client/ui/{ => menubar}/MenuBar.java | 11 +++--- .../ui/{ => menubar}/MenuBarConnector.java | 8 +++- .../gwt/client/ui/{ => menubar}/MenuItem.java | 2 +- .../gwt/client/ui/{ => menubar}/VMenuBar.java | 7 +++- .../NativeButtonConnector.java | 8 +++- .../ui/{ => nativebutton}/VNativeButton.java | 5 ++- .../NativeSelectConnector.java | 4 +- .../ui/{ => nativeselect}/VNativeSelect.java | 5 ++- .../ui/{ => notification}/VNotification.java | 3 +- .../OptionGroupBaseConnector.java | 5 ++- .../OptionGroupConnector.java | 3 +- .../ui/{ => optiongroup}/VOptionGroup.java | 4 +- .../{ => optiongroup}/VOptionGroupBase.java | 7 +++- .../AbstractOrderedLayoutConnector.java | 6 ++- .../HorizontalLayoutConnector.java | 3 +- .../VHorizontalLayout.java | 3 +- .../VMeasuringOrderedLayout.java | 3 +- .../{ => orderedlayout}/VVerticalLayout.java | 3 +- .../VerticalLayoutConnector.java | 3 +- .../client/ui/{ => panel}/PanelConnector.java | 8 +++- .../gwt/client/ui/{ => panel}/VPanel.java | 5 ++- .../PasswordFieldConnector.java | 4 +- .../{ => passwordfield}/VPasswordField.java | 3 +- .../{ => popupview}/PopupViewConnector.java | 5 ++- .../client/ui/{ => popupview}/VPopupView.java | 3 +- .../ProgressIndicatorConnector.java | 4 +- .../VProgressIndicator.java | 2 +- .../gwt/client/ui/root/RootConnector.java | 4 +- .../gwt/client/ui/root/RootServerRPC.java | 1 - .../terminal/gwt/client/ui/root/VRoot.java | 2 +- .../ui/{ => slider}/SliderConnector.java | 4 +- .../gwt/client/ui/{ => slider}/VSlider.java | 6 ++- .../AbstractSplitPanelConnector.java | 9 +++-- .../HorizontalSplitPanelConnector.java | 3 +- .../{ => splitpanel}/VAbstractSplitPanel.java | 6 ++- .../VSplitPanelHorizontal.java | 3 +- .../{ => splitpanel}/VSplitPanelVertical.java | 3 +- .../VerticalSplitPanelConnector.java | 3 +- .../client/ui/{ => table}/TableConnector.java | 9 +++-- .../client/ui/{ => table}/VScrollTable.java | 19 ++++++--- .../{ => tabsheet}/TabsheetBaseConnector.java | 3 +- .../ui/{ => tabsheet}/TabsheetConnector.java | 4 +- .../client/ui/{ => tabsheet}/VTabsheet.java | 2 +- .../ui/{ => tabsheet}/VTabsheetBase.java | 8 ++-- .../ui/{ => tabsheet}/VTabsheetPanel.java | 5 ++- .../ui/{ => textarea}/TextAreaConnector.java | 4 +- .../client/ui/{ => textarea}/VTextArea.java | 3 +- .../{ => textfield}/TextFieldConnector.java | 4 +- .../client/ui/{ => textfield}/VTextField.java | 5 ++- .../client/ui/{ => tree}/TreeConnector.java | 6 ++- .../gwt/client/ui/{ => tree}/VTree.java | 9 ++++- .../{ => treetable}/TreeTableConnector.java | 9 +++-- .../client/ui/{ => treetable}/VTreeTable.java | 5 ++- .../TwinColSelectConnector.java | 4 +- .../{ => twincolselect}/VTwinColSelect.java | 5 ++- .../ui/{ => upload}/UploadConnector.java | 4 +- .../UploadIFrameOnloadStrategy.java | 3 +- .../UploadIFrameOnloadStrategyIE.java | 2 +- .../gwt/client/ui/{ => upload}/VUpload.java | 3 +- .../gwt/client/ui/{ => video}/VVideo.java | 3 +- .../client/ui/{ => video}/VideoConnector.java | 4 +- .../gwt/client/ui/{ => window}/VWindow.java | 6 ++- .../ui/{ => window}/WindowConnector.java | 10 ++++- src/com/vaadin/ui/AbsoluteLayout.java | 4 +- src/com/vaadin/ui/AbstractOrderedLayout.java | 4 +- src/com/vaadin/ui/AbstractSplitPanel.java | 6 +-- src/com/vaadin/ui/AbstractTextField.java | 2 +- src/com/vaadin/ui/Button.java | 4 +- src/com/vaadin/ui/CheckBox.java | 4 +- src/com/vaadin/ui/ComboBox.java | 2 +- src/com/vaadin/ui/CssLayout.java | 4 +- src/com/vaadin/ui/CustomLayout.java | 2 +- src/com/vaadin/ui/DateField.java | 2 +- src/com/vaadin/ui/DragAndDropWrapper.java | 2 +- src/com/vaadin/ui/Embedded.java | 4 +- src/com/vaadin/ui/Form.java | 2 +- src/com/vaadin/ui/GridLayout.java | 4 +- src/com/vaadin/ui/MenuBar.java | 2 +- src/com/vaadin/ui/OptionGroup.java | 2 +- src/com/vaadin/ui/Panel.java | 4 +- src/com/vaadin/ui/Root.java | 2 +- src/com/vaadin/ui/TabSheet.java | 4 +- src/com/vaadin/ui/Table.java | 2 +- src/com/vaadin/ui/Tree.java | 4 +- src/com/vaadin/ui/TreeTable.java | 2 +- src/com/vaadin/ui/TwinColSelect.java | 2 +- src/com/vaadin/ui/Video.java | 2 +- src/com/vaadin/ui/Window.java | 4 +- 148 files changed, 556 insertions(+), 338 deletions(-) delete mode 100644 src/com/vaadin/terminal/gwt/client/ui/Table.java rename src/com/vaadin/terminal/gwt/client/ui/{ => absolutelayout}/AbsoluteLayoutConnector.java (87%) create mode 100644 src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutServerRPC.java create mode 100644 src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutState.java rename src/com/vaadin/terminal/gwt/client/ui/{ => absolutelayout}/VAbsoluteLayout.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => accordion}/AccordionConnector.java (88%) rename src/com/vaadin/terminal/gwt/client/ui/{ => accordion}/VAccordion.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => audio}/AudioConnector.java (88%) rename src/com/vaadin/terminal/gwt/client/ui/{ => audio}/VAudio.java (84%) rename src/com/vaadin/terminal/gwt/client/ui/{ => button}/ButtonConnector.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => button}/ButtonState.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => button}/VButton.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => checkbox}/CheckBoxConnector.java (89%) create mode 100644 src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxServerRpc.java create mode 100644 src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxState.java rename src/com/vaadin/terminal/gwt/client/ui/{ => checkbox}/VCheckBox.java (91%) rename src/com/vaadin/terminal/gwt/client/ui/{ => combobox}/ComboBoxConnector.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => combobox}/VFilterSelect.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => csslayout}/CssLayoutConnector.java (94%) rename src/com/vaadin/terminal/gwt/client/ui/{ => csslayout}/VCssLayout.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => customcomponent}/CustomComponentConnector.java (87%) rename src/com/vaadin/terminal/gwt/client/ui/{ => customcomponent}/VCustomComponent.java (83%) rename src/com/vaadin/terminal/gwt/client/ui/{ => customfield}/CustomFieldConnector.java (64%) rename src/com/vaadin/terminal/gwt/client/ui/{ => customlayout}/CustomLayoutConnector.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => customlayout}/VCustomLayout.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/AbstractDateFieldConnector.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/InlineDateFieldConnector.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/PopupDateFieldConnector.java (94%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/TextualDateConnector.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/VCalendarPanel.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/VDateField.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/VDateFieldCalendar.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/VPopupCalendar.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => datefield}/VTextualDate.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => draganddropwrapper}/DragAndDropWrapperConnector.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => draganddropwrapper}/VDragAndDropWrapper.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => draganddropwrapper}/VDragAndDropWrapperIE.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => embedded}/EmbeddedConnector.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => embedded}/VEmbedded.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => form}/FormConnector.java (91%) create mode 100644 src/com/vaadin/terminal/gwt/client/ui/form/FormState.java rename src/com/vaadin/terminal/gwt/client/ui/{ => form}/VForm.java (94%) rename src/com/vaadin/terminal/gwt/client/ui/{ => formlayout}/FormLayoutConnector.java (82%) rename src/com/vaadin/terminal/gwt/client/ui/{ => formlayout}/VFormLayout.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => gridlayout}/GridLayoutConnector.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => gridlayout}/VGridLayout.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => link}/LinkConnector.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => link}/VLink.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => listselect}/ListSelectConnector.java (71%) create mode 100644 src/com/vaadin/terminal/gwt/client/ui/listselect/TooltipListBox.java rename src/com/vaadin/terminal/gwt/client/ui/{ => listselect}/VListSelect.java (77%) rename src/com/vaadin/terminal/gwt/client/ui/{ => menubar}/MenuBar.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => menubar}/MenuBarConnector.java (94%) rename src/com/vaadin/terminal/gwt/client/ui/{ => menubar}/MenuItem.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => menubar}/VMenuBar.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => nativebutton}/NativeButtonConnector.java (91%) rename src/com/vaadin/terminal/gwt/client/ui/{ => nativebutton}/VNativeButton.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => nativeselect}/NativeSelectConnector.java (72%) rename src/com/vaadin/terminal/gwt/client/ui/{ => nativeselect}/VNativeSelect.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => notification}/VNotification.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => optiongroup}/OptionGroupBaseConnector.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => optiongroup}/OptionGroupConnector.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => optiongroup}/VOptionGroup.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => optiongroup}/VOptionGroupBase.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => orderedlayout}/AbstractOrderedLayoutConnector.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => orderedlayout}/HorizontalLayoutConnector.java (84%) rename src/com/vaadin/terminal/gwt/client/ui/{ => orderedlayout}/VHorizontalLayout.java (81%) rename src/com/vaadin/terminal/gwt/client/ui/{ => orderedlayout}/VMeasuringOrderedLayout.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => orderedlayout}/VVerticalLayout.java (80%) rename src/com/vaadin/terminal/gwt/client/ui/{ => orderedlayout}/VerticalLayoutConnector.java (83%) rename src/com/vaadin/terminal/gwt/client/ui/{ => panel}/PanelConnector.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => panel}/VPanel.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => passwordfield}/PasswordFieldConnector.java (80%) rename src/com/vaadin/terminal/gwt/client/ui/{ => passwordfield}/VPasswordField.java (71%) rename src/com/vaadin/terminal/gwt/client/ui/{ => popupview}/PopupViewConnector.java (94%) rename src/com/vaadin/terminal/gwt/client/ui/{ => popupview}/VPopupView.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => progressindicator}/ProgressIndicatorConnector.java (91%) rename src/com/vaadin/terminal/gwt/client/ui/{ => progressindicator}/VProgressIndicator.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => slider}/SliderConnector.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => slider}/VSlider.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => splitpanel}/AbstractSplitPanelConnector.java (95%) rename src/com/vaadin/terminal/gwt/client/ui/{ => splitpanel}/HorizontalSplitPanelConnector.java (81%) rename src/com/vaadin/terminal/gwt/client/ui/{ => splitpanel}/VAbstractSplitPanel.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => splitpanel}/VSplitPanelHorizontal.java (79%) rename src/com/vaadin/terminal/gwt/client/ui/{ => splitpanel}/VSplitPanelVertical.java (79%) rename src/com/vaadin/terminal/gwt/client/ui/{ => splitpanel}/VerticalSplitPanelConnector.java (81%) rename src/com/vaadin/terminal/gwt/client/ui/{ => table}/TableConnector.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => table}/VScrollTable.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => tabsheet}/TabsheetBaseConnector.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => tabsheet}/TabsheetConnector.java (94%) rename src/com/vaadin/terminal/gwt/client/ui/{ => tabsheet}/VTabsheet.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => tabsheet}/VTabsheetBase.java (92%) rename src/com/vaadin/terminal/gwt/client/ui/{ => tabsheet}/VTabsheetPanel.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => textarea}/TextAreaConnector.java (85%) rename src/com/vaadin/terminal/gwt/client/ui/{ => textarea}/VTextArea.java (93%) rename src/com/vaadin/terminal/gwt/client/ui/{ => textfield}/TextFieldConnector.java (96%) rename src/com/vaadin/terminal/gwt/client/ui/{ => textfield}/VTextField.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => tree}/TreeConnector.java (97%) rename src/com/vaadin/terminal/gwt/client/ui/{ => tree}/VTree.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => treetable}/TreeTableConnector.java (90%) rename src/com/vaadin/terminal/gwt/client/ui/{ => treetable}/VTreeTable.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => twincolselect}/TwinColSelectConnector.java (89%) rename src/com/vaadin/terminal/gwt/client/ui/{ => twincolselect}/VTwinColSelect.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => upload}/UploadConnector.java (92%) rename src/com/vaadin/terminal/gwt/client/ui/{ => upload}/UploadIFrameOnloadStrategy.java (91%) rename src/com/vaadin/terminal/gwt/client/ui/{ => upload}/UploadIFrameOnloadStrategyIE.java (92%) rename src/com/vaadin/terminal/gwt/client/ui/{ => upload}/VUpload.java (98%) rename src/com/vaadin/terminal/gwt/client/ui/{ => video}/VVideo.java (94%) rename src/com/vaadin/terminal/gwt/client/ui/{ => video}/VideoConnector.java (87%) rename src/com/vaadin/terminal/gwt/client/ui/{ => window}/VWindow.java (99%) rename src/com/vaadin/terminal/gwt/client/ui/{ => window}/WindowConnector.java (96%) diff --git a/src/com/vaadin/terminal/gwt/DefaultWidgetSetBrowserSpecificOverrides.gwt.xml b/src/com/vaadin/terminal/gwt/DefaultWidgetSetBrowserSpecificOverrides.gwt.xml index 82c9f2cf90..3627fa2192 100644 --- a/src/com/vaadin/terminal/gwt/DefaultWidgetSetBrowserSpecificOverrides.gwt.xml +++ b/src/com/vaadin/terminal/gwt/DefaultWidgetSetBrowserSpecificOverrides.gwt.xml @@ -6,27 +6,27 @@ + class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy"> + class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy" /> + class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategyIE"> + com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategytrategy" /> - - + + - - + + diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 6f3ff6db45..555112a636 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -46,11 +46,11 @@ import com.vaadin.terminal.gwt.client.communication.RpcManager; import com.vaadin.terminal.gwt.client.communication.SharedState; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; import com.vaadin.terminal.gwt.client.ui.VContextMenu; -import com.vaadin.terminal.gwt.client.ui.VNotification; -import com.vaadin.terminal.gwt.client.ui.VNotification.HideEvent; -import com.vaadin.terminal.gwt.client.ui.WindowConnector; import com.vaadin.terminal.gwt.client.ui.dd.VDragAndDropManager; +import com.vaadin.terminal.gwt.client.ui.notification.VNotification; +import com.vaadin.terminal.gwt.client.ui.notification.VNotification.HideEvent; import com.vaadin.terminal.gwt.client.ui.root.RootConnector; +import com.vaadin.terminal.gwt.client.ui.window.WindowConnector; import com.vaadin.terminal.gwt.server.AbstractCommunicationManager; /** diff --git a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java index 8226860533..d847d49e6f 100644 --- a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java +++ b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java @@ -13,12 +13,12 @@ import com.google.gwt.user.client.ui.HasWidgets; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ui.SubPartAware; -import com.vaadin.terminal.gwt.client.ui.VGridLayout; -import com.vaadin.terminal.gwt.client.ui.VMeasuringOrderedLayout; -import com.vaadin.terminal.gwt.client.ui.VTabsheetPanel; -import com.vaadin.terminal.gwt.client.ui.VWindow; -import com.vaadin.terminal.gwt.client.ui.WindowConnector; +import com.vaadin.terminal.gwt.client.ui.gridlayout.VGridLayout; +import com.vaadin.terminal.gwt.client.ui.orderedlayout.VMeasuringOrderedLayout; import com.vaadin.terminal.gwt.client.ui.root.VRoot; +import com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheetPanel; +import com.vaadin.terminal.gwt.client.ui.window.VWindow; +import com.vaadin.terminal.gwt.client.ui.window.WindowConnector; /** * ComponentLocator provides methods for generating a String locator for a given diff --git a/src/com/vaadin/terminal/gwt/client/DateTimeService.java b/src/com/vaadin/terminal/gwt/client/DateTimeService.java index c0151d2819..45ba4a7452 100644 --- a/src/com/vaadin/terminal/gwt/client/DateTimeService.java +++ b/src/com/vaadin/terminal/gwt/client/DateTimeService.java @@ -8,7 +8,7 @@ import java.util.Date; import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.i18n.client.LocaleInfo; -import com.vaadin.terminal.gwt.client.ui.VDateField; +import com.vaadin.terminal.gwt.client.ui.datefield.VDateField; /** * This class provides date/time parsing services to all components on the diff --git a/src/com/vaadin/terminal/gwt/client/LayoutManager.java b/src/com/vaadin/terminal/gwt/client/LayoutManager.java index 78709a7134..60a2d3543a 100644 --- a/src/com/vaadin/terminal/gwt/client/LayoutManager.java +++ b/src/com/vaadin/terminal/gwt/client/LayoutManager.java @@ -12,7 +12,7 @@ import com.google.gwt.dom.client.Element; import com.vaadin.terminal.gwt.client.ui.ManagedLayout; import com.vaadin.terminal.gwt.client.ui.PostLayoutListener; import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; -import com.vaadin.terminal.gwt.client.ui.VNotification; +import com.vaadin.terminal.gwt.client.ui.notification.VNotification; public class LayoutManager { private static final String LOOP_ABORT_MESSAGE = "Aborting layout after 100 passes. This would probably be an infinite loop."; diff --git a/src/com/vaadin/terminal/gwt/client/VDebugConsole.java b/src/com/vaadin/terminal/gwt/client/VDebugConsole.java index ddf007ef37..e3cacc5870 100644 --- a/src/com/vaadin/terminal/gwt/client/VDebugConsole.java +++ b/src/com/vaadin/terminal/gwt/client/VDebugConsole.java @@ -53,10 +53,10 @@ import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; -import com.vaadin.terminal.gwt.client.ui.VNotification; import com.vaadin.terminal.gwt.client.ui.VOverlay; -import com.vaadin.terminal.gwt.client.ui.WindowConnector; +import com.vaadin.terminal.gwt.client.ui.notification.VNotification; import com.vaadin.terminal.gwt.client.ui.root.RootConnector; +import com.vaadin.terminal.gwt.client.ui.window.WindowConnector; /** * A helper console for client side development. The debug console can also be diff --git a/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java b/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java index bd79e5f9c6..9fa973dc29 100644 --- a/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java +++ b/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java @@ -25,7 +25,7 @@ import com.google.gwt.event.dom.client.MouseOutHandler; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ui.UnknownComponentConnector; -import com.vaadin.terminal.gwt.client.ui.VWindow; +import com.vaadin.terminal.gwt.client.ui.window.VWindow; public class VUIDLBrowser extends SimpleTree { private static final String HELP = "Shift click handle to open recursively. Click components to hightlight them on client side. Shift click components to highlight them also on the server side."; diff --git a/src/com/vaadin/terminal/gwt/client/ui/Table.java b/src/com/vaadin/terminal/gwt/client/ui/Table.java deleted file mode 100644 index ed3521335a..0000000000 --- a/src/com/vaadin/terminal/gwt/client/ui/Table.java +++ /dev/null @@ -1,15 +0,0 @@ -/* -@VaadinApache2LicenseForJavaFiles@ - */ - -package com.vaadin.terminal.gwt.client.ui; - -import com.google.gwt.user.client.ui.HasWidgets; -import com.vaadin.terminal.gwt.client.ComponentConnector; - -public interface Table extends ComponentConnector, HasWidgets { - final int SELECT_MODE_NONE = 0; - final int SELECT_MODE_SINGLE = 1; - final int SELECT_MODE_MULTI = 2; - -} diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java index 3d462fb0c6..df655ef959 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java @@ -27,7 +27,7 @@ public class VOverlay extends PopupPanel implements CloseHandler { * The z-index value from where all overlays live. This can be overridden in * any extending class. */ - protected static int Z_INDEX = 20000; + public static int Z_INDEX = 20000; private static int leftFix = -1; @@ -249,7 +249,7 @@ public class VOverlay extends PopupPanel implements CloseHandler { * size of overlay without using normal 'setWidth(String)' and * 'setHeight(String)' methods (if not calling super.setWidth/Height). */ - protected void updateShadowSizeAndPosition() { + public void updateShadowSizeAndPosition() { updateShadowSizeAndPosition(1.0); } diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbsoluteLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java similarity index 87% rename from src/com/vaadin/terminal/gwt/client/ui/AbsoluteLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java index 7e1683934c..d4cf189d7a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbsoluteLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.absolutelayout; import java.util.HashMap; import java.util.Map; @@ -12,45 +12,22 @@ import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ComponentConnector; -import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.ConnectorHierarchyChangeEvent; import com.vaadin.terminal.gwt.client.DirectionalManagedLayout; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VCaption; import com.vaadin.terminal.gwt.client.communication.RpcProxy; -import com.vaadin.terminal.gwt.client.communication.ServerRpc; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; -import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector.AbstractLayoutState; -import com.vaadin.terminal.gwt.client.ui.VAbsoluteLayout.AbsoluteWrapper; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.absolutelayout.VAbsoluteLayout.AbsoluteWrapper; import com.vaadin.ui.AbsoluteLayout; @Component(AbsoluteLayout.class) public class AbsoluteLayoutConnector extends AbstractComponentContainerConnector implements DirectionalManagedLayout { - public static class AbsoluteLayoutState extends AbstractLayoutState { - // Maps each component to a position - private Map connectorToCssPosition = new HashMap(); - - public String getConnectorPosition(Connector connector) { - return connectorToCssPosition.get(connector.getConnectorId()); - } - - public Map getConnectorToCssPosition() { - return connectorToCssPosition; - } - - public void setConnectorToCssPosition( - Map componentToCssPosition) { - connectorToCssPosition = componentToCssPosition; - } - - } - - public interface AbsoluteLayoutServerRPC extends LayoutClickRPC, ServerRpc { - - } - private LayoutClickEventHandler clickEventHandler = new LayoutClickEventHandler( this) { diff --git a/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutServerRPC.java b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutServerRPC.java new file mode 100644 index 0000000000..4dea26ddc9 --- /dev/null +++ b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutServerRPC.java @@ -0,0 +1,8 @@ +package com.vaadin.terminal.gwt.client.ui.absolutelayout; + +import com.vaadin.terminal.gwt.client.communication.ServerRpc; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector.LayoutClickRPC; + +public interface AbsoluteLayoutServerRPC extends LayoutClickRPC, ServerRpc { + +} \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutState.java b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutState.java new file mode 100644 index 0000000000..6dd2bcd28f --- /dev/null +++ b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutState.java @@ -0,0 +1,26 @@ +package com.vaadin.terminal.gwt.client.ui.absolutelayout; + +import java.util.HashMap; +import java.util.Map; + +import com.vaadin.terminal.gwt.client.Connector; +import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector.AbstractLayoutState; + +public class AbsoluteLayoutState extends AbstractLayoutState { + // Maps each component to a position + private Map connectorToCssPosition = new HashMap(); + + public String getConnectorPosition(Connector connector) { + return connectorToCssPosition.get(connector.getConnectorId()); + } + + public Map getConnectorToCssPosition() { + return connectorToCssPosition; + } + + public void setConnectorToCssPosition( + Map componentToCssPosition) { + connectorToCssPosition = componentToCssPosition; + } + +} \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/VAbsoluteLayout.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/absolutelayout/VAbsoluteLayout.java index 4b411e910c..e2cb629d68 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/VAbsoluteLayout.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.absolutelayout; import com.google.gwt.dom.client.DivElement; import com.google.gwt.dom.client.Document; diff --git a/src/com/vaadin/terminal/gwt/client/ui/AccordionConnector.java b/src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java similarity index 88% rename from src/com/vaadin/terminal/gwt/client/ui/AccordionConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java index e54f078a94..e5eda7607b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AccordionConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.accordion; import java.util.Iterator; @@ -10,7 +10,10 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.VAccordion.StackItem; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; +import com.vaadin.terminal.gwt.client.ui.accordion.VAccordion.StackItem; +import com.vaadin.terminal.gwt.client.ui.tabsheet.TabsheetBaseConnector; import com.vaadin.ui.Accordion; @Component(Accordion.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VAccordion.java b/src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VAccordion.java rename to src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java index 9d71f4645d..71361b79ad 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VAccordion.java +++ b/src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.accordion; import java.util.HashMap; import java.util.HashSet; @@ -20,6 +20,8 @@ import com.vaadin.terminal.gwt.client.ConnectorMap; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VCaption; +import com.vaadin.terminal.gwt.client.ui.tabsheet.TabsheetBaseConnector; +import com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheetBase; public class VAccordion extends VTabsheetBase { diff --git a/src/com/vaadin/terminal/gwt/client/ui/AudioConnector.java b/src/com/vaadin/terminal/gwt/client/ui/audio/AudioConnector.java similarity index 88% rename from src/com/vaadin/terminal/gwt/client/ui/AudioConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/audio/AudioConnector.java index c3c14449c0..bfef73d18a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AudioConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/audio/AudioConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.audio; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Style; @@ -10,6 +10,8 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.MediaBaseConnector; import com.vaadin.ui.Audio; @Component(Audio.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VAudio.java b/src/com/vaadin/terminal/gwt/client/ui/audio/VAudio.java similarity index 84% rename from src/com/vaadin/terminal/gwt/client/ui/VAudio.java rename to src/com/vaadin/terminal/gwt/client/ui/audio/VAudio.java index f6df827237..7d5d1fe034 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VAudio.java +++ b/src/com/vaadin/terminal/gwt/client/ui/audio/VAudio.java @@ -2,10 +2,11 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.audio; import com.google.gwt.dom.client.AudioElement; import com.google.gwt.dom.client.Document; +import com.vaadin.terminal.gwt.client.ui.VMediaBase; public class VAudio extends VMediaBase { private static String CLASSNAME = "v-audio"; diff --git a/src/com/vaadin/terminal/gwt/client/ui/ButtonConnector.java b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/ButtonConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java index 9d8838751f..3c506571bd 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/ButtonConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.button; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.BlurEvent; @@ -18,7 +18,10 @@ import com.vaadin.terminal.gwt.client.communication.FieldRpc.FocusAndBlurServerR import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; +import com.vaadin.terminal.gwt.client.ui.Icon; import com.vaadin.ui.Button; @Component(value = Button.class, loadStyle = LoadStyle.EAGER) diff --git a/src/com/vaadin/terminal/gwt/client/ui/ButtonState.java b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/ButtonState.java rename to src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java index 7786f4ca87..f26cdae0c6 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/ButtonState.java +++ b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.button; import com.vaadin.terminal.gwt.client.ComponentState; import com.vaadin.ui.Button; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VButton.java b/src/com/vaadin/terminal/gwt/client/ui/button/VButton.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VButton.java rename to src/com/vaadin/terminal/gwt/client/ui/button/VButton.java index 454ca79320..71581f5a63 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VButton.java +++ b/src/com/vaadin/terminal/gwt/client/ui/button/VButton.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.button; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; @@ -20,7 +20,8 @@ import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.MouseEventDetailsBuilder; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VTooltip; -import com.vaadin.terminal.gwt.client.ui.ButtonConnector.ButtonServerRpc; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.button.ButtonConnector.ButtonServerRpc; public class VButton extends FocusWidget implements ClickHandler { diff --git a/src/com/vaadin/terminal/gwt/client/ui/CheckBoxConnector.java b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java similarity index 89% rename from src/com/vaadin/terminal/gwt/client/ui/CheckBoxConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java index f32980c636..7e0c927ae4 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/CheckBoxConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.checkbox; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.BlurEvent; @@ -14,39 +14,22 @@ import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.Widget; -import com.vaadin.terminal.gwt.client.AbstractFieldState; import com.vaadin.terminal.gwt.client.EventHelper; import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.MouseEventDetailsBuilder; import com.vaadin.terminal.gwt.client.VTooltip; import com.vaadin.terminal.gwt.client.communication.FieldRpc.FocusAndBlurServerRpc; import com.vaadin.terminal.gwt.client.communication.RpcProxy; -import com.vaadin.terminal.gwt.client.communication.ServerRpc; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.Icon; import com.vaadin.ui.CheckBox; @Component(CheckBox.class) public class CheckBoxConnector extends AbstractFieldConnector implements FocusHandler, BlurHandler, ClickHandler { - public interface CheckBoxServerRpc extends ServerRpc { - public void setChecked(boolean checked, - MouseEventDetails mouseEventDetails); - } - - public static class CheckBoxState extends AbstractFieldState { - private boolean checked = false; - - public boolean isChecked() { - return checked; - } - - public void setChecked(boolean checked) { - this.checked = checked; - } - - } - private HandlerRegistration focusHandlerRegistration; private HandlerRegistration blurHandlerRegistration; diff --git a/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxServerRpc.java b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxServerRpc.java new file mode 100644 index 0000000000..75c6048572 --- /dev/null +++ b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxServerRpc.java @@ -0,0 +1,9 @@ +package com.vaadin.terminal.gwt.client.ui.checkbox; + +import com.vaadin.terminal.gwt.client.MouseEventDetails; +import com.vaadin.terminal.gwt.client.communication.ServerRpc; + +public interface CheckBoxServerRpc extends ServerRpc { + public void setChecked(boolean checked, + MouseEventDetails mouseEventDetails); +} \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxState.java b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxState.java new file mode 100644 index 0000000000..75d0508414 --- /dev/null +++ b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxState.java @@ -0,0 +1,16 @@ +package com.vaadin.terminal.gwt.client.ui.checkbox; + +import com.vaadin.terminal.gwt.client.AbstractFieldState; + +public class CheckBoxState extends AbstractFieldState { + private boolean checked = false; + + public boolean isChecked() { + return checked; + } + + public void setChecked(boolean checked) { + this.checked = checked; + } + +} \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java b/src/com/vaadin/terminal/gwt/client/ui/checkbox/VCheckBox.java similarity index 91% rename from src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java rename to src/com/vaadin/terminal/gwt/client/ui/checkbox/VCheckBox.java index f2ac958d24..fd90796ea5 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCheckBox.java +++ b/src/com/vaadin/terminal/gwt/client/ui/checkbox/VCheckBox.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.checkbox; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; @@ -10,6 +10,8 @@ import com.google.gwt.user.client.Event; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.Field; +import com.vaadin.terminal.gwt.client.ui.Icon; public class VCheckBox extends com.google.gwt.user.client.ui.CheckBox implements Field { diff --git a/src/com/vaadin/terminal/gwt/client/ui/ComboBoxConnector.java b/src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/ComboBoxConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java index bc73146965..4a0db6ee5b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/ComboBoxConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.combobox; import java.util.Iterator; @@ -11,7 +11,11 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; -import com.vaadin.terminal.gwt.client.ui.VFilterSelect.FilterSelectSuggestion; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; +import com.vaadin.terminal.gwt.client.ui.combobox.VFilterSelect.FilterSelectSuggestion; +import com.vaadin.terminal.gwt.client.ui.menubar.MenuItem; import com.vaadin.ui.Select; @Component(Select.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java rename to src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java index 82bbff9d85..d29eda0d6a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.combobox; import java.util.ArrayList; import java.util.Collection; @@ -55,6 +55,12 @@ import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VConsole; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.Field; +import com.vaadin.terminal.gwt.client.ui.SubPartAware; +import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; +import com.vaadin.terminal.gwt.client.ui.VOverlay; +import com.vaadin.terminal.gwt.client.ui.menubar.MenuBar; +import com.vaadin.terminal.gwt.client.ui.menubar.MenuItem; /** * Client side implementation of the Select component. diff --git a/src/com/vaadin/terminal/gwt/client/ui/CssLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java similarity index 94% rename from src/com/vaadin/terminal/gwt/client/ui/CssLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java index 554cec0d36..064a05d367 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/CssLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.csslayout; import java.util.HashMap; import java.util.Map; @@ -19,7 +19,11 @@ import com.vaadin.terminal.gwt.client.VCaption; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; -import com.vaadin.terminal.gwt.client.ui.VCssLayout.FlowPane; +import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; +import com.vaadin.terminal.gwt.client.ui.csslayout.VCssLayout.FlowPane; import com.vaadin.ui.CssLayout; @Component(CssLayout.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java b/src/com/vaadin/terminal/gwt/client/ui/csslayout/VCssLayout.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/csslayout/VCssLayout.java index 69c3659d3f..7076120388 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/csslayout/VCssLayout.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.csslayout; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; @@ -10,6 +10,7 @@ import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.StyleConstants; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; public class VCssLayout extends SimplePanel { public static final String TAGNAME = "csslayout"; diff --git a/src/com/vaadin/terminal/gwt/client/ui/CustomComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java similarity index 87% rename from src/com/vaadin/terminal/gwt/client/ui/CustomComponentConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java index 68980ef027..9c48d2ead4 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/CustomComponentConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java @@ -1,12 +1,14 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.customcomponent; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.ConnectorHierarchyChangeEvent; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.ui.CustomComponent; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java b/src/com/vaadin/terminal/gwt/client/ui/customcomponent/VCustomComponent.java similarity index 83% rename from src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java rename to src/com/vaadin/terminal/gwt/client/ui/customcomponent/VCustomComponent.java index f552870a53..2b27bd0e58 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java +++ b/src/com/vaadin/terminal/gwt/client/ui/customcomponent/VCustomComponent.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.customcomponent; import com.google.gwt.user.client.ui.SimplePanel; diff --git a/src/com/vaadin/terminal/gwt/client/ui/CustomFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/customfield/CustomFieldConnector.java similarity index 64% rename from src/com/vaadin/terminal/gwt/client/ui/CustomFieldConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/customfield/CustomFieldConnector.java index 477a4b496a..b0328d5bed 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/CustomFieldConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/customfield/CustomFieldConnector.java @@ -1,10 +1,13 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.customfield; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.customcomponent.CustomComponentConnector; +import com.vaadin.terminal.gwt.client.ui.customcomponent.VCustomComponent; import com.vaadin.ui.CustomField; @Component(value = CustomField.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/CustomLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/CustomLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java index f0fb1b7e6f..a09efef7ed 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/CustomLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.customlayout; import java.util.HashMap; import java.util.Map; @@ -13,6 +13,9 @@ import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.ConnectorHierarchyChangeEvent; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; +import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; import com.vaadin.ui.CustomLayout; @Component(CustomLayout.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java b/src/com/vaadin/terminal/gwt/client/ui/customlayout/VCustomLayout.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/customlayout/VCustomLayout.java index aa23119964..e0645a070a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/customlayout/VCustomLayout.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.customlayout; import java.util.HashMap; import java.util.Iterator; diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractDateFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/AbstractDateFieldConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java index 7497dc3d35..e19d9b996f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbstractDateFieldConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; @@ -12,6 +12,7 @@ import com.vaadin.terminal.gwt.client.LocaleNotLoadedException; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.VConsole; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; public class AbstractDateFieldConnector extends AbstractFieldConnector implements Paintable { diff --git a/src/com/vaadin/terminal/gwt/client/ui/InlineDateFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/InlineDateFieldConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java index 31ffe199d8..561f6fc7b5 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/InlineDateFieldConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; @@ -10,8 +10,9 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.DateTimeService; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.FocusChangeListener; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.TimeChangeListener; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.FocusChangeListener; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.TimeChangeListener; import com.vaadin.ui.InlineDateField; @Component(InlineDateField.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/PopupDateFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java similarity index 94% rename from src/com/vaadin/terminal/gwt/client/ui/PopupDateFieldConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java index 9a65513afd..b28345380e 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/PopupDateFieldConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; @@ -11,8 +11,9 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.DateTimeService; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.FocusChangeListener; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.TimeChangeListener; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.FocusChangeListener; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.TimeChangeListener; import com.vaadin.ui.DateField; @Component(DateField.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/TextualDateConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/TextualDateConnector.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/TextualDateConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/TextualDateConnector.java index 40fb72a88b..90679f5705 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TextualDateConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/TextualDateConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java index 6802f16b6b..acfff60d53 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; import java.util.Iterator; @@ -40,7 +40,10 @@ import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.DateTimeService; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VConsole; +import com.vaadin.terminal.gwt.client.ui.FocusableFlexTable; +import com.vaadin.terminal.gwt.client.ui.SubPartAware; import com.vaadin.terminal.gwt.client.ui.label.VLabel; +import com.vaadin.terminal.gwt.client.ui.nativeselect.VNativeSelect; @SuppressWarnings("deprecation") public class VCalendarPanel extends FocusableFlexTable implements diff --git a/src/com/vaadin/terminal/gwt/client/ui/VDateField.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateField.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VDateField.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/VDateField.java index 325b72dda7..d169b1b47e 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VDateField.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateField.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; @@ -11,6 +11,7 @@ import com.google.gwt.user.client.ui.FlowPanel; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.DateTimeService; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.Field; public class VDateField extends FlowPanel implements Field { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VDateFieldCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/VDateFieldCalendar.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java index 6bf1d4a3a7..21e0e0820d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VDateFieldCalendar.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java @@ -2,14 +2,14 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; import com.google.gwt.event.dom.client.DomEvent; import com.vaadin.terminal.gwt.client.DateTimeService; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.FocusOutListener; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.SubmitListener; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.FocusOutListener; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.SubmitListener; /** * A client side implementation for InlineDateField diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java index cbd3a7af8f..7011e5358b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; @@ -23,8 +23,11 @@ import com.google.gwt.user.client.ui.PopupPanel; import com.google.gwt.user.client.ui.PopupPanel.PositionCallback; import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.VConsole; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.FocusOutListener; -import com.vaadin.terminal.gwt.client.ui.VCalendarPanel.SubmitListener; +import com.vaadin.terminal.gwt.client.ui.Field; +import com.vaadin.terminal.gwt.client.ui.SubPartAware; +import com.vaadin.terminal.gwt.client.ui.VOverlay; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.FocusOutListener; +import com.vaadin.terminal.gwt.client.ui.datefield.VCalendarPanel.SubmitListener; /** * Represents a date selection component with a text field and a popup date diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java rename to src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java index 01e5103c2e..db4eca152a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.datefield; import java.util.Date; @@ -19,6 +19,9 @@ import com.vaadin.terminal.gwt.client.Focusable; import com.vaadin.terminal.gwt.client.LocaleNotLoadedException; import com.vaadin.terminal.gwt.client.LocaleService; import com.vaadin.terminal.gwt.client.VConsole; +import com.vaadin.terminal.gwt.client.ui.Field; +import com.vaadin.terminal.gwt.client.ui.SubPartAware; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; public class VTextualDate extends VDateField implements Field, ChangeHandler, Focusable, SubPartAware { diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetInSubtree.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetInSubtree.java index 8be413cacc..f69fa85290 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetInSubtree.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetInSubtree.java @@ -8,8 +8,8 @@ package com.vaadin.terminal.gwt.client.ui.dd; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.VTree; -import com.vaadin.terminal.gwt.client.ui.VTree.TreeNode; +import com.vaadin.terminal.gwt.client.ui.tree.VTree; +import com.vaadin.terminal.gwt.client.ui.tree.VTree.TreeNode; final public class VTargetInSubtree extends VAcceptCriterion { diff --git a/src/com/vaadin/terminal/gwt/client/ui/DragAndDropWrapperConnector.java b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/DragAndDropWrapperConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java index d8cec83612..a1ee6605aa 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/DragAndDropWrapperConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.draganddropwrapper; import java.util.HashMap; import java.util.Set; @@ -11,6 +11,8 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.customcomponent.CustomComponentConnector; import com.vaadin.ui.DragAndDropWrapper; @Component(DragAndDropWrapper.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java rename to src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java index d87bc78038..53cf1192bb 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java +++ b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.draganddropwrapper; import java.util.ArrayList; import java.util.List; @@ -30,6 +30,7 @@ import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VConsole; import com.vaadin.terminal.gwt.client.VTooltip; import com.vaadin.terminal.gwt.client.ValueMap; +import com.vaadin.terminal.gwt.client.ui.customcomponent.VCustomComponent; import com.vaadin.terminal.gwt.client.ui.dd.DDUtil; import com.vaadin.terminal.gwt.client.ui.dd.HorizontalDropLocation; import com.vaadin.terminal.gwt.client.ui.dd.VAbstractDropHandler; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapperIE.java b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapperIE.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapperIE.java rename to src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapperIE.java index 438ec49873..17230c6cf6 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapperIE.java +++ b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapperIE.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.draganddropwrapper; import com.google.gwt.dom.client.AnchorElement; import com.google.gwt.dom.client.Document; diff --git a/src/com/vaadin/terminal/gwt/client/ui/EmbeddedConnector.java b/src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/EmbeddedConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java index b716b7637f..9aa0458b01 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/EmbeddedConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.embedded; import java.util.Map; @@ -25,6 +25,9 @@ import com.vaadin.terminal.gwt.client.VConsole; import com.vaadin.terminal.gwt.client.VTooltip; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; +import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.ui.Embedded; @Component(Embedded.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VEmbedded.java b/src/com/vaadin/terminal/gwt/client/ui/embedded/VEmbedded.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VEmbedded.java rename to src/com/vaadin/terminal/gwt/client/ui/embedded/VEmbedded.java index 26b45d10e1..203e7362f3 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VEmbedded.java +++ b/src/com/vaadin/terminal/gwt/client/ui/embedded/VEmbedded.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.embedded; import java.util.HashMap; import java.util.Iterator; diff --git a/src/com/vaadin/terminal/gwt/client/ui/FormConnector.java b/src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java similarity index 91% rename from src/com/vaadin/terminal/gwt/client/ui/FormConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java index 8e05522eb5..34d8461b20 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/FormConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java @@ -1,47 +1,28 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.form; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.event.dom.client.KeyDownEvent; import com.google.gwt.user.client.ui.Widget; -import com.vaadin.terminal.gwt.client.AbstractFieldState; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.ComponentConnector; -import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.LayoutManager; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; import com.vaadin.ui.Form; @Component(Form.class) public class FormConnector extends AbstractComponentContainerConnector implements Paintable, SimpleManagedLayout { - public static class FormState extends AbstractFieldState { - private Connector layout; - private Connector footer; - - public Connector getLayout() { - return layout; - } - - public void setLayout(Connector layout) { - this.layout = layout; - } - - public Connector getFooter() { - return footer; - } - - public void setFooter(Connector footer) { - this.footer = footer; - } - - } - @Override public void init() { VForm form = getWidget(); diff --git a/src/com/vaadin/terminal/gwt/client/ui/form/FormState.java b/src/com/vaadin/terminal/gwt/client/ui/form/FormState.java new file mode 100644 index 0000000000..ef48593eb5 --- /dev/null +++ b/src/com/vaadin/terminal/gwt/client/ui/form/FormState.java @@ -0,0 +1,26 @@ +package com.vaadin.terminal.gwt.client.ui.form; + +import com.vaadin.terminal.gwt.client.AbstractFieldState; +import com.vaadin.terminal.gwt.client.Connector; + +public class FormState extends AbstractFieldState { + private Connector layout; + private Connector footer; + + public Connector getLayout() { + return layout; + } + + public void setLayout(Connector layout) { + this.layout = layout; + } + + public Connector getFooter() { + return footer; + } + + public void setFooter(Connector footer) { + this.footer = footer; + } + +} \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/VForm.java b/src/com/vaadin/terminal/gwt/client/ui/form/VForm.java similarity index 94% rename from src/com/vaadin/terminal/gwt/client/ui/VForm.java rename to src/com/vaadin/terminal/gwt/client/ui/form/VForm.java index be205d2a88..e3a0c9b321 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VForm.java +++ b/src/com/vaadin/terminal/gwt/client/ui/form/VForm.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.form; import com.google.gwt.dom.client.Style.Display; import com.google.gwt.event.dom.client.KeyDownEvent; @@ -15,6 +15,8 @@ import com.google.gwt.user.client.ui.ComplexPanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.VErrorMessage; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; public class VForm extends ComplexPanel implements KeyDownHandler { diff --git a/src/com/vaadin/terminal/gwt/client/ui/FormLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java similarity index 82% rename from src/com/vaadin/terminal/gwt/client/ui/FormLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java index 2b2f129246..aa076784e1 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/FormLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java @@ -1,17 +1,21 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.formlayout; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.ConnectorHierarchyChangeEvent; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; -import com.vaadin.terminal.gwt.client.ui.AbstractOrderedLayoutConnector.AbstractOrderedLayoutState; -import com.vaadin.terminal.gwt.client.ui.VFormLayout.Caption; -import com.vaadin.terminal.gwt.client.ui.VFormLayout.ErrorFlag; -import com.vaadin.terminal.gwt.client.ui.VFormLayout.VFormLayoutTable; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; +import com.vaadin.terminal.gwt.client.ui.formlayout.VFormLayout.Caption; +import com.vaadin.terminal.gwt.client.ui.formlayout.VFormLayout.ErrorFlag; +import com.vaadin.terminal.gwt.client.ui.formlayout.VFormLayout.VFormLayoutTable; +import com.vaadin.terminal.gwt.client.ui.orderedlayout.AbstractOrderedLayoutConnector.AbstractOrderedLayoutState; import com.vaadin.ui.FormLayout; @Component(FormLayout.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java b/src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java index 4a9bc8ca66..85584755a6 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.formlayout; import java.util.ArrayList; import java.util.HashMap; @@ -24,6 +24,9 @@ import com.vaadin.terminal.gwt.client.ComponentState; import com.vaadin.terminal.gwt.client.Focusable; import com.vaadin.terminal.gwt.client.StyleConstants; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; /** * Two col Layout that places caption on left col and field on right col diff --git a/src/com/vaadin/terminal/gwt/client/ui/GridLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/GridLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java index 4b37d2c407..c96c2f7b63 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/GridLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.gridlayout; import java.util.Iterator; @@ -19,8 +19,13 @@ import com.vaadin.terminal.gwt.client.VCaption; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector.AbstractLayoutState; -import com.vaadin.terminal.gwt.client.ui.VGridLayout.Cell; +import com.vaadin.terminal.gwt.client.ui.AlignmentInfo; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; +import com.vaadin.terminal.gwt.client.ui.gridlayout.VGridLayout.Cell; import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot; import com.vaadin.ui.GridLayout; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java b/src/com/vaadin/terminal/gwt/client/ui/gridlayout/VGridLayout.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/gridlayout/VGridLayout.java index f218594edb..1949cb191c 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/gridlayout/VGridLayout.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.gridlayout; import java.util.HashMap; import java.util.LinkedList; @@ -23,6 +23,8 @@ import com.vaadin.terminal.gwt.client.LayoutManager; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VCaption; +import com.vaadin.terminal.gwt.client.ui.AlignmentInfo; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; import com.vaadin.terminal.gwt.client.ui.layout.ComponentConnectorLayoutSlot; import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot; diff --git a/src/com/vaadin/terminal/gwt/client/ui/LinkConnector.java b/src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/LinkConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java index 715e902b24..1c083d9566 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/LinkConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.link; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.DOM; @@ -10,6 +10,9 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.Icon; import com.vaadin.ui.Link; @Component(Link.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VLink.java b/src/com/vaadin/terminal/gwt/client/ui/link/VLink.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/VLink.java rename to src/com/vaadin/terminal/gwt/client/ui/link/VLink.java index 22c3d10657..68fe5d9292 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VLink.java +++ b/src/com/vaadin/terminal/gwt/client/ui/link/VLink.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.link; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; @@ -14,6 +14,7 @@ import com.google.gwt.user.client.ui.HTML; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.Icon; public class VLink extends HTML implements ClickHandler { diff --git a/src/com/vaadin/terminal/gwt/client/ui/ListSelectConnector.java b/src/com/vaadin/terminal/gwt/client/ui/listselect/ListSelectConnector.java similarity index 71% rename from src/com/vaadin/terminal/gwt/client/ui/ListSelectConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/listselect/ListSelectConnector.java index ce9fb91f9a..0be533f00e 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/ListSelectConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/listselect/ListSelectConnector.java @@ -2,10 +2,12 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.listselect; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.optiongroup.OptionGroupBaseConnector; import com.vaadin.ui.ListSelect; @Component(ListSelect.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/listselect/TooltipListBox.java b/src/com/vaadin/terminal/gwt/client/ui/listselect/TooltipListBox.java new file mode 100644 index 0000000000..7d0c805e05 --- /dev/null +++ b/src/com/vaadin/terminal/gwt/client/ui/listselect/TooltipListBox.java @@ -0,0 +1,38 @@ +package com.vaadin.terminal.gwt.client.ui.listselect; + +import com.google.gwt.user.client.Event; +import com.google.gwt.user.client.ui.ListBox; +import com.google.gwt.user.client.ui.Widget; +import com.vaadin.terminal.gwt.client.ApplicationConnection; +import com.vaadin.terminal.gwt.client.VTooltip; + +/** + * Extended ListBox to listen tooltip events and forward them to generic + * handler. + */ +public class TooltipListBox extends ListBox { + private ApplicationConnection client; + private Widget widget; + + public TooltipListBox(boolean isMultiselect) { + super(isMultiselect); + sinkEvents(VTooltip.TOOLTIP_EVENTS); + } + + public void setClient(ApplicationConnection client) { + this.client = client; + } + + public void setSelect(Widget widget) { + this.widget = widget; + } + + @Override + public void onBrowserEvent(Event event) { + super.onBrowserEvent(event); + if (client != null) { + client.handleTooltipEvent(event, widget); + } + } + +} \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/VListSelect.java b/src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java similarity index 77% rename from src/com/vaadin/terminal/gwt/client/ui/VListSelect.java rename to src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java index 9ac5e5ab4c..e338897841 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VListSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java @@ -2,18 +2,14 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.listselect; import java.util.ArrayList; import java.util.Iterator; import com.google.gwt.event.dom.client.ChangeEvent; -import com.google.gwt.user.client.Event; -import com.google.gwt.user.client.ui.ListBox; -import com.google.gwt.user.client.ui.Widget; -import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.optiongroup.VOptionGroupBase; public class VListSelect extends VOptionGroupBase { @@ -109,35 +105,4 @@ public class VListSelect extends VOptionGroupBase { public void focus() { select.setFocus(true); } -} - -/** - * Extended ListBox to listen tooltip events and forward them to generic - * handler. - */ -class TooltipListBox extends ListBox { - private ApplicationConnection client; - private Widget widget; - - TooltipListBox(boolean isMultiselect) { - super(isMultiselect); - sinkEvents(VTooltip.TOOLTIP_EVENTS); - } - - public void setClient(ApplicationConnection client) { - this.client = client; - } - - public void setSelect(Widget widget) { - this.widget = widget; - } - - @Override - public void onBrowserEvent(Event event) { - super.onBrowserEvent(event); - if (client != null) { - client.handleTooltipEvent(event, widget); - } - } - } \ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/MenuBar.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/MenuBar.java rename to src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java index f0857f48c1..7bee870387 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/MenuBar.java +++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.menubar; /* * Copyright 2007 Google Inc. @@ -32,6 +32,7 @@ import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.PopupListener; import com.google.gwt.user.client.ui.PopupPanel; import com.google.gwt.user.client.ui.Widget; +import com.vaadin.terminal.gwt.client.ui.VOverlay; /** * A standard menu bar widget. A menu bar can contain any number of menu items, @@ -294,7 +295,7 @@ public class MenuBar extends Widget implements PopupListener { * @return a list containing the MenuItem objects in the menu * bar */ - protected List getItems() { + public List getItems() { return items; } @@ -306,7 +307,7 @@ public class MenuBar extends Widget implements PopupListener { * @return the MenuItem that is currently selected, or * null if no items are currently selected */ - protected MenuItem getSelectedItem() { + public MenuItem getSelectedItem() { return selectedItem; } @@ -347,7 +348,7 @@ public class MenuBar extends Widget implements PopupListener { * true if the item's command should be fired, * false otherwise. */ - void doItemAction(final MenuItem item, boolean fireCommand) { + protected void doItemAction(final MenuItem item, boolean fireCommand) { // If the given item is already showing its menu, we're done. if ((shownChildMenu != null) && (item.getSubMenu() == shownChildMenu)) { return; @@ -451,7 +452,7 @@ public class MenuBar extends Widget implements PopupListener { } } - void selectItem(MenuItem item) { + public void selectItem(MenuItem item) { if (item == selectedItem) { return; } diff --git a/src/com/vaadin/terminal/gwt/client/ui/MenuBarConnector.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java similarity index 94% rename from src/com/vaadin/terminal/gwt/client/ui/MenuBarConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java index 0980ea07dd..ee23e88647 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/MenuBarConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.menubar; import java.util.Iterator; import java.util.Stack; @@ -13,8 +13,12 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; -import com.vaadin.terminal.gwt.client.ui.VMenuBar.CustomMenuItem; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; +import com.vaadin.terminal.gwt.client.ui.menubar.VMenuBar.CustomMenuItem; @Component(value = com.vaadin.ui.MenuBar.class, loadStyle = LoadStyle.LAZY) public class MenuBarConnector extends AbstractComponentConnector implements diff --git a/src/com/vaadin/terminal/gwt/client/ui/MenuItem.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/MenuItem.java rename to src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java index ec02db1c70..af79ba7c5e 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/MenuItem.java +++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.menubar; /* * Copyright 2007 Google Inc. diff --git a/src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java rename to src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java index b01861bc7a..e48483cb02 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java +++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.menubar; import java.util.ArrayList; import java.util.List; @@ -37,6 +37,11 @@ import com.vaadin.terminal.gwt.client.TooltipInfo; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.SimpleFocusablePanel; +import com.vaadin.terminal.gwt.client.ui.SubPartAware; +import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; +import com.vaadin.terminal.gwt.client.ui.VOverlay; public class VMenuBar extends SimpleFocusablePanel implements CloseHandler, KeyPressHandler, KeyDownHandler, diff --git a/src/com/vaadin/terminal/gwt/client/ui/NativeButtonConnector.java b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java similarity index 91% rename from src/com/vaadin/terminal/gwt/client/ui/NativeButtonConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java index 6dd7cd0eac..93e1172369 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/NativeButtonConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.nativebutton; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.BlurEvent; @@ -15,7 +15,11 @@ import com.vaadin.terminal.gwt.client.EventHelper; import com.vaadin.terminal.gwt.client.communication.FieldRpc.FocusAndBlurServerRpc; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; -import com.vaadin.terminal.gwt.client.ui.ButtonConnector.ButtonServerRpc; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.button.ButtonConnector.ButtonServerRpc; +import com.vaadin.terminal.gwt.client.ui.button.ButtonState; import com.vaadin.ui.NativeButton; @Component(NativeButton.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VNativeButton.java b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/VNativeButton.java rename to src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java index b3f60c91ad..cca8fc14bf 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VNativeButton.java +++ b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.nativebutton; import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.ClickEvent; @@ -16,7 +16,8 @@ import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.MouseEventDetailsBuilder; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VTooltip; -import com.vaadin.terminal.gwt.client.ui.ButtonConnector.ButtonServerRpc; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.button.ButtonConnector.ButtonServerRpc; public class VNativeButton extends Button implements ClickHandler { diff --git a/src/com/vaadin/terminal/gwt/client/ui/NativeSelectConnector.java b/src/com/vaadin/terminal/gwt/client/ui/nativeselect/NativeSelectConnector.java similarity index 72% rename from src/com/vaadin/terminal/gwt/client/ui/NativeSelectConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/nativeselect/NativeSelectConnector.java index 0d85f3ed95..0bc43f3e41 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/NativeSelectConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/nativeselect/NativeSelectConnector.java @@ -2,10 +2,12 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.nativeselect; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.optiongroup.OptionGroupBaseConnector; import com.vaadin.ui.NativeSelect; @Component(NativeSelect.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VNativeSelect.java b/src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/VNativeSelect.java rename to src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java index ec2f6e42a1..54f5e9aff5 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VNativeSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java @@ -2,13 +2,16 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.nativeselect; import java.util.ArrayList; import java.util.Iterator; import com.google.gwt.event.dom.client.ChangeEvent; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Field; +import com.vaadin.terminal.gwt.client.ui.listselect.TooltipListBox; +import com.vaadin.terminal.gwt.client.ui.optiongroup.VOptionGroupBase; public class VNativeSelect extends VOptionGroupBase implements Field { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VNotification.java b/src/com/vaadin/terminal/gwt/client/ui/notification/VNotification.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VNotification.java rename to src/com/vaadin/terminal/gwt/client/ui/notification/VNotification.java index 1fc63e6a56..eb97160f52 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VNotification.java +++ b/src/com/vaadin/terminal/gwt/client/ui/notification/VNotification.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.notification; import java.util.ArrayList; import java.util.Date; @@ -21,6 +21,7 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; +import com.vaadin.terminal.gwt.client.ui.VOverlay; import com.vaadin.terminal.gwt.client.ui.root.VRoot; public class VNotification extends VOverlay { diff --git a/src/com/vaadin/terminal/gwt/client/ui/OptionGroupBaseConnector.java b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/OptionGroupBaseConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java index df2e6942c1..3658126a97 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/OptionGroupBaseConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java @@ -2,11 +2,14 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.optiongroup; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.nativebutton.VNativeButton; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; public abstract class OptionGroupBaseConnector extends AbstractFieldConnector implements Paintable { diff --git a/src/com/vaadin/terminal/gwt/client/ui/OptionGroupConnector.java b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupConnector.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/OptionGroupConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupConnector.java index 8c9811756f..57c98978e7 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/OptionGroupConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.optiongroup; import java.util.ArrayList; @@ -13,6 +13,7 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.EventId; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.ui.OptionGroup; @Component(OptionGroup.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java rename to src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java index 737e67735a..d6e6949242 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java +++ b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.optiongroup; import java.util.HashMap; import java.util.Iterator; @@ -29,6 +29,8 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.EventId; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.checkbox.VCheckBox; public class VOptionGroup extends VOptionGroupBase implements FocusHandler, BlurHandler { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOptionGroupBase.java b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/VOptionGroupBase.java rename to src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java index bcd5cc891f..a512f024b8 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VOptionGroupBase.java +++ b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.optiongroup; import java.util.Set; @@ -20,8 +20,11 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Focusable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Field; +import com.vaadin.terminal.gwt.client.ui.nativebutton.VNativeButton; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; -abstract class VOptionGroupBase extends Composite implements Field, +public abstract class VOptionGroupBase extends Composite implements Field, ClickHandler, ChangeHandler, KeyPressHandler, Focusable { public static final String CLASSNAME_OPTION = "v-select-option"; diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractOrderedLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/AbstractOrderedLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java index 0866a3007b..f3d817b586 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbstractOrderedLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.orderedlayout; import java.util.List; @@ -20,6 +20,10 @@ import com.vaadin.terminal.gwt.client.VCaption; import com.vaadin.terminal.gwt.client.ValueMap; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; +import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector; +import com.vaadin.terminal.gwt.client.ui.AlignmentInfo; +import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; import com.vaadin.terminal.gwt.client.ui.layout.ComponentConnectorLayoutSlot; import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot; diff --git a/src/com/vaadin/terminal/gwt/client/ui/HorizontalLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/HorizontalLayoutConnector.java similarity index 84% rename from src/com/vaadin/terminal/gwt/client/ui/HorizontalLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/orderedlayout/HorizontalLayoutConnector.java index da1ea99f28..74f5906142 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/HorizontalLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/HorizontalLayoutConnector.java @@ -1,9 +1,10 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.orderedlayout; import com.google.gwt.core.client.GWT; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.ui.HorizontalLayout; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VHorizontalLayout.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java similarity index 81% rename from src/com/vaadin/terminal/gwt/client/ui/VHorizontalLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java index 30796b1660..4520f2be55 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VHorizontalLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VHorizontalLayout.java @@ -1,7 +1,8 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.orderedlayout; + public class VHorizontalLayout extends VMeasuringOrderedLayout { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VMeasuringOrderedLayout.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VMeasuringOrderedLayout.java index b7d28c56b9..03cf1a5dfb 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VMeasuringOrderedLayout.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.orderedlayout; import java.util.HashMap; import java.util.Map; @@ -15,6 +15,7 @@ import com.google.gwt.user.client.Element; import com.google.gwt.user.client.ui.ComplexPanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.VCaption; +import com.vaadin.terminal.gwt.client.ui.VMarginInfo; import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot; public class VMeasuringOrderedLayout extends ComplexPanel { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VVerticalLayout.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java similarity index 80% rename from src/com/vaadin/terminal/gwt/client/ui/VVerticalLayout.java rename to src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java index 03b71321b2..ba5f24fd67 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VVerticalLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VVerticalLayout.java @@ -1,7 +1,8 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.orderedlayout; + public class VVerticalLayout extends VMeasuringOrderedLayout { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VerticalLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VerticalLayoutConnector.java similarity index 83% rename from src/com/vaadin/terminal/gwt/client/ui/VerticalLayoutConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VerticalLayoutConnector.java index a7109f453c..8e3677ca5f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VerticalLayoutConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/VerticalLayoutConnector.java @@ -1,9 +1,10 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.orderedlayout; import com.google.gwt.core.client.GWT; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.ui.VerticalLayout; diff --git a/src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java b/src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java index 529353f990..7f2afaeb7f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.panel; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.NativeEvent; @@ -19,6 +19,12 @@ import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.PostLayoutListener; +import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; import com.vaadin.ui.Panel; @Component(Panel.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPanel.java b/src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/VPanel.java rename to src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java index 26eb5cb798..e2d3d443a0 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.panel; import com.google.gwt.dom.client.DivElement; import com.google.gwt.dom.client.Document; @@ -14,7 +14,10 @@ import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.SimplePanel; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Focusable; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner; +import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate; public class VPanel extends SimplePanel implements ShortcutActionHandlerOwner, Focusable { diff --git a/src/com/vaadin/terminal/gwt/client/ui/PasswordFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/passwordfield/PasswordFieldConnector.java similarity index 80% rename from src/com/vaadin/terminal/gwt/client/ui/PasswordFieldConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/passwordfield/PasswordFieldConnector.java index 996e82f405..088e83c9cc 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/PasswordFieldConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/passwordfield/PasswordFieldConnector.java @@ -2,12 +2,14 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.passwordfield; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.textfield.TextFieldConnector; import com.vaadin.ui.PasswordField; @Component(PasswordField.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPasswordField.java b/src/com/vaadin/terminal/gwt/client/ui/passwordfield/VPasswordField.java similarity index 71% rename from src/com/vaadin/terminal/gwt/client/ui/VPasswordField.java rename to src/com/vaadin/terminal/gwt/client/ui/passwordfield/VPasswordField.java index 5182457067..c160322de5 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPasswordField.java +++ b/src/com/vaadin/terminal/gwt/client/ui/passwordfield/VPasswordField.java @@ -2,9 +2,10 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.passwordfield; import com.google.gwt.user.client.DOM; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; /** * This class represents a password field. diff --git a/src/com/vaadin/terminal/gwt/client/ui/PopupViewConnector.java b/src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java similarity index 94% rename from src/com/vaadin/terminal/gwt/client/ui/PopupViewConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java index a409b3e5a5..cd3b1d9f47 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/PopupViewConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.popupview; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; @@ -11,6 +11,9 @@ import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.VCaption; import com.vaadin.terminal.gwt.client.VCaptionWrapper; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.PostLayoutListener; import com.vaadin.ui.PopupView; @Component(PopupView.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPopupView.java b/src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VPopupView.java rename to src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java index c13c4339a5..da48975726 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPopupView.java +++ b/src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.popupview; import java.util.HashSet; import java.util.Iterator; @@ -27,6 +27,7 @@ import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.VCaptionWrapper; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.VOverlay; import com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextArea; public class VPopupView extends HTML { diff --git a/src/com/vaadin/terminal/gwt/client/ui/ProgressIndicatorConnector.java b/src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java similarity index 91% rename from src/com/vaadin/terminal/gwt/client/ui/ProgressIndicatorConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java index 8b3bab8e6b..2727c0e305 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/ProgressIndicatorConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.progressindicator; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.DOM; @@ -10,6 +10,8 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.ui.ProgressIndicator; @Component(ProgressIndicator.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java b/src/com/vaadin/terminal/gwt/client/ui/progressindicator/VProgressIndicator.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java rename to src/com/vaadin/terminal/gwt/client/ui/progressindicator/VProgressIndicator.java index cff6bf89bd..bc64efb60a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java +++ b/src/com/vaadin/terminal/gwt/client/ui/progressindicator/VProgressIndicator.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.progressindicator; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; diff --git a/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java b/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java index 04bfbf28bd..32691b53ec 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java @@ -39,8 +39,8 @@ import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; -import com.vaadin.terminal.gwt.client.ui.VNotification; -import com.vaadin.terminal.gwt.client.ui.WindowConnector; +import com.vaadin.terminal.gwt.client.ui.notification.VNotification; +import com.vaadin.terminal.gwt.client.ui.window.WindowConnector; import com.vaadin.ui.Root; @Component(value = Root.class, loadStyle = LoadStyle.EAGER) diff --git a/src/com/vaadin/terminal/gwt/client/ui/root/RootServerRPC.java b/src/com/vaadin/terminal/gwt/client/ui/root/RootServerRPC.java index 734c624aa1..26cf619766 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/root/RootServerRPC.java +++ b/src/com/vaadin/terminal/gwt/client/ui/root/RootServerRPC.java @@ -1,7 +1,6 @@ package com.vaadin.terminal.gwt.client.ui.root; import com.vaadin.terminal.gwt.client.communication.ServerRpc; -import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector.ClickRPC; public interface RootServerRPC extends ClickRPC, ServerRpc { diff --git a/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java b/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java index 20263531a3..8182753ab2 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java +++ b/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java @@ -26,7 +26,7 @@ import com.vaadin.terminal.gwt.client.VConsole; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner; import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; -import com.vaadin.terminal.gwt.client.ui.VTextField; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; /** * diff --git a/src/com/vaadin/terminal/gwt/client/ui/SliderConnector.java b/src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/SliderConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java index 616e33ff7a..8b2e6501df 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/SliderConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.slider; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.Scheduler; @@ -10,6 +10,8 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.ui.Slider; @Component(Slider.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VSlider.java b/src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VSlider.java rename to src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java index 09cdcaf324..9ff614252d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VSlider.java +++ b/src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ // -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.slider; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Scheduler.ScheduledCommand; @@ -18,6 +18,10 @@ import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.ContainerResizedListener; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VConsole; +import com.vaadin.terminal.gwt.client.ui.Field; +import com.vaadin.terminal.gwt.client.ui.SimpleFocusablePanel; +import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; +import com.vaadin.terminal.gwt.client.ui.VOverlay; public class VSlider extends SimpleFocusablePanel implements Field, ContainerResizedListener { diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractSplitPanelConnector.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java similarity index 95% rename from src/com/vaadin/terminal/gwt/client/ui/AbstractSplitPanelConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java index 59c524bd1f..c480e7fb70 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbstractSplitPanelConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.splitpanel; import java.util.LinkedList; @@ -21,8 +21,11 @@ import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; -import com.vaadin.terminal.gwt.client.ui.VAbstractSplitPanel.SplitterMoveHandler; -import com.vaadin.terminal.gwt.client.ui.VAbstractSplitPanel.SplitterMoveHandler.SplitterMoveEvent; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; +import com.vaadin.terminal.gwt.client.ui.splitpanel.VAbstractSplitPanel.SplitterMoveHandler; +import com.vaadin.terminal.gwt.client.ui.splitpanel.VAbstractSplitPanel.SplitterMoveHandler.SplitterMoveEvent; public abstract class AbstractSplitPanelConnector extends AbstractComponentContainerConnector implements SimpleManagedLayout { diff --git a/src/com/vaadin/terminal/gwt/client/ui/HorizontalSplitPanelConnector.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/HorizontalSplitPanelConnector.java similarity index 81% rename from src/com/vaadin/terminal/gwt/client/ui/HorizontalSplitPanelConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/splitpanel/HorizontalSplitPanelConnector.java index 4f441b2d04..d1a87874dc 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/HorizontalSplitPanelConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/HorizontalSplitPanelConnector.java @@ -1,9 +1,10 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.splitpanel; import com.google.gwt.core.client.GWT; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.ui.HorizontalSplitPanel; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VAbstractSplitPanel.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VAbstractSplitPanel.java rename to src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java index 784f5d6e40..6aad93dc5c 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VAbstractSplitPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.splitpanel; import java.util.List; @@ -27,7 +27,9 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VConsole; -import com.vaadin.terminal.gwt.client.ui.VAbstractSplitPanel.SplitterMoveHandler.SplitterMoveEvent; +import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate; +import com.vaadin.terminal.gwt.client.ui.VOverlay; +import com.vaadin.terminal.gwt.client.ui.splitpanel.VAbstractSplitPanel.SplitterMoveHandler.SplitterMoveEvent; public class VAbstractSplitPanel extends ComplexPanel { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VSplitPanelHorizontal.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java similarity index 79% rename from src/com/vaadin/terminal/gwt/client/ui/VSplitPanelHorizontal.java rename to src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java index 3902f064a5..e19bc6418b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VSplitPanelHorizontal.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelHorizontal.java @@ -2,7 +2,8 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.splitpanel; + public class VSplitPanelHorizontal extends VAbstractSplitPanel { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VSplitPanelVertical.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java similarity index 79% rename from src/com/vaadin/terminal/gwt/client/ui/VSplitPanelVertical.java rename to src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java index e61f8cf5e5..0fcb638630 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VSplitPanelVertical.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VSplitPanelVertical.java @@ -2,7 +2,8 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.splitpanel; + public class VSplitPanelVertical extends VAbstractSplitPanel { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VerticalSplitPanelConnector.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VerticalSplitPanelConnector.java similarity index 81% rename from src/com/vaadin/terminal/gwt/client/ui/VerticalSplitPanelConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/splitpanel/VerticalSplitPanelConnector.java index bbce8572c2..a9b3e81a1b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VerticalSplitPanelConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VerticalSplitPanelConnector.java @@ -1,9 +1,10 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.splitpanel; import com.google.gwt.core.client.GWT; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.ui.VerticalSplitPanel; diff --git a/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/TableConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java index 7acdc84b5f..76c6c21571 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.table; import java.util.Iterator; @@ -18,8 +18,11 @@ import com.vaadin.terminal.gwt.client.DirectionalManagedLayout; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; -import com.vaadin.terminal.gwt.client.ui.VScrollTable.ContextMenuDetails; -import com.vaadin.terminal.gwt.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.PostLayoutListener; +import com.vaadin.terminal.gwt.client.ui.table.VScrollTable.ContextMenuDetails; +import com.vaadin.terminal.gwt.client.ui.table.VScrollTable.VScrollTableBody.VScrollTableRow; @Component(com.vaadin.ui.Table.class) public class TableConnector extends AbstractComponentContainerConnector diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java rename to src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java index b372ad7e13..fbe1ef2f27 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.table; import java.util.ArrayList; import java.util.Collection; @@ -73,7 +73,11 @@ import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VConsole; import com.vaadin.terminal.gwt.client.VTooltip; -import com.vaadin.terminal.gwt.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow; +import com.vaadin.terminal.gwt.client.ui.Action; +import com.vaadin.terminal.gwt.client.ui.ActionOwner; +import com.vaadin.terminal.gwt.client.ui.FocusableScrollPanel; +import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate; +import com.vaadin.terminal.gwt.client.ui.TreeAction; import com.vaadin.terminal.gwt.client.ui.dd.DDUtil; import com.vaadin.terminal.gwt.client.ui.dd.VAbstractDropHandler; import com.vaadin.terminal.gwt.client.ui.dd.VAcceptCallback; @@ -82,7 +86,10 @@ import com.vaadin.terminal.gwt.client.ui.dd.VDragEvent; import com.vaadin.terminal.gwt.client.ui.dd.VHasDropHandler; import com.vaadin.terminal.gwt.client.ui.dd.VTransferable; import com.vaadin.terminal.gwt.client.ui.dd.VerticalDropLocation; +import com.vaadin.terminal.gwt.client.ui.embedded.VEmbedded; import com.vaadin.terminal.gwt.client.ui.label.VLabel; +import com.vaadin.terminal.gwt.client.ui.table.VScrollTable.VScrollTableBody.VScrollTableRow; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; /** * VScrollTable @@ -1053,7 +1060,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, totalRows = newTotalRows; } - protected int getTotalRows() { + public int getTotalRows() { return totalRows; } @@ -1468,7 +1475,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, * The key to search with * @return */ - protected VScrollTableRow getRenderedRowByKey(String key) { + public VScrollTableRow getRenderedRowByKey(String key) { if (scrollBody != null) { final Iterator it = scrollBody.iterator(); VScrollTableRow r = null; @@ -6111,7 +6118,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, * The row to where the selection head should move * @return Returns true if focus was moved successfully, else false */ - protected boolean setRowFocus(VScrollTableRow row) { + public boolean setRowFocus(VScrollTableRow row) { if (!isSelectable()) { return false; @@ -6637,7 +6644,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, return function(){ return false; }; }-*/; - protected void triggerLazyColumnAdjustment(boolean now) { + public void triggerLazyColumnAdjustment(boolean now) { lazyAdjustColumnWidths.cancel(); if (now) { lazyAdjustColumnWidths.run(); diff --git a/src/com/vaadin/terminal/gwt/client/ui/TabsheetBaseConnector.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/TabsheetBaseConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java index 48d14b6b0f..e16e84d112 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TabsheetBaseConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.tabsheet; import java.util.ArrayList; import java.util.Iterator; @@ -11,6 +11,7 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; public abstract class TabsheetBaseConnector extends AbstractComponentContainerConnector implements Paintable { diff --git a/src/com/vaadin/terminal/gwt/client/ui/TabsheetConnector.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java similarity index 94% rename from src/com/vaadin/terminal/gwt/client/ui/TabsheetConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java index afb9b69e6e..7423a536f2 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TabsheetConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.tabsheet; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.DOM; @@ -9,6 +9,8 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; import com.vaadin.ui.TabSheet; @Component(TabSheet.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java rename to src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java index 2cdc041955..908a984dbb 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java +++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.tabsheet; import java.util.Iterator; import java.util.List; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheetBase.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheetBase.java similarity index 92% rename from src/com/vaadin/terminal/gwt/client/ui/VTabsheetBase.java rename to src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheetBase.java index a499a35460..ed9883dd35 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheetBase.java +++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheetBase.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.tabsheet; import java.util.ArrayList; import java.util.HashSet; @@ -15,10 +15,10 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.UIDL; -abstract class VTabsheetBase extends ComplexPanel { +public abstract class VTabsheetBase extends ComplexPanel { - String id; - ApplicationConnection client; + protected String id; + protected ApplicationConnection client; protected final ArrayList tabKeys = new ArrayList(); protected int activeTabIndex = 0; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheetPanel.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java rename to src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheetPanel.java index 68270da85e..ee0571d3a7 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheetPanel.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.tabsheet; import com.google.gwt.dom.client.Node; import com.google.gwt.dom.client.NodeList; @@ -14,11 +14,12 @@ import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.ComplexPanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.Util; +import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate; /** * A panel that displays all of its child widgets in a 'deck', where only one * can be visible at a time. It is used by - * {@link com.vaadin.terminal.gwt.client.ui.VTabsheet}. + * {@link com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheet}. * * This class has the same basic functionality as the GWT DeckPanel * {@link com.google.gwt.user.client.ui.DeckPanel}, with the exception that it diff --git a/src/com/vaadin/terminal/gwt/client/ui/TextAreaConnector.java b/src/com/vaadin/terminal/gwt/client/ui/textarea/TextAreaConnector.java similarity index 85% rename from src/com/vaadin/terminal/gwt/client/ui/TextAreaConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/textarea/TextAreaConnector.java index 30a02cd86d..f5ef93a265 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TextAreaConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/textarea/TextAreaConnector.java @@ -2,13 +2,15 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.textarea; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.textfield.TextFieldConnector; import com.vaadin.ui.TextArea; @Component(TextArea.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTextArea.java b/src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java similarity index 93% rename from src/com/vaadin/terminal/gwt/client/ui/VTextArea.java rename to src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java index 2c8ed24693..c600b2fd1e 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTextArea.java +++ b/src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java @@ -2,13 +2,14 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.textarea; import com.google.gwt.core.client.Scheduler; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Event; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; /** * This class represents a multiline textfield (textarea). diff --git a/src/com/vaadin/terminal/gwt/client/ui/TextFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/TextFieldConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java index 8bd59e286e..806dc8c5dc 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TextFieldConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.textfield; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.Scheduler; @@ -12,6 +12,8 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.BeforeShortcutActionListener; import com.vaadin.ui.TextField; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTextField.java b/src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VTextField.java rename to src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java index 5936a96565..a7a27a6b27 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTextField.java +++ b/src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.textfield; import com.google.gwt.dom.client.Style.Overflow; import com.google.gwt.event.dom.client.BlurEvent; @@ -24,6 +24,7 @@ import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.EventId; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.Field; /** * This class represents a basic text input field with one row. @@ -279,7 +280,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler, } - protected int getMaxLength() { + public int getMaxLength() { return maxLength; } diff --git a/src/com/vaadin/terminal/gwt/client/ui/TreeConnector.java b/src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java similarity index 97% rename from src/com/vaadin/terminal/gwt/client/ui/TreeConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java index 78a0a8453b..f2f5d76d43 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TreeConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.tree; import java.util.Iterator; @@ -13,7 +13,9 @@ import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.TooltipInfo; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.VTree.TreeNode; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.tree.VTree.TreeNode; import com.vaadin.ui.Tree; @Component(Tree.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTree.java b/src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VTree.java rename to src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java index 49c6a2a582..6f19cba957 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTree.java +++ b/src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.tree; import java.util.ArrayList; import java.util.HashMap; @@ -46,6 +46,13 @@ import com.vaadin.terminal.gwt.client.MouseEventDetailsBuilder; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.Action; +import com.vaadin.terminal.gwt.client.ui.ActionOwner; +import com.vaadin.terminal.gwt.client.ui.FocusElementPanel; +import com.vaadin.terminal.gwt.client.ui.Icon; +import com.vaadin.terminal.gwt.client.ui.SubPartAware; +import com.vaadin.terminal.gwt.client.ui.TreeAction; +import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; import com.vaadin.terminal.gwt.client.ui.dd.DDUtil; import com.vaadin.terminal.gwt.client.ui.dd.VAbstractDropHandler; import com.vaadin.terminal.gwt.client.ui.dd.VAcceptCallback; diff --git a/src/com/vaadin/terminal/gwt/client/ui/TreeTableConnector.java b/src/com/vaadin/terminal/gwt/client/ui/treetable/TreeTableConnector.java similarity index 90% rename from src/com/vaadin/terminal/gwt/client/ui/TreeTableConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/treetable/TreeTableConnector.java index 15dda772c5..aff2fafdb9 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TreeTableConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/treetable/TreeTableConnector.java @@ -1,14 +1,17 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.treetable; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow; -import com.vaadin.terminal.gwt.client.ui.VTreeTable.PendingNavigationEvent; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.FocusableScrollPanel; +import com.vaadin.terminal.gwt.client.ui.table.TableConnector; +import com.vaadin.terminal.gwt.client.ui.table.VScrollTable.VScrollTableBody.VScrollTableRow; +import com.vaadin.terminal.gwt.client.ui.treetable.VTreeTable.PendingNavigationEvent; import com.vaadin.ui.TreeTable; @Component(TreeTable.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java b/src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java rename to src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java index 34c2a8b866..2e15e7c445 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.treetable; import java.util.ArrayList; import java.util.Iterator; @@ -28,7 +28,8 @@ import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.ComputedStyle; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; -import com.vaadin.terminal.gwt.client.ui.VTreeTable.VTreeTableScrollBody.VTreeTableRow; +import com.vaadin.terminal.gwt.client.ui.table.VScrollTable; +import com.vaadin.terminal.gwt.client.ui.treetable.VTreeTable.VTreeTableScrollBody.VTreeTableRow; public class VTreeTable extends VScrollTable { diff --git a/src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java similarity index 89% rename from src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java index 55e75879ca..de1095f664 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java @@ -2,13 +2,15 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.twincolselect; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.DirectionalManagedLayout; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.optiongroup.OptionGroupBaseConnector; import com.vaadin.ui.TwinColSelect; @Component(TwinColSelect.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java rename to src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java index 7f12a04574..8f1ea09b8f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.twincolselect; import java.util.ArrayList; import java.util.HashSet; @@ -28,6 +28,9 @@ import com.google.gwt.user.client.ui.ListBox; import com.google.gwt.user.client.ui.Panel; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; +import com.vaadin.terminal.gwt.client.ui.SubPartAware; +import com.vaadin.terminal.gwt.client.ui.button.VButton; +import com.vaadin.terminal.gwt.client.ui.optiongroup.VOptionGroupBase; public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler, MouseDownHandler, DoubleClickHandler, SubPartAware { diff --git a/src/com/vaadin/terminal/gwt/client/ui/UploadConnector.java b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java similarity index 92% rename from src/com/vaadin/terminal/gwt/client/ui/UploadConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java index 72d97f953a..c8b9fae07a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/UploadConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java @@ -2,13 +2,15 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.upload; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; +import com.vaadin.terminal.gwt.client.ui.Component; import com.vaadin.terminal.gwt.client.ui.Component.LoadStyle; import com.vaadin.ui.Upload; diff --git a/src/com/vaadin/terminal/gwt/client/ui/UploadIFrameOnloadStrategy.java b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadIFrameOnloadStrategy.java similarity index 91% rename from src/com/vaadin/terminal/gwt/client/ui/UploadIFrameOnloadStrategy.java rename to src/com/vaadin/terminal/gwt/client/ui/upload/UploadIFrameOnloadStrategy.java index eabb21eb4f..0015ce933f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/UploadIFrameOnloadStrategy.java +++ b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadIFrameOnloadStrategy.java @@ -1,7 +1,8 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.upload; + public class UploadIFrameOnloadStrategy { diff --git a/src/com/vaadin/terminal/gwt/client/ui/UploadIFrameOnloadStrategyIE.java b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadIFrameOnloadStrategyIE.java similarity index 92% rename from src/com/vaadin/terminal/gwt/client/ui/UploadIFrameOnloadStrategyIE.java rename to src/com/vaadin/terminal/gwt/client/ui/upload/UploadIFrameOnloadStrategyIE.java index f4b41b0646..27ea401be2 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/UploadIFrameOnloadStrategyIE.java +++ b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadIFrameOnloadStrategyIE.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.upload; import com.google.gwt.dom.client.Element; diff --git a/src/com/vaadin/terminal/gwt/client/ui/VUpload.java b/src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java similarity index 98% rename from src/com/vaadin/terminal/gwt/client/ui/VUpload.java rename to src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java index f7fb5878d5..4fe53fb89c 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VUpload.java +++ b/src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.upload; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.Scheduler; @@ -25,6 +25,7 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.VConsole; import com.vaadin.terminal.gwt.client.VTooltip; +import com.vaadin.terminal.gwt.client.ui.button.VButton; /** * diff --git a/src/com/vaadin/terminal/gwt/client/ui/VVideo.java b/src/com/vaadin/terminal/gwt/client/ui/video/VVideo.java similarity index 94% rename from src/com/vaadin/terminal/gwt/client/ui/VVideo.java rename to src/com/vaadin/terminal/gwt/client/ui/video/VVideo.java index 36f17e1436..4c54e48058 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VVideo.java +++ b/src/com/vaadin/terminal/gwt/client/ui/video/VVideo.java @@ -2,13 +2,14 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.video; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.dom.client.VideoElement; import com.google.gwt.user.client.Element; import com.vaadin.terminal.gwt.client.Util; +import com.vaadin.terminal.gwt.client.ui.VMediaBase; public class VVideo extends VMediaBase { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VideoConnector.java b/src/com/vaadin/terminal/gwt/client/ui/video/VideoConnector.java similarity index 87% rename from src/com/vaadin/terminal/gwt/client/ui/VideoConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/video/VideoConnector.java index 95032ebfb2..318a82ddcf 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VideoConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/video/VideoConnector.java @@ -1,12 +1,14 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.video; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.UIDL; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.MediaBaseConnector; import com.vaadin.ui.Video; @Component(Video.class) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VWindow.java b/src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java similarity index 99% rename from src/com/vaadin/terminal/gwt/client/ui/VWindow.java rename to src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java index 860b3d1f9e..3a1e0e8663 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VWindow.java +++ b/src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java @@ -2,7 +2,7 @@ @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.window; import java.util.ArrayList; import java.util.Arrays; @@ -35,7 +35,11 @@ import com.vaadin.terminal.gwt.client.EventId; import com.vaadin.terminal.gwt.client.Focusable; import com.vaadin.terminal.gwt.client.LayoutManager; import com.vaadin.terminal.gwt.client.Util; +import com.vaadin.terminal.gwt.client.ui.FocusableScrollPanel; +import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner; +import com.vaadin.terminal.gwt.client.ui.VLazyExecutor; +import com.vaadin.terminal.gwt.client.ui.VOverlay; /** * "Sub window" component. diff --git a/src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java b/src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java similarity index 96% rename from src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java rename to src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java index 4cee6813c7..a4f1a884ec 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java @@ -1,7 +1,7 @@ /* @VaadinApache2LicenseForJavaFiles@ */ -package com.vaadin.terminal.gwt.client.ui; +package com.vaadin.terminal.gwt.client.ui.window; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Element; @@ -23,8 +23,14 @@ import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.Util; import com.vaadin.terminal.gwt.client.communication.RpcProxy; import com.vaadin.terminal.gwt.client.communication.ServerRpc; -import com.vaadin.terminal.gwt.client.ui.PanelConnector.PanelState; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector; +import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.Component; +import com.vaadin.terminal.gwt.client.ui.PostLayoutListener; +import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler; import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.BeforeShortcutActionListener; +import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout; +import com.vaadin.terminal.gwt.client.ui.panel.PanelConnector.PanelState; @Component(value = com.vaadin.ui.Window.class) public class WindowConnector extends AbstractComponentContainerConnector diff --git a/src/com/vaadin/ui/AbsoluteLayout.java b/src/com/vaadin/ui/AbsoluteLayout.java index a65b20a54e..e548798abe 100644 --- a/src/com/vaadin/ui/AbsoluteLayout.java +++ b/src/com/vaadin/ui/AbsoluteLayout.java @@ -15,9 +15,9 @@ import com.vaadin.event.LayoutEvents.LayoutClickNotifier; import com.vaadin.terminal.Sizeable; import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.AbsoluteLayoutConnector.AbsoluteLayoutServerRPC; -import com.vaadin.terminal.gwt.client.ui.AbsoluteLayoutConnector.AbsoluteLayoutState; import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; +import com.vaadin.terminal.gwt.client.ui.absolutelayout.AbsoluteLayoutServerRPC; +import com.vaadin.terminal.gwt.client.ui.absolutelayout.AbsoluteLayoutState; /** * AbsoluteLayout is a layout implementation that mimics html absolute diff --git a/src/com/vaadin/ui/AbstractOrderedLayout.java b/src/com/vaadin/ui/AbstractOrderedLayout.java index f7c4917650..f3540af62a 100644 --- a/src/com/vaadin/ui/AbstractOrderedLayout.java +++ b/src/com/vaadin/ui/AbstractOrderedLayout.java @@ -18,8 +18,8 @@ import com.vaadin.terminal.Sizeable; import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.AbstractOrderedLayoutConnector.AbstractOrderedLayoutServerRPC; -import com.vaadin.terminal.gwt.client.ui.AbstractOrderedLayoutConnector.AbstractOrderedLayoutState; +import com.vaadin.terminal.gwt.client.ui.orderedlayout.AbstractOrderedLayoutConnector.AbstractOrderedLayoutServerRPC; +import com.vaadin.terminal.gwt.client.ui.orderedlayout.AbstractOrderedLayoutConnector.AbstractOrderedLayoutState; import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; @SuppressWarnings("serial") diff --git a/src/com/vaadin/ui/AbstractSplitPanel.java b/src/com/vaadin/ui/AbstractSplitPanel.java index 166467ca24..855bfc18b8 100644 --- a/src/com/vaadin/ui/AbstractSplitPanel.java +++ b/src/com/vaadin/ui/AbstractSplitPanel.java @@ -12,9 +12,9 @@ import com.vaadin.event.ComponentEventListener; import com.vaadin.event.MouseEvents.ClickEvent; import com.vaadin.terminal.Sizeable; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.AbstractSplitPanelConnector.AbstractSplitPanelRPC; -import com.vaadin.terminal.gwt.client.ui.AbstractSplitPanelConnector.AbstractSplitPanelState; -import com.vaadin.terminal.gwt.client.ui.AbstractSplitPanelConnector.SplitterState; +import com.vaadin.terminal.gwt.client.ui.splitpanel.AbstractSplitPanelConnector.AbstractSplitPanelRPC; +import com.vaadin.terminal.gwt.client.ui.splitpanel.AbstractSplitPanelConnector.AbstractSplitPanelState; +import com.vaadin.terminal.gwt.client.ui.splitpanel.AbstractSplitPanelConnector.SplitterState; import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; import com.vaadin.tools.ReflectTools; diff --git a/src/com/vaadin/ui/AbstractTextField.java b/src/com/vaadin/ui/AbstractTextField.java index fec13db248..acb1d71ed8 100644 --- a/src/com/vaadin/ui/AbstractTextField.java +++ b/src/com/vaadin/ui/AbstractTextField.java @@ -19,7 +19,7 @@ import com.vaadin.event.FieldEvents.TextChangeNotifier; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Vaadin6Component; -import com.vaadin.terminal.gwt.client.ui.VTextField; +import com.vaadin.terminal.gwt.client.ui.textfield.VTextField; public abstract class AbstractTextField extends AbstractField implements BlurNotifier, FocusNotifier, TextChangeNotifier, Vaadin6Component { diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java index 63106945b2..50559c4a22 100644 --- a/src/com/vaadin/ui/Button.java +++ b/src/com/vaadin/ui/Button.java @@ -19,8 +19,8 @@ import com.vaadin.event.ShortcutAction.KeyCode; import com.vaadin.event.ShortcutAction.ModifierKey; import com.vaadin.event.ShortcutListener; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.ButtonConnector.ButtonServerRpc; -import com.vaadin.terminal.gwt.client.ui.ButtonState; +import com.vaadin.terminal.gwt.client.ui.button.ButtonState; +import com.vaadin.terminal.gwt.client.ui.button.ButtonConnector.ButtonServerRpc; import com.vaadin.tools.ReflectTools; import com.vaadin.ui.Component.Focusable; diff --git a/src/com/vaadin/ui/CheckBox.java b/src/com/vaadin/ui/CheckBox.java index e98cf3638f..147a270059 100644 --- a/src/com/vaadin/ui/CheckBox.java +++ b/src/com/vaadin/ui/CheckBox.java @@ -11,8 +11,8 @@ import com.vaadin.event.FieldEvents.FocusAndBlurServerRpcImpl; import com.vaadin.event.FieldEvents.FocusEvent; import com.vaadin.event.FieldEvents.FocusListener; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.CheckBoxConnector.CheckBoxServerRpc; -import com.vaadin.terminal.gwt.client.ui.CheckBoxConnector.CheckBoxState; +import com.vaadin.terminal.gwt.client.ui.checkbox.CheckBoxServerRpc; +import com.vaadin.terminal.gwt.client.ui.checkbox.CheckBoxState; public class CheckBox extends AbstractField { diff --git a/src/com/vaadin/ui/ComboBox.java b/src/com/vaadin/ui/ComboBox.java index 46f78ac7d5..6286dad124 100644 --- a/src/com/vaadin/ui/ComboBox.java +++ b/src/com/vaadin/ui/ComboBox.java @@ -9,7 +9,7 @@ import java.util.Collection; import com.vaadin.data.Container; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; -import com.vaadin.terminal.gwt.client.ui.VFilterSelect; +import com.vaadin.terminal.gwt.client.ui.combobox.VFilterSelect; /** * A filtering dropdown single-select. Suitable for newItemsAllowed, but it's diff --git a/src/com/vaadin/ui/CssLayout.java b/src/com/vaadin/ui/CssLayout.java index 5c14d55d11..ddacd4f3d0 100644 --- a/src/com/vaadin/ui/CssLayout.java +++ b/src/com/vaadin/ui/CssLayout.java @@ -11,8 +11,8 @@ import com.vaadin.event.LayoutEvents.LayoutClickListener; import com.vaadin.event.LayoutEvents.LayoutClickNotifier; import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.CssLayoutConnector.CssLayoutServerRPC; -import com.vaadin.terminal.gwt.client.ui.CssLayoutConnector.CssLayoutState; +import com.vaadin.terminal.gwt.client.ui.csslayout.CssLayoutConnector.CssLayoutServerRPC; +import com.vaadin.terminal.gwt.client.ui.csslayout.CssLayoutConnector.CssLayoutState; import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; /** diff --git a/src/com/vaadin/ui/CustomLayout.java b/src/com/vaadin/ui/CustomLayout.java index e1c6bd595e..2327aac0a1 100644 --- a/src/com/vaadin/ui/CustomLayout.java +++ b/src/com/vaadin/ui/CustomLayout.java @@ -10,7 +10,7 @@ import java.io.InputStreamReader; import java.util.HashMap; import java.util.Iterator; -import com.vaadin.terminal.gwt.client.ui.CustomLayoutConnector.CustomLayoutState; +import com.vaadin.terminal.gwt.client.ui.customlayout.CustomLayoutConnector.CustomLayoutState; /** *

diff --git a/src/com/vaadin/ui/DateField.java b/src/com/vaadin/ui/DateField.java index 0d0bb04fc9..55ff67229c 100644 --- a/src/com/vaadin/ui/DateField.java +++ b/src/com/vaadin/ui/DateField.java @@ -27,7 +27,7 @@ import com.vaadin.event.FieldEvents.FocusListener; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Vaadin6Component; -import com.vaadin.terminal.gwt.client.ui.VDateField; +import com.vaadin.terminal.gwt.client.ui.datefield.VDateField; /** *

diff --git a/src/com/vaadin/ui/DragAndDropWrapper.java b/src/com/vaadin/ui/DragAndDropWrapper.java index babe36be72..b623197a4c 100644 --- a/src/com/vaadin/ui/DragAndDropWrapper.java +++ b/src/com/vaadin/ui/DragAndDropWrapper.java @@ -22,9 +22,9 @@ import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.StreamVariable; import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper; import com.vaadin.terminal.gwt.client.ui.dd.HorizontalDropLocation; import com.vaadin.terminal.gwt.client.ui.dd.VerticalDropLocation; +import com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper; @SuppressWarnings("serial") public class DragAndDropWrapper extends CustomComponent implements DropTarget, diff --git a/src/com/vaadin/ui/Embedded.java b/src/com/vaadin/ui/Embedded.java index 797b486337..1f110ce40a 100644 --- a/src/com/vaadin/ui/Embedded.java +++ b/src/com/vaadin/ui/Embedded.java @@ -16,8 +16,8 @@ import com.vaadin.terminal.Resource; import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; -import com.vaadin.terminal.gwt.client.ui.EmbeddedConnector; -import com.vaadin.terminal.gwt.client.ui.EmbeddedConnector.EmbeddedServerRPC; +import com.vaadin.terminal.gwt.client.ui.embedded.EmbeddedConnector; +import com.vaadin.terminal.gwt.client.ui.embedded.EmbeddedConnector.EmbeddedServerRPC; /** * Component for embedding external objects. diff --git a/src/com/vaadin/ui/Form.java b/src/com/vaadin/ui/Form.java index 3ff164cc53..5f5516b21f 100644 --- a/src/com/vaadin/ui/Form.java +++ b/src/com/vaadin/ui/Form.java @@ -31,7 +31,7 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.UserError; import com.vaadin.terminal.Vaadin6Component; -import com.vaadin.terminal.gwt.client.ui.FormConnector.FormState; +import com.vaadin.terminal.gwt.client.ui.form.FormState; /** * Form component provides easy way of creating and managing sets fields. diff --git a/src/com/vaadin/ui/GridLayout.java b/src/com/vaadin/ui/GridLayout.java index bdc08607e4..d1d8091aff 100644 --- a/src/com/vaadin/ui/GridLayout.java +++ b/src/com/vaadin/ui/GridLayout.java @@ -21,8 +21,8 @@ import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.GridLayoutConnector.GridLayoutServerRPC; -import com.vaadin.terminal.gwt.client.ui.GridLayoutConnector.GridLayoutState; +import com.vaadin.terminal.gwt.client.ui.gridlayout.GridLayoutConnector.GridLayoutServerRPC; +import com.vaadin.terminal.gwt.client.ui.gridlayout.GridLayoutConnector.GridLayoutState; import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; /** diff --git a/src/com/vaadin/ui/MenuBar.java b/src/com/vaadin/ui/MenuBar.java index 519f9e7372..f94bd7ea64 100644 --- a/src/com/vaadin/ui/MenuBar.java +++ b/src/com/vaadin/ui/MenuBar.java @@ -14,7 +14,7 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Resource; import com.vaadin.terminal.Vaadin6Component; -import com.vaadin.terminal.gwt.client.ui.VMenuBar; +import com.vaadin.terminal.gwt.client.ui.menubar.VMenuBar; /** *

diff --git a/src/com/vaadin/ui/OptionGroup.java b/src/com/vaadin/ui/OptionGroup.java index 5d671cbb13..a4aaf7ec99 100644 --- a/src/com/vaadin/ui/OptionGroup.java +++ b/src/com/vaadin/ui/OptionGroup.java @@ -17,7 +17,7 @@ import com.vaadin.event.FieldEvents.FocusEvent; import com.vaadin.event.FieldEvents.FocusListener; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; -import com.vaadin.terminal.gwt.client.ui.VOptionGroup; +import com.vaadin.terminal.gwt.client.ui.optiongroup.VOptionGroup; /** * Configures select to be used as an option group. diff --git a/src/com/vaadin/ui/Panel.java b/src/com/vaadin/ui/Panel.java index 7045313ce5..54156307d5 100644 --- a/src/com/vaadin/ui/Panel.java +++ b/src/com/vaadin/ui/Panel.java @@ -18,8 +18,8 @@ import com.vaadin.terminal.Scrollable; import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.ui.ClickEventHandler; -import com.vaadin.terminal.gwt.client.ui.PanelConnector.PanelServerRPC; -import com.vaadin.terminal.gwt.client.ui.PanelConnector.PanelState; +import com.vaadin.terminal.gwt.client.ui.panel.PanelConnector.PanelServerRPC; +import com.vaadin.terminal.gwt.client.ui.panel.PanelConnector.PanelState; import com.vaadin.ui.Component.Focusable; /** diff --git a/src/com/vaadin/ui/Root.java b/src/com/vaadin/ui/Root.java index aab4c1b6e9..febfc8c4dd 100644 --- a/src/com/vaadin/ui/Root.java +++ b/src/com/vaadin/ui/Root.java @@ -31,7 +31,7 @@ import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.WrappedRequest; import com.vaadin.terminal.WrappedRequest.BrowserDetails; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.VNotification; +import com.vaadin.terminal.gwt.client.ui.notification.VNotification; import com.vaadin.terminal.gwt.client.ui.root.RootServerRPC; import com.vaadin.terminal.gwt.client.ui.root.RootState; import com.vaadin.terminal.gwt.client.ui.root.VRoot; diff --git a/src/com/vaadin/ui/TabSheet.java b/src/com/vaadin/ui/TabSheet.java index 109429473c..64e069dcfe 100644 --- a/src/com/vaadin/ui/TabSheet.java +++ b/src/com/vaadin/ui/TabSheet.java @@ -25,8 +25,8 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Resource; import com.vaadin.terminal.Vaadin6Component; -import com.vaadin.terminal.gwt.client.ui.TabsheetBaseConnector; -import com.vaadin.terminal.gwt.client.ui.VTabsheet; +import com.vaadin.terminal.gwt.client.ui.tabsheet.TabsheetBaseConnector; +import com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheet; import com.vaadin.ui.Component.Focusable; import com.vaadin.ui.themes.Reindeer; import com.vaadin.ui.themes.Runo; diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index 03d7c73536..cfb3762164 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -48,8 +48,8 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Resource; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.VScrollTable; import com.vaadin.terminal.gwt.client.ui.dd.VLazyInitItemIdentifiers; +import com.vaadin.terminal.gwt.client.ui.table.VScrollTable; /** *

diff --git a/src/com/vaadin/ui/Tree.java b/src/com/vaadin/ui/Tree.java index 49cf3ea78a..e26dfc74a4 100644 --- a/src/com/vaadin/ui/Tree.java +++ b/src/com/vaadin/ui/Tree.java @@ -44,11 +44,11 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Resource; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.TreeConnector; -import com.vaadin.terminal.gwt.client.ui.VTree; import com.vaadin.terminal.gwt.client.ui.dd.VLazyInitItemIdentifiers; import com.vaadin.terminal.gwt.client.ui.dd.VTargetInSubtree; import com.vaadin.terminal.gwt.client.ui.dd.VerticalDropLocation; +import com.vaadin.terminal.gwt.client.ui.tree.TreeConnector; +import com.vaadin.terminal.gwt.client.ui.tree.VTree; import com.vaadin.tools.ReflectTools; /** diff --git a/src/com/vaadin/ui/TreeTable.java b/src/com/vaadin/ui/TreeTable.java index 80e721aaea..9607add2c9 100644 --- a/src/com/vaadin/ui/TreeTable.java +++ b/src/com/vaadin/ui/TreeTable.java @@ -23,7 +23,7 @@ import com.vaadin.data.util.HierarchicalContainerOrderedWrapper; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Resource; -import com.vaadin.terminal.gwt.client.ui.TreeTableConnector; +import com.vaadin.terminal.gwt.client.ui.treetable.TreeTableConnector; import com.vaadin.ui.Tree.CollapseEvent; import com.vaadin.ui.Tree.CollapseListener; import com.vaadin.ui.Tree.ExpandEvent; diff --git a/src/com/vaadin/ui/TwinColSelect.java b/src/com/vaadin/ui/TwinColSelect.java index f64f05d9a8..5539236f77 100644 --- a/src/com/vaadin/ui/TwinColSelect.java +++ b/src/com/vaadin/ui/TwinColSelect.java @@ -9,7 +9,7 @@ import java.util.Collection; import com.vaadin.data.Container; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; -import com.vaadin.terminal.gwt.client.ui.VTwinColSelect; +import com.vaadin.terminal.gwt.client.ui.twincolselect.VTwinColSelect; /** * Multiselect component with two lists: left side for available items and right diff --git a/src/com/vaadin/ui/Video.java b/src/com/vaadin/ui/Video.java index e3eae78988..28fbfb0547 100644 --- a/src/com/vaadin/ui/Video.java +++ b/src/com/vaadin/ui/Video.java @@ -7,7 +7,7 @@ package com.vaadin.ui; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Resource; -import com.vaadin.terminal.gwt.client.ui.VideoConnector; +import com.vaadin.terminal.gwt.client.ui.video.VideoConnector; /** * The Video component translates into an HTML5 <video> element and as diff --git a/src/com/vaadin/ui/Window.java b/src/com/vaadin/ui/Window.java index 6bbb1eec8c..95c9ee16c5 100644 --- a/src/com/vaadin/ui/Window.java +++ b/src/com/vaadin/ui/Window.java @@ -24,8 +24,8 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.gwt.client.MouseEventDetails; -import com.vaadin.terminal.gwt.client.ui.WindowConnector.WindowServerRPC; -import com.vaadin.terminal.gwt.client.ui.WindowConnector.WindowState; +import com.vaadin.terminal.gwt.client.ui.window.WindowConnector.WindowServerRPC; +import com.vaadin.terminal.gwt.client.ui.window.WindowConnector.WindowState; /** * A component that represents an application (browser native) window or a sub -- 2.39.5