summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/terminal/gwt')
-rw-r--r--src/com/vaadin/terminal/gwt/client/AbstractFieldState.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ComponentConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/JavaScriptExtension.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/JavaScriptExtensionState.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/NullConsole.java9
-rw-r--r--src/com/vaadin/terminal/gwt/client/ResourceLoader.java11
-rw-r--r--src/com/vaadin/terminal/gwt/client/ServerConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/SimpleTree.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/SuperDevMode.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/UIDL.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/Util.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/VDebugConsole.java26
-rw-r--r--src/com/vaadin/terminal/gwt/client/VSchedulerImpl.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/VTooltip.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/WidgetLoader.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/communication/URLReference_Serializer.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/extensions/javascriptmanager/JavaScriptManagerConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java5
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java11
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/AbstractComponentContainerConnector.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/AbstractConnector.java15
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/Action.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/ConnectorWidgetFactory.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/FocusableFlexTable.java5
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/FocusableFlowPanel.java5
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/FocusableScrollPanel.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentState.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/MediaBaseConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/ShortcutActionHandler.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java5
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/TouchScrollDelegate.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/TreeImages.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VContextMenu.java10
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VOverlay.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/Vaadin6Connector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/button/VButton.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java17
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java12
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java6
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java6
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VAbstractDropHandler.java8
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java7
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/form/VForm.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/link/VLink.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java11
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java5
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/richtextarea/RichTextAreaConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java10
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java6
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java7
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java37
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java10
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java21
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java6
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java9
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java5
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java8
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java8
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java6
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java4
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java8
-rw-r--r--src/com/vaadin/terminal/gwt/server/ApplicationResourceHandler.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/BootstrapHandler.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/ChangeVariablesErrorEvent.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/ClientConnector.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/ClientMethodInvocation.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/DragAndDropService.java18
-rw-r--r--src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java31
-rw-r--r--src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/RestrictedRenderResponse.java25
-rw-r--r--src/com/vaadin/terminal/gwt/server/ServerRpcManager.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/StreamingErrorEventImpl.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/StreamingStartEventImpl.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/UnsupportedBrowserHandler.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/WebApplicationContext.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/WebBrowser.java3
-rw-r--r--src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java9
-rw-r--r--src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java2
-rw-r--r--src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java20
-rw-r--r--src/com/vaadin/terminal/gwt/server/WrappedPortletResponse.java9
-rw-r--r--src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java1
142 files changed, 621 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/AbstractFieldState.java b/src/com/vaadin/terminal/gwt/client/AbstractFieldState.java
index 3a66a01f23..6a869893f7 100644
--- a/src/com/vaadin/terminal/gwt/client/AbstractFieldState.java
+++ b/src/com/vaadin/terminal/gwt/client/AbstractFieldState.java
@@ -121,6 +121,7 @@ public class AbstractFieldState extends ComponentState implements TabIndexState
*
* @see com.vaadin.terminal.gwt.client.ComponentState#getTabIndex()
*/
+ @Override
public int getTabIndex() {
return tabIndex;
}
@@ -130,6 +131,7 @@ public class AbstractFieldState extends ComponentState implements TabIndexState
*
* @see com.vaadin.terminal.gwt.client.ui.TabIndexState#setTabIndex(int)
*/
+ @Override
public void setTabIndex(int tabIndex) {
this.tabIndex = tabIndex;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
index 31775d1d02..877f2a70b8 100644
--- a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
+++ b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
@@ -348,6 +348,7 @@ public class ApplicationConfiguration implements EntryPoint {
public static void startApplication(final String applicationId) {
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ @Override
public void execute() {
ApplicationConfiguration appConf = getConfigFromDOM(applicationId);
ApplicationConnection a = GWT
@@ -553,6 +554,7 @@ public class ApplicationConfiguration implements EntryPoint {
private static DeferredWidgetLoader deferredWidgetLoader;
+ @Override
public void onModuleLoad() {
// Prepare VConsole for debugging
@@ -571,6 +573,7 @@ public class ApplicationConfiguration implements EntryPoint {
*/
GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
+ @Override
public void onUncaughtException(Throwable e) {
/*
* Note in case of null console (without ?debug) we eat
diff --git a/src/com/vaadin/terminal/gwt/client/ComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ComponentConnector.java
index 95e9a4cf78..1da73edcf6 100644
--- a/src/com/vaadin/terminal/gwt/client/ComponentConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ComponentConnector.java
@@ -22,6 +22,7 @@ public interface ComponentConnector extends ServerConnector {
*
* @see com.vaadin.terminal.gwt.client.VPaintable#getState()
*/
+ @Override
public ComponentState getState();
/**
diff --git a/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java b/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java
index 2b88867cfe..5e15bae48a 100644
--- a/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java
+++ b/src/com/vaadin/terminal/gwt/client/JavaScriptConnectorHelper.java
@@ -49,6 +49,7 @@ public class JavaScriptConnectorHelper {
public void init() {
connector.addStateChangeHandler(new StateChangeHandler() {
+ @Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
JavaScriptObject wrapper = getConnectorWrapper();
JavaScriptConnectorState state = getConnectorState();
diff --git a/src/com/vaadin/terminal/gwt/client/JavaScriptExtension.java b/src/com/vaadin/terminal/gwt/client/JavaScriptExtension.java
index 2a97e4a770..6fa9904230 100644
--- a/src/com/vaadin/terminal/gwt/client/JavaScriptExtension.java
+++ b/src/com/vaadin/terminal/gwt/client/JavaScriptExtension.java
@@ -21,6 +21,7 @@ public final class JavaScriptExtension extends AbstractExtensionConnector
helper.init();
}
+ @Override
public JavaScriptConnectorHelper getJavascriptConnectorHelper() {
return helper;
}
diff --git a/src/com/vaadin/terminal/gwt/client/JavaScriptExtensionState.java b/src/com/vaadin/terminal/gwt/client/JavaScriptExtensionState.java
index e7bfbc4bb2..82fcc51f8a 100644
--- a/src/com/vaadin/terminal/gwt/client/JavaScriptExtensionState.java
+++ b/src/com/vaadin/terminal/gwt/client/JavaScriptExtensionState.java
@@ -18,6 +18,7 @@ public class JavaScriptExtensionState extends SharedState implements
private Set<String> callbackNames = new HashSet<String>();
private Map<String, Set<String>> rpcInterfaces = new HashMap<String, Set<String>>();
+ @Override
public Set<String> getCallbackNames() {
return callbackNames;
}
@@ -26,6 +27,7 @@ public class JavaScriptExtensionState extends SharedState implements
this.callbackNames = callbackNames;
}
+ @Override
public Map<String, Set<String>> getRpcInterfaces() {
return rpcInterfaces;
}
diff --git a/src/com/vaadin/terminal/gwt/client/NullConsole.java b/src/com/vaadin/terminal/gwt/client/NullConsole.java
index 2d15ffd46c..7db513ca82 100644
--- a/src/com/vaadin/terminal/gwt/client/NullConsole.java
+++ b/src/com/vaadin/terminal/gwt/client/NullConsole.java
@@ -15,39 +15,48 @@ import com.google.gwt.core.client.GWT;
*/
public class NullConsole implements Console {
+ @Override
public void dirUIDL(ValueMap u, ApplicationConfiguration cnf) {
}
+ @Override
public void error(String msg) {
GWT.log(msg);
}
+ @Override
public void log(String msg) {
GWT.log(msg);
}
+ @Override
public void printObject(Object msg) {
GWT.log(msg.toString());
}
+ @Override
public void printLayoutProblems(ValueMap meta,
ApplicationConnection applicationConnection,
Set<ComponentConnector> zeroHeightComponents,
Set<ComponentConnector> zeroWidthComponents) {
}
+ @Override
public void log(Throwable e) {
GWT.log(e.getMessage(), e);
}
+ @Override
public void error(Throwable e) {
// Borrow exception handling from VDebugConsole
VDebugConsole.handleError(e, this);
}
+ @Override
public void setQuietMode(boolean quietDebugMode) {
}
+ @Override
public void init() {
}
diff --git a/src/com/vaadin/terminal/gwt/client/ResourceLoader.java b/src/com/vaadin/terminal/gwt/client/ResourceLoader.java
index 8c481e0356..21577ce87e 100644
--- a/src/com/vaadin/terminal/gwt/client/ResourceLoader.java
+++ b/src/com/vaadin/terminal/gwt/client/ResourceLoader.java
@@ -206,10 +206,12 @@ public class ResourceLoader {
if (preloadListeners.containsKey(url)) {
// Preload going on, continue when preloaded
preloadResource(url, new ResourceLoadListener() {
+ @Override
public void onLoad(ResourceLoadEvent event) {
loadScript(url, resourceLoadListener);
}
+ @Override
public void onError(ResourceLoadEvent event) {
// Preload failed -> signal error to own listener
if (resourceLoadListener != null) {
@@ -225,10 +227,12 @@ public class ResourceLoader {
scriptTag.setSrc(url);
scriptTag.setType("text/javascript");
addOnloadHandler(scriptTag, new ResourceLoadListener() {
+ @Override
public void onLoad(ResourceLoadEvent event) {
fireLoad(event);
}
+ @Override
public void onError(ResourceLoadEvent event) {
fireError(event);
}
@@ -280,10 +284,12 @@ public class ResourceLoader {
Element element = getPreloadElement(url);
addOnloadHandler(element, new ResourceLoadListener() {
+ @Override
public void onLoad(ResourceLoadEvent event) {
fireLoad(event);
}
+ @Override
public void onError(ResourceLoadEvent event) {
fireError(event);
}
@@ -358,10 +364,12 @@ public class ResourceLoader {
if (preloadListeners.containsKey(url)) {
// Preload going on, continue when preloaded
preloadResource(url, new ResourceLoadListener() {
+ @Override
public void onLoad(ResourceLoadEvent event) {
loadStylesheet(url, resourceLoadListener);
}
+ @Override
public void onError(ResourceLoadEvent event) {
// Preload failed -> signal error to own listener
if (resourceLoadListener != null) {
@@ -384,6 +392,7 @@ public class ResourceLoader {
Scheduler.get().scheduleFixedPeriod(new RepeatingCommand() {
private final Duration duration = new Duration();
+ @Override
public boolean execute() {
int styleSheetLength = getStyleSheetLength(url);
if (getStyleSheetLength(url) > 0) {
@@ -403,6 +412,7 @@ public class ResourceLoader {
}, 10);
} else {
addOnloadHandler(linkElement, new ResourceLoadListener() {
+ @Override
public void onLoad(ResourceLoadEvent event) {
// Chrome && IE fires load for errors, must check
// stylesheet data
@@ -418,6 +428,7 @@ public class ResourceLoader {
fireLoad(event);
}
+ @Override
public void onError(ResourceLoadEvent event) {
fireError(event);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ServerConnector.java b/src/com/vaadin/terminal/gwt/client/ServerConnector.java
index 3809073076..b016e2e88c 100644
--- a/src/com/vaadin/terminal/gwt/client/ServerConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ServerConnector.java
@@ -93,6 +93,7 @@ public interface ServerConnector extends Connector {
* @return The parent of this connector, as set by
* {@link #setParent(ServerConnector)}.
*/
+ @Override
public ServerConnector getParent();
/**
diff --git a/src/com/vaadin/terminal/gwt/client/SimpleTree.java b/src/com/vaadin/terminal/gwt/client/SimpleTree.java
index 350e0d707d..506d990aac 100644
--- a/src/com/vaadin/terminal/gwt/client/SimpleTree.java
+++ b/src/com/vaadin/terminal/gwt/client/SimpleTree.java
@@ -49,6 +49,7 @@ public class SimpleTree extends ComplexPanel {
getElement().appendChild(children);
addDomHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
if (event.getNativeEvent().getEventTarget().cast() == handle) {
if (children.getStyle().getDisplay().intern() == Display.NONE
diff --git a/src/com/vaadin/terminal/gwt/client/SuperDevMode.java b/src/com/vaadin/terminal/gwt/client/SuperDevMode.java
index 02df811d51..e435b3c6ed 100644
--- a/src/com/vaadin/terminal/gwt/client/SuperDevMode.java
+++ b/src/com/vaadin/terminal/gwt/client/SuperDevMode.java
@@ -53,6 +53,7 @@ public class SuperDevMode {
+ getRecompileParameters(GWT.getModuleName()),
new AsyncCallback<RecompileResult>() {
+ @Override
public void onSuccess(RecompileResult result) {
VConsole.log("JSONP compile call successful");
@@ -72,6 +73,7 @@ public class SuperDevMode {
Location.reload();
}
+ @Override
public void onFailure(Throwable caught) {
VConsole.error("JSONP compile call failed");
// Don't log exception as they are shown as
@@ -86,6 +88,7 @@ public class SuperDevMode {
VNotification n = new VNotification();
n.addEventListener(new EventListener() {
+ @Override
public void notificationHidden(HideEvent event) {
recompileWidgetsetAndStartInDevMode(serverUrl);
}
diff --git a/src/com/vaadin/terminal/gwt/client/UIDL.java b/src/com/vaadin/terminal/gwt/client/UIDL.java
index a523016b60..e662e08b3f 100644
--- a/src/com/vaadin/terminal/gwt/client/UIDL.java
+++ b/src/com/vaadin/terminal/gwt/client/UIDL.java
@@ -283,10 +283,12 @@ public final class UIDL extends JavaScriptObject {
int index = -1;
+ @Override
public void remove() {
throw new UnsupportedOperationException();
}
+ @Override
public Object next() {
if (hasNext()) {
@@ -308,6 +310,7 @@ public final class UIDL extends JavaScriptObject {
return null;
}
+ @Override
public boolean hasNext() {
int count = getChildCount();
return count > index + 1;
diff --git a/src/com/vaadin/terminal/gwt/client/Util.java b/src/com/vaadin/terminal/gwt/client/Util.java
index 4687512b47..1bda2401f0 100644
--- a/src/com/vaadin/terminal/gwt/client/Util.java
+++ b/src/com/vaadin/terminal/gwt/client/Util.java
@@ -447,6 +447,7 @@ public class Util {
elem.getStyle().setProperty("overflow", "hidden");
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
// Dough, Safari scroll auto means actually just a moped
elem.getStyle().setProperty("overflow", originalOverflow);
@@ -1021,6 +1022,7 @@ public class Util {
}
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ @Override
public void execute() {
try {
target.dispatchEvent(createMouseDownEvent);
diff --git a/src/com/vaadin/terminal/gwt/client/VDebugConsole.java b/src/com/vaadin/terminal/gwt/client/VDebugConsole.java
index ce893741d3..a7bd943912 100644
--- a/src/com/vaadin/terminal/gwt/client/VDebugConsole.java
+++ b/src/com/vaadin/terminal/gwt/client/VDebugConsole.java
@@ -84,6 +84,7 @@ public class VDebugConsole extends VOverlay implements Console {
this.label = label;
}
+ @Override
public void onPreviewNativeEvent(NativePreviewEvent event) {
if (event.getTypeInt() == Event.ONKEYDOWN
&& event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ESCAPE) {
@@ -199,6 +200,7 @@ public class VDebugConsole extends VOverlay implements Console {
private EventPreview dragpreview = new EventPreview() {
+ @Override
public boolean onEventPreview(Event event) {
onBrowserEvent(event);
return false;
@@ -346,6 +348,7 @@ public class VDebugConsole extends VOverlay implements Console {
*
* @see com.vaadin.terminal.gwt.client.Console#log(java.lang.String)
*/
+ @Override
public void log(String msg) {
if (msg == null) {
msg = "null";
@@ -362,6 +365,7 @@ public class VDebugConsole extends VOverlay implements Console {
private List<String> msgQueue = new LinkedList<String>();
private ScheduledCommand doSend = new ScheduledCommand() {
+ @Override
public void execute() {
if (!msgQueue.isEmpty()) {
RequestBuilder requestBuilder = new RequestBuilder(
@@ -375,12 +379,14 @@ public class VDebugConsole extends VOverlay implements Console {
requestBuilder.sendRequest(requestData,
new RequestCallback() {
+ @Override
public void onResponseReceived(Request request,
Response response) {
// TODO Auto-generated method stub
}
+ @Override
public void onError(Request request,
Throwable exception) {
// TODO Auto-generated method stub
@@ -438,6 +444,7 @@ public class VDebugConsole extends VOverlay implements Console {
*
* @see com.vaadin.terminal.gwt.client.Console#error(java.lang.String)
*/
+ @Override
public void error(String msg) {
if (msg == null) {
msg = "null";
@@ -466,6 +473,7 @@ public class VDebugConsole extends VOverlay implements Console {
* @see com.vaadin.terminal.gwt.client.Console#printObject(java.lang.
* Object)
*/
+ @Override
public void printObject(Object msg) {
String str;
if (msg == null) {
@@ -483,6 +491,7 @@ public class VDebugConsole extends VOverlay implements Console {
* @see com.vaadin.terminal.gwt.client.Console#dirUIDL(com.vaadin
* .terminal.gwt.client.UIDL)
*/
+ @Override
public void dirUIDL(ValueMap u, ApplicationConfiguration conf) {
if (panel.isAttached()) {
VUIDLBrowser vuidlBrowser = new VUIDLBrowser(u, conf);
@@ -522,6 +531,7 @@ public class VDebugConsole extends VOverlay implements Console {
}
}-*/;
+ @Override
public void printLayoutProblems(ValueMap meta, ApplicationConnection ac,
Set<ComponentConnector> zeroHeightComponents,
Set<ComponentConnector> zeroWidthComponents) {
@@ -576,6 +586,7 @@ public class VDebugConsole extends VOverlay implements Console {
final CheckBox emphasisInUi = new CheckBox(
"Emphasize components parent in UI (the actual component is not visible)");
emphasisInUi.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
Element element2 = layout.getElement();
Widget.setStyleName(element2, "invalidlayout",
@@ -609,6 +620,7 @@ public class VDebugConsole extends VOverlay implements Console {
}
final CheckBox emphasisInUi = new CheckBox("Emphasize component in UI");
emphasisInUi.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
if (paintable != null) {
Element element2 = paintable.getWidget().getElement();
@@ -634,6 +646,7 @@ public class VDebugConsole extends VOverlay implements Console {
root.add(errorNode);
}
+ @Override
public void log(Throwable e) {
if (e instanceof UmbrellaException) {
UmbrellaException ue = (UmbrellaException) e;
@@ -646,6 +659,7 @@ public class VDebugConsole extends VOverlay implements Console {
GWT.log(e.getMessage(), e);
}
+ @Override
public void error(Throwable e) {
handleError(e, this);
}
@@ -677,6 +691,7 @@ public class VDebugConsole extends VOverlay implements Console {
}
}
+ @Override
public void init() {
panel = new FlowPanel();
if (!quietMode) {
@@ -732,6 +747,7 @@ public class VDebugConsole extends VOverlay implements Console {
panel.add(new HTML("<i>" + help + "</i>"));
clear.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
int width = panel.getOffsetWidth();
int height = panel.getOffsetHeight();
@@ -744,6 +760,7 @@ public class VDebugConsole extends VOverlay implements Console {
});
restart.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
String queryString = Window.Location.getQueryString();
@@ -771,6 +788,7 @@ public class VDebugConsole extends VOverlay implements Console {
});
forceLayout.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
for (ApplicationConnection applicationConnection : ApplicationConfiguration
.getRunningApplications()) {
@@ -780,6 +798,7 @@ public class VDebugConsole extends VOverlay implements Console {
});
analyzeLayout.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
List<ApplicationConnection> runningApplications = ApplicationConfiguration
.getRunningApplications();
@@ -795,6 +814,7 @@ public class VDebugConsole extends VOverlay implements Console {
+ " all non committed variables form client side.");
savePosition.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
String pos = getAbsoluteLeft() + "," + getAbsoluteTop()
+ "," + getOffsetWidth() + "," + getOffsetHeight()
@@ -805,6 +825,7 @@ public class VDebugConsole extends VOverlay implements Console {
highlight.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
final Label label = new Label("--");
log("<i>Use mouse to select a component or click ESC to exit highlight mode.</i>");
@@ -819,6 +840,7 @@ public class VDebugConsole extends VOverlay implements Console {
}
connectorStats.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
for (ApplicationConnection a : ApplicationConfiguration
.getRunningApplications()) {
@@ -851,6 +873,7 @@ public class VDebugConsole extends VOverlay implements Console {
}
superDevMode.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
+ @Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
SuperDevMode.redirect(event.getValue());
}
@@ -865,6 +888,7 @@ public class VDebugConsole extends VOverlay implements Console {
devMode.setValue(true);
}
devMode.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
if (devMode.getValue()) {
addHMParameter();
@@ -951,6 +975,7 @@ public class VDebugConsole extends VOverlay implements Console {
}
};
simpleTree.addDomHandler(new MouseOutHandler() {
+ @Override
public void onMouseOut(MouseOutEvent event) {
VUIDLBrowser.deHiglight();
}
@@ -972,6 +997,7 @@ public class VDebugConsole extends VOverlay implements Console {
return Util.getConnectorString(connector);
}
+ @Override
public void setQuietMode(boolean quietDebugMode) {
quietMode = quietDebugMode;
}
diff --git a/src/com/vaadin/terminal/gwt/client/VSchedulerImpl.java b/src/com/vaadin/terminal/gwt/client/VSchedulerImpl.java
index 65d5d6a9a2..6f5e5854b2 100644
--- a/src/com/vaadin/terminal/gwt/client/VSchedulerImpl.java
+++ b/src/com/vaadin/terminal/gwt/client/VSchedulerImpl.java
@@ -19,6 +19,7 @@ public class VSchedulerImpl extends SchedulerImpl {
super.scheduleDeferred(cmd);
super.scheduleDeferred(new ScheduledCommand() {
+ @Override
public void execute() {
deferredCommandTrackers--;
}
diff --git a/src/com/vaadin/terminal/gwt/client/VTooltip.java b/src/com/vaadin/terminal/gwt/client/VTooltip.java
index 7fd3a3238b..38d1235c69 100644
--- a/src/com/vaadin/terminal/gwt/client/VTooltip.java
+++ b/src/com/vaadin/terminal/gwt/client/VTooltip.java
@@ -82,6 +82,7 @@ public class VTooltip extends VOverlay {
// first to 0,0 position so that the calculation goes correctly.
setPopupPosition(0, 0);
setPopupPositionAndShow(new PositionCallback() {
+ @Override
public void setPosition(int offsetWidth, int offsetHeight) {
if (offsetWidth > MAX_WIDTH) {
@@ -294,6 +295,7 @@ public class VTooltip extends VOverlay {
currentTooltipInfo = null;
}
+ @Override
public void onMouseMove(MouseMoveEvent mme) {
Event event = Event.as(mme.getNativeEvent());
com.google.gwt.dom.client.Element element = Element.as(event
@@ -322,10 +324,12 @@ public class VTooltip extends VOverlay {
}
}
+ @Override
public void onClick(ClickEvent event) {
handleHideEvent();
}
+ @Override
public void onKeyDown(KeyDownEvent event) {
handleHideEvent();
}
diff --git a/src/com/vaadin/terminal/gwt/client/WidgetLoader.java b/src/com/vaadin/terminal/gwt/client/WidgetLoader.java
index 491e569411..749a8343c8 100644
--- a/src/com/vaadin/terminal/gwt/client/WidgetLoader.java
+++ b/src/com/vaadin/terminal/gwt/client/WidgetLoader.java
@@ -8,10 +8,12 @@ import com.google.gwt.core.client.RunAsyncCallback;
/** A helper class used by WidgetMap implementation. Used by the generated code. */
abstract class WidgetLoader implements RunAsyncCallback {
+ @Override
public void onFailure(Throwable reason) {
ApplicationConfiguration.endDependencyLoading();
}
+ @Override
public void onSuccess() {
addInstantiator();
ApplicationConfiguration.endDependencyLoading();
diff --git a/src/com/vaadin/terminal/gwt/client/communication/URLReference_Serializer.java b/src/com/vaadin/terminal/gwt/client/communication/URLReference_Serializer.java
index bab0f385ed..8a7d5f2b69 100644
--- a/src/com/vaadin/terminal/gwt/client/communication/URLReference_Serializer.java
+++ b/src/com/vaadin/terminal/gwt/client/communication/URLReference_Serializer.java
@@ -13,6 +13,7 @@ public class URLReference_Serializer implements JSONSerializer<URLReference> {
// setURL() -> uRL as first char becomes lower case...
private static final String URL_FIELD = "uRL";
+ @Override
public URLReference deserialize(Type type, JSONValue jsonValue,
ApplicationConnection connection) {
URLReference reference = GWT.create(URLReference.class);
@@ -27,6 +28,7 @@ public class URLReference_Serializer implements JSONSerializer<URLReference> {
return reference;
}
+ @Override
public JSONValue serialize(URLReference value,
ApplicationConnection connection) {
JSONObject json = new JSONObject();
diff --git a/src/com/vaadin/terminal/gwt/client/extensions/javascriptmanager/JavaScriptManagerConnector.java b/src/com/vaadin/terminal/gwt/client/extensions/javascriptmanager/JavaScriptManagerConnector.java
index 8656783a86..49eb198e13 100644
--- a/src/com/vaadin/terminal/gwt/client/extensions/javascriptmanager/JavaScriptManagerConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/extensions/javascriptmanager/JavaScriptManagerConnector.java
@@ -23,6 +23,7 @@ public class JavaScriptManagerConnector extends AbstractExtensionConnector {
@Override
protected void init() {
registerRpc(ExecuteJavaScriptRpc.class, new ExecuteJavaScriptRpc() {
+ @Override
public void executeJavaScript(String Script) {
eval(Script);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java
index e0ca798682..9de465e4a5 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractClickEventHandler.java
@@ -53,6 +53,7 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler,
*/
private final NativePreviewHandler mouseUpPreviewHandler = new NativePreviewHandler() {
+ @Override
public void onPreviewNativeEvent(NativePreviewEvent event) {
if (event.getTypeInt() == Event.ONMOUSEUP) {
mouseUpEventPreviewRegistration.removeHandler();
@@ -144,6 +145,7 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler,
* popping up if there is a listener for right clicks.
*/
+ @Override
public void onContextMenu(ContextMenuEvent event) {
if (hasEventListener() && shouldFireEvent(event)) {
// Prevent showing the browser's context menu when there is a right
@@ -152,6 +154,7 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler,
}
}
+ @Override
public void onMouseDown(MouseDownEvent event) {
/*
* When getting a mousedown event, we must detect where the
@@ -163,6 +166,7 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler,
.addNativePreviewHandler(mouseUpPreviewHandler);
}
+ @Override
public void onMouseUp(MouseUpEvent event) {
/*
* Only fire a click if the mouseup hits the same element as the
@@ -208,6 +212,7 @@ public abstract class AbstractClickEventHandler implements MouseDownHandler,
* double click will result in two click events and one double click event.
*/
+ @Override
public void onDoubleClick(DoubleClickEvent event) {
if (hasEventListener() && shouldFireEvent(event)) {
fireClick(event.getNativeEvent());
diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java
index 6105c545f6..e95d4ca280 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java
@@ -73,6 +73,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector
*
* @return The widget associated with this paintable
*/
+ @Override
public Widget getWidget() {
if (widget == null) {
widget = createWidget();
@@ -138,6 +139,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector
updateComponentSize();
}
+ @Override
public void setWidgetEnabled(boolean widgetEnabled) {
// add or remove v-disabled style name from the widget
setWidgetStyleName(ApplicationConnection.DISABLED_CLASSNAME,
@@ -196,18 +198,22 @@ public abstract class AbstractComponentConnector extends AbstractConnector
widget.setWidth(newWidth);
}
+ @Override
public boolean isRelativeHeight() {
return getState().getHeight().endsWith("%");
}
+ @Override
public boolean isRelativeWidth() {
return getState().getWidth().endsWith("%");
}
+ @Override
public boolean isUndefinedHeight() {
return getState().getHeight().length() == 0;
}
+ @Override
public boolean isUndefinedWidth() {
return getState().getWidth().length() == 0;
}
@@ -219,6 +225,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector
* com.vaadin.terminal.gwt.client.ComponentConnector#delegateCaptionHandling
* ()
*/
+ @Override
public boolean delegateCaptionHandling() {
return true;
}
@@ -337,11 +344,13 @@ public abstract class AbstractComponentConnector extends AbstractConnector
*
* @see com.vaadin.terminal.gwt.client.ComponentConnector#isReadOnly()
*/
+ @Override
@Deprecated
public boolean isReadOnly() {
return getState().isReadOnly();
}
+ @Override
public LayoutManager getLayoutManager() {
return LayoutManager.get(getConnection());
}
@@ -355,6 +364,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector
* @return true if an event listener has been registered with the given
* event identifier on the server side, false otherwise
*/
+ @Override
public boolean hasEventListener(String eventIdentifier) {
Set<String> reg = getState().getRegisteredEventListeners();
return (reg != null && reg.contains(eventIdentifier));
@@ -388,6 +398,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector
* com.vaadin.terminal.gwt.client.ComponentConnector#getTooltipInfo(com.
* google.gwt.dom.client.Element)
*/
+ @Override
public TooltipInfo getTooltipInfo(Element element) {
return new TooltipInfo(getState().getDescription(), getState()
.getErrorMessage());
diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentContainerConnector.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentContainerConnector.java
index c6bfba5023..6b294e65b8 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentContainerConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentContainerConnector.java
@@ -35,6 +35,7 @@ public abstract class AbstractComponentContainerConnector extends
* @see
* com.vaadin.terminal.gwt.client.ComponentContainerConnector#getChildren()
*/
+ @Override
public List<ComponentConnector> getChildComponents() {
if (childComponents == null) {
return Collections.emptyList();
@@ -50,6 +51,7 @@ public abstract class AbstractComponentContainerConnector extends
* com.vaadin.terminal.gwt.client.ComponentContainerConnector#setChildren
* (java.util.Collection)
*/
+ @Override
public void setChildComponents(List<ComponentConnector> childComponents) {
this.childComponents = childComponents;
}
@@ -61,6 +63,7 @@ public abstract class AbstractComponentContainerConnector extends
* connectorHierarchyChanged
* (com.vaadin.terminal.gwt.client.ConnectorHierarchyChangedEvent)
*/
+ @Override
public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event) {
if (debugLogging) {
VConsole.log("Hierarchy changed for "
@@ -79,6 +82,7 @@ public abstract class AbstractComponentContainerConnector extends
}
}
+ @Override
public HandlerRegistration addConnectorHierarchyChangeHandler(
ConnectorHierarchyChangeHandler handler) {
return ensureHandlerManager().addHandler(
diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractConnector.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractConnector.java
index bee9c75165..f4e78a39f4 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/AbstractConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractConnector.java
@@ -57,6 +57,7 @@ public abstract class AbstractConnector implements ServerConnector,
*
* @see com.vaadin.terminal.gwt.client.VPaintable#getConnection()
*/
+ @Override
public final ApplicationConnection getConnection() {
return connection;
}
@@ -66,6 +67,7 @@ public abstract class AbstractConnector implements ServerConnector,
*
* @see com.vaadin.terminal.gwt.client.Connector#getId()
*/
+ @Override
public String getConnectorId() {
return id;
}
@@ -78,6 +80,7 @@ public abstract class AbstractConnector implements ServerConnector,
* <p>
* Connector classes should override {@link #init()} instead of this method.
*/
+ @Override
public final void doInit(String connectorId,
ApplicationConnection connection) {
this.connection = connection;
@@ -140,6 +143,7 @@ public abstract class AbstractConnector implements ServerConnector,
}
}
+ @Override
public <T extends ClientRpc> Collection<T> getRpcImplementations(
String rpcInterfaceId) {
if (null == rpcImplementations) {
@@ -148,6 +152,7 @@ public abstract class AbstractConnector implements ServerConnector,
return (Collection<T>) rpcImplementations.get(rpcInterfaceId);
}
+ @Override
public void fireEvent(GwtEvent<?> event) {
if (handlerManager != null) {
handlerManager.fireEvent(event);
@@ -162,11 +167,13 @@ public abstract class AbstractConnector implements ServerConnector,
return handlerManager;
}
+ @Override
public HandlerRegistration addStateChangeHandler(StateChangeHandler handler) {
return ensureHandlerManager()
.addHandler(StateChangeEvent.TYPE, handler);
}
+ @Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
if (debugLogging) {
VConsole.log("State change event for "
@@ -182,6 +189,7 @@ public abstract class AbstractConnector implements ServerConnector,
*
* @see com.vaadin.terminal.gwt.client.ServerConnector#onUnregister()
*/
+ @Override
public void onUnregister() {
if (debugLogging) {
VConsole.log("Unregistered connector "
@@ -197,6 +205,7 @@ public abstract class AbstractConnector implements ServerConnector,
*
* @return the current shared state (never null)
*/
+ @Override
public SharedState getState() {
if (state == null) {
state = createState();
@@ -217,14 +226,17 @@ public abstract class AbstractConnector implements ServerConnector,
return ConnectorStateFactory.createState(getClass());
}
+ @Override
public ServerConnector getParent() {
return parent;
}
+ @Override
public void setParent(ServerConnector parent) {
this.parent = parent;
}
+ @Override
public List<ServerConnector> getChildren() {
if (children == null) {
return Collections.emptyList();
@@ -232,10 +244,12 @@ public abstract class AbstractConnector implements ServerConnector,
return children;
}
+ @Override
public void setChildren(List<ServerConnector> children) {
this.children = children;
}
+ @Override
public boolean isEnabled() {
if (!getState().isEnabled()) {
return false;
@@ -248,6 +262,7 @@ public abstract class AbstractConnector implements ServerConnector,
}
}
+ @Override
public void updateEnabledState(boolean enabledState) {
if (lastEnabledState == enabledState) {
return;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/Action.java b/src/com/vaadin/terminal/gwt/client/ui/Action.java
index ca13cfc7f3..1a92e30f3f 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/Action.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/Action.java
@@ -25,6 +25,7 @@ public abstract class Action implements Command {
/**
* Executed when action fired
*/
+ @Override
public abstract void execute();
public String getHTML() {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/ConnectorWidgetFactory.java b/src/com/vaadin/terminal/gwt/client/ui/ConnectorWidgetFactory.java
index 063d9f03a1..03d2069a94 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/ConnectorWidgetFactory.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/ConnectorWidgetFactory.java
@@ -15,6 +15,7 @@ public abstract class ConnectorWidgetFactory extends
// TODO Move to generator
{
addCreator(TextFieldConnector.class, new Creator<Widget>() {
+ @Override
public Widget create() {
return GWT.create(VTextField.class);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/FocusableFlexTable.java b/src/com/vaadin/terminal/gwt/client/ui/FocusableFlexTable.java
index fc97bafc46..2fac234587 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/FocusableFlexTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/FocusableFlexTable.java
@@ -42,6 +42,7 @@ public class FocusableFlexTable extends FlexTable implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasFocusHandlers#addFocusHandler(com.
* google.gwt.event.dom.client.FocusHandler)
*/
+ @Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
return addDomHandler(handler, FocusEvent.getType());
}
@@ -53,6 +54,7 @@ public class FocusableFlexTable extends FlexTable implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasBlurHandlers#addBlurHandler(com.google
* .gwt.event.dom.client.BlurHandler)
*/
+ @Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return addDomHandler(handler, BlurEvent.getType());
}
@@ -64,6 +66,7 @@ public class FocusableFlexTable extends FlexTable implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasKeyDownHandlers#addKeyDownHandler(
* com.google.gwt.event.dom.client.KeyDownHandler)
*/
+ @Override
public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) {
return addDomHandler(handler, KeyDownEvent.getType());
}
@@ -75,6 +78,7 @@ public class FocusableFlexTable extends FlexTable implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasKeyPressHandlers#addKeyPressHandler
* (com.google.gwt.event.dom.client.KeyPressHandler)
*/
+ @Override
public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) {
return addDomHandler(handler, KeyPressEvent.getType());
}
@@ -99,6 +103,7 @@ public class FocusableFlexTable extends FlexTable implements HasFocusHandlers,
*
* @see com.vaadin.terminal.gwt.client.Focusable#focus()
*/
+ @Override
public void focus() {
setFocus(true);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/FocusableFlowPanel.java b/src/com/vaadin/terminal/gwt/client/ui/FocusableFlowPanel.java
index 831add049b..258fe441af 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/FocusableFlowPanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/FocusableFlowPanel.java
@@ -39,6 +39,7 @@ public class FocusableFlowPanel extends FlowPanel implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasFocusHandlers#addFocusHandler(com.
* google.gwt.event.dom.client.FocusHandler)
*/
+ @Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
return addDomHandler(handler, FocusEvent.getType());
}
@@ -50,6 +51,7 @@ public class FocusableFlowPanel extends FlowPanel implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasBlurHandlers#addBlurHandler(com.google
* .gwt.event.dom.client.BlurHandler)
*/
+ @Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return addDomHandler(handler, BlurEvent.getType());
}
@@ -61,6 +63,7 @@ public class FocusableFlowPanel extends FlowPanel implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasKeyDownHandlers#addKeyDownHandler(
* com.google.gwt.event.dom.client.KeyDownHandler)
*/
+ @Override
public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) {
return addDomHandler(handler, KeyDownEvent.getType());
}
@@ -72,6 +75,7 @@ public class FocusableFlowPanel extends FlowPanel implements HasFocusHandlers,
* com.google.gwt.event.dom.client.HasKeyPressHandlers#addKeyPressHandler
* (com.google.gwt.event.dom.client.KeyPressHandler)
*/
+ @Override
public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) {
return addDomHandler(handler, KeyPressEvent.getType());
}
@@ -94,6 +98,7 @@ public class FocusableFlowPanel extends FlowPanel implements HasFocusHandlers,
/**
* Focus the panel
*/
+ @Override
public void focus() {
setFocus(true);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/FocusableScrollPanel.java b/src/com/vaadin/terminal/gwt/client/ui/FocusableScrollPanel.java
index ef1ea8521b..0ba42eb861 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/FocusableScrollPanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/FocusableScrollPanel.java
@@ -110,6 +110,7 @@ public class FocusableScrollPanel extends SimpleFocusablePanel implements
}
}
+ @Override
public HandlerRegistration addScrollHandler(ScrollHandler handler) {
return addDomHandler(handler, ScrollEvent.getType());
}
@@ -168,8 +169,10 @@ public class FocusableScrollPanel extends SimpleFocusablePanel implements
}
}
+ @Override
public void onScroll(ScrollEvent event) {
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ @Override
public void execute() {
focusElement.getStyle().setTop(getScrollPosition(), Unit.PX);
focusElement.getStyle().setLeft(getHorizontalScrollPosition(),
diff --git a/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentConnector.java
index bb062a6677..b317618878 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentConnector.java
@@ -31,6 +31,7 @@ public final class JavaScriptComponentConnector extends
helper.init();
}
+ @Override
public JavaScriptConnectorHelper getJavascriptConnectorHelper() {
return helper;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentState.java b/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentState.java
index 6728f85ec9..6675ac69a4 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentState.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/JavaScriptComponentState.java
@@ -18,6 +18,7 @@ public class JavaScriptComponentState extends ComponentState implements
private Set<String> callbackNames = new HashSet<String>();
private Map<String, Set<String>> rpcInterfaces = new HashMap<String, Set<String>>();
+ @Override
public Set<String> getCallbackNames() {
return callbackNames;
}
@@ -26,6 +27,7 @@ public class JavaScriptComponentState extends ComponentState implements
this.callbackNames = callbackNames;
}
+ @Override
public Map<String, Set<String>> getRpcInterfaces() {
return rpcInterfaces;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/MediaBaseConnector.java b/src/com/vaadin/terminal/gwt/client/ui/MediaBaseConnector.java
index 42027f911b..81d963f981 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/MediaBaseConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/MediaBaseConnector.java
@@ -32,10 +32,12 @@ public abstract class MediaBaseConnector extends AbstractComponentConnector {
super.init();
registerRpc(MediaControl.class, new MediaControl() {
+ @Override
public void play() {
getWidget().play();
}
+ @Override
public void pause() {
getWidget().pause();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/ShortcutActionHandler.java b/src/com/vaadin/terminal/gwt/client/ui/ShortcutActionHandler.java
index 37e9ab4a69..40454345bc 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/ShortcutActionHandler.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/ShortcutActionHandler.java
@@ -149,6 +149,7 @@ public class ShortcutActionHandler {
} else {
shakeTarget(et);
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
shakeTarget(et);
}
@@ -156,6 +157,7 @@ public class ShortcutActionHandler {
}
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
if (finalTarget != null) {
client.updateVariable(paintableId, "actiontarget",
@@ -187,6 +189,7 @@ public class ShortcutActionHandler {
// deferred. Will cause a small flickering, so not doing it for all
// browsers.
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
focus(e);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java b/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java
index 9baa1db007..ec62b82ce1 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/SimpleFocusablePanel.java
@@ -36,18 +36,22 @@ public class SimpleFocusablePanel extends SimplePanel implements
setTabIndex(0);
}
+ @Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
return addDomHandler(handler, FocusEvent.getType());
}
+ @Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return addDomHandler(handler, BlurEvent.getType());
}
+ @Override
public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) {
return addDomHandler(handler, KeyDownEvent.getType());
}
+ @Override
public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) {
return addDomHandler(handler, KeyPressEvent.getType());
}
@@ -64,6 +68,7 @@ public class SimpleFocusablePanel extends SimplePanel implements
}
}
+ @Override
public void focus() {
setFocus(true);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/TouchScrollDelegate.java b/src/com/vaadin/terminal/gwt/client/ui/TouchScrollDelegate.java
index 7302f9f2ac..16c32acecc 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/TouchScrollDelegate.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/TouchScrollDelegate.java
@@ -121,6 +121,7 @@ public class TouchScrollDelegate implements NativePreviewHandler {
setElements(scrollables);
}
+ @Override
public void onTouchStart(TouchStartEvent event) {
assert delegate != null;
delegate.onTouchStart(event);
@@ -593,6 +594,7 @@ public class TouchScrollDelegate implements NativePreviewHandler {
- scrolledElement.getClientHeight();
}
+ @Override
public void onPreviewNativeEvent(NativePreviewEvent event) {
int typeInt = event.getTypeInt();
if (transitionOn) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/TreeImages.java b/src/com/vaadin/terminal/gwt/client/ui/TreeImages.java
index 37f8889463..221a409511 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/TreeImages.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/TreeImages.java
@@ -15,6 +15,7 @@ public interface TreeImages extends com.google.gwt.user.client.ui.TreeImages {
* @gwt.resource com/vaadin/terminal/gwt/public/default/tree/img/expanded
* .png
*/
+ @Override
AbstractImagePrototype treeOpen();
/**
@@ -24,6 +25,7 @@ public interface TreeImages extends com.google.gwt.user.client.ui.TreeImages {
* @gwt.resource com/vaadin/terminal/gwt/public/default/tree/img/collapsed
* .png
*/
+ @Override
AbstractImagePrototype treeClosed();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VContextMenu.java b/src/com/vaadin/terminal/gwt/client/ui/VContextMenu.java
index 692e13bd94..607abe893a 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VContextMenu.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VContextMenu.java
@@ -46,6 +46,7 @@ public class VContextMenu extends VOverlay implements SubPartAware {
private VLazyExecutor delayedImageLoadExecutioner = new VLazyExecutor(100,
new ScheduledCommand() {
+ @Override
public void execute() {
imagesLoaded();
}
@@ -103,6 +104,7 @@ public class VContextMenu extends VOverlay implements SubPartAware {
Util.sinkOnloadForImages(menu.getElement());
setPopupPositionAndShow(new PositionCallback() {
+ @Override
public void setPosition(int offsetWidth, int offsetHeight) {
// mac FF gets bad width due GWT popups overflow hacks,
// re-determine width
@@ -129,6 +131,7 @@ public class VContextMenu extends VOverlay implements SubPartAware {
* the positioning has been done.
*/
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
// Focus the menu.
menu.setFocus(true);
@@ -186,18 +189,22 @@ public class VContextMenu extends VOverlay implements SubPartAware {
return super.getItems().get(index);
}
+ @Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
return addDomHandler(handler, FocusEvent.getType());
}
+ @Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return addDomHandler(handler, BlurEvent.getType());
}
+ @Override
public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) {
return addDomHandler(handler, KeyDownEvent.getType());
}
+ @Override
public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) {
return addDomHandler(handler, KeyPressEvent.getType());
}
@@ -215,6 +222,7 @@ public class VContextMenu extends VOverlay implements SubPartAware {
setFocus(true);
}
+ @Override
public void onLoad(LoadEvent event) {
// Handle icon onload events to ensure shadow is resized correctly
delayedImageLoadExecutioner.trigger();
@@ -222,6 +230,7 @@ public class VContextMenu extends VOverlay implements SubPartAware {
}
+ @Override
public Element getSubPartElement(String subPart) {
int index = Integer.parseInt(subPart.substring(6));
// ApplicationConnection.getConsole().log(
@@ -232,6 +241,7 @@ public class VContextMenu extends VOverlay implements SubPartAware {
return item.getElement().getFirstChildElement().cast();
}
+ @Override
public String getSubPartName(Element subElement) {
if (getElement().isOrHasChild(subElement)) {
com.google.gwt.dom.client.Element e = subElement;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java
index 77639c0c3f..a6ef85dcf1 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java
@@ -372,6 +372,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
}
}
+ @Override
public void onClose(CloseEvent<PopupPanel> event) {
removeShadowIfPresent();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/Vaadin6Connector.java b/src/com/vaadin/terminal/gwt/client/ui/Vaadin6Connector.java
index 7fccdafd2a..f2f0125c86 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/Vaadin6Connector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/Vaadin6Connector.java
@@ -10,6 +10,7 @@ import com.vaadin.terminal.gwt.client.UIDL;
public abstract class Vaadin6Connector extends AbstractComponentConnector
implements Paintable {
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
((Paintable) getWidget()).updateFromUIDL(uidl, client);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java
index 91436f5353..5675f9459e 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/absolutelayout/AbsoluteLayoutConnector.java
@@ -68,6 +68,7 @@ public class AbsoluteLayoutConnector extends
element);
}
+ @Override
public void updateCaption(ComponentConnector component) {
VAbsoluteLayout absoluteLayoutWidget = getWidget();
AbsoluteWrapper componentWrapper = getWrapper(component);
@@ -147,6 +148,7 @@ public class AbsoluteLayoutConnector extends
}
}
+ @Override
public void layoutVertically() {
VAbsoluteLayout layout = getWidget();
for (ComponentConnector paintable : getChildComponents()) {
@@ -179,6 +181,7 @@ public class AbsoluteLayoutConnector extends
}
}
+ @Override
public void layoutHorizontally() {
VAbsoluteLayout layout = getWidget();
for (ComponentConnector paintable : getChildComponents()) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java b/src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java
index f022e97973..fd8bb9deed 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/accordion/AccordionConnector.java
@@ -57,10 +57,12 @@ public class AccordionConnector extends TabsheetBaseConnector implements
return (VAccordion) super.getWidget();
}
+ @Override
public void updateCaption(ComponentConnector component) {
/* Accordion does not render its children's captions */
}
+ @Override
public void layout() {
VAccordion accordion = getWidget();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java b/src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java
index b83d5afb00..d9320787e8 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/accordion/VAccordion.java
@@ -434,6 +434,7 @@ public class VAccordion extends VTabsheetBase {
}
}
+ @Override
public void onClick(ClickEvent event) {
onSelectTab(this);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java
index d79aa96ac6..ae25a11028 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonConnector.java
@@ -103,18 +103,21 @@ public class ButtonConnector extends AbstractComponentConnector implements
return (ButtonState) super.getState();
}
+ @Override
public void onFocus(FocusEvent event) {
// EventHelper.updateFocusHandler ensures that this is called only when
// there is a listener on server side
focusBlurProxy.focus();
}
+ @Override
public void onBlur(BlurEvent event) {
// EventHelper.updateFocusHandler ensures that this is called only when
// there is a listener on server side
focusBlurProxy.blur();
}
+ @Override
public void onClick(ClickEvent event) {
if (getState().isDisableOnClick()) {
getWidget().setEnabled(false);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java
index 2daceea0e8..9e44f62426 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/button/ButtonState.java
@@ -102,6 +102,7 @@ public class ButtonState extends ComponentState implements TabIndexState {
*
* @see com.vaadin.terminal.gwt.client.ui.TabIndexState#getTabIndex()
*/
+ @Override
public int getTabIndex() {
return tabIndex;
}
@@ -111,6 +112,7 @@ public class ButtonState extends ComponentState implements TabIndexState {
*
* @see com.vaadin.terminal.gwt.client.ui.TabIndexState#setTabIndex(int)
*/
+ @Override
public void setTabIndex(int tabIndex) {
this.tabIndex = tabIndex;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/button/VButton.java b/src/com/vaadin/terminal/gwt/client/ui/button/VButton.java
index bb3d8e2985..3232338f62 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/button/VButton.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/button/VButton.java
@@ -281,6 +281,7 @@ public class VButton extends FocusWidget implements ClickHandler {
* com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event
* .dom.client.ClickEvent)
*/
+ @Override
public void onClick(ClickEvent event) {
if (BrowserInfo.get().isSafari()) {
VButton.this.setFocus(true);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java
index bc405b793b..e8ff3f697c 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/checkbox/CheckBoxConnector.java
@@ -114,18 +114,21 @@ public class CheckBoxConnector extends AbstractFieldConnector implements
return (VCheckBox) super.getWidget();
}
+ @Override
public void onFocus(FocusEvent event) {
// EventHelper.updateFocusHandler ensures that this is called only when
// there is a listener on server side
focusBlurRpc.focus();
}
+ @Override
public void onBlur(BlurEvent event) {
// EventHelper.updateFocusHandler ensures that this is called only when
// there is a listener on server side
focusBlurRpc.blur();
}
+ @Override
public void onClick(ClickEvent event) {
if (!isEnabled()) {
return;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java b/src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java
index ff153d30c9..9c0a5431f0 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/combobox/ComboBoxConnector.java
@@ -27,6 +27,7 @@ public class ComboBoxConnector extends AbstractFieldConnector implements
* com.vaadin.terminal.gwt.client.Paintable#updateFromUIDL(com.vaadin.terminal
* .gwt.client.UIDL, com.vaadin.terminal.gwt.client.ApplicationConnection)
*/
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
// Save details
getWidget().client = client;
@@ -230,6 +231,7 @@ public class ComboBoxConnector extends AbstractFieldConnector implements
return (VFilterSelect) super.getWidget();
}
+ @Override
public void layout() {
VFilterSelect widget = getWidget();
if (widget.initDone) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java
index 9831001024..4dc7484459 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/combobox/VFilterSelect.java
@@ -101,6 +101,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* specified) and the caption of the item
*/
+ @Override
public String getDisplayString() {
final StringBuffer sb = new StringBuffer();
if (iconUri != null) {
@@ -124,6 +125,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* Get a string that represents this item. This is used in the text box.
*/
+ @Override
public String getReplacementString() {
return caption;
}
@@ -150,6 +152,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* Executes a selection of this item.
*/
+ @Override
public void execute() {
onSuggestionSelected(this);
}
@@ -454,6 +457,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* (int, int)
*/
+ @Override
public void setPosition(int offsetWidth, int offsetHeight) {
int top = -1;
@@ -591,6 +595,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
private VLazyExecutor delayedImageLoadExecutioner = new VLazyExecutor(
100, new ScheduledCommand() {
+ @Override
public void execute() {
if (suggestionPopup.isVisible()
&& suggestionPopup.isAttached()) {
@@ -748,6 +753,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
private static final String SUBPART_PREFIX = "item";
+ @Override
public Element getSubPartElement(String subPart) {
int index = Integer.parseInt(subPart.substring(SUBPART_PREFIX
.length()));
@@ -757,6 +763,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
return item.getElement();
}
+ @Override
public String getSubPartName(Element subElement) {
if (!getElement().isOrHasChild(subElement)) {
return null;
@@ -779,6 +786,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
return null;
}
+ @Override
public void onLoad(LoadEvent event) {
// Handle icon onload events to ensure shadow is resized
// correctly
@@ -942,6 +950,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
selectedItemIcon.setStyleName("v-icon");
selectedItemIcon.addLoadHandler(new LoadHandler() {
+ @Override
public void onLoad(LoadEvent event) {
if (BrowserInfo.get().isIE8()) {
// IE8 needs some help to discover it should reposition the
@@ -1194,6 +1203,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* .event.dom.client.KeyDownEvent)
*/
+ @Override
public void onKeyDown(KeyDownEvent event) {
if (enabled && !readonly) {
int keyCode = event.getNativeKeyCode();
@@ -1356,6 +1366,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* The KeyUpEvent of the key depressed
*/
+ @Override
public void onKeyUp(KeyUpEvent event) {
if (enabled && !readonly) {
switch (event.getNativeKeyCode()) {
@@ -1404,6 +1415,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* Listener for popupopener
*/
+ @Override
public void onClick(ClickEvent event) {
if (textInputEnabled
&& event.getNativeEvent().getEventTarget().cast() == tb
@@ -1468,6 +1480,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* .dom.client.FocusEvent)
*/
+ @Override
public void onFocus(FocusEvent event) {
/*
@@ -1505,6 +1518,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* .dom.client.BlurEvent)
*/
+ @Override
public void onBlur(BlurEvent event) {
if (BrowserInfo.get().isIE() && preventNextBlurEventInIE) {
@@ -1562,6 +1576,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* @see com.vaadin.terminal.gwt.client.Focusable#focus()
*/
+ @Override
public void focus() {
focused = true;
if (prompting && !readonly) {
@@ -1670,6 +1685,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
suggestionPopup.hide();
}
+ @Override
public Element getSubPartElement(String subPart) {
if ("textbox".equals(subPart)) {
return this.tb.getElement();
@@ -1679,6 +1695,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
return null;
}
+ @Override
public String getSubPartName(Element subElement) {
if (tb.getElement().isOrHasChild(subElement)) {
return "textbox";
diff --git a/src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java
index 4d341bddfc..96e703538d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/csslayout/CssLayoutConnector.java
@@ -137,6 +137,7 @@ public class CssLayoutConnector extends AbstractLayoutConnector {
return (VCssLayout) super.getWidget();
}
+ @Override
public void updateCaption(ComponentConnector child) {
Widget childWidget = child.getWidget();
FlowPane cssLayoutWidgetContainer = getWidget().panel;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java
index 5001711d6c..2b2bca83c4 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/customcomponent/CustomComponentConnector.java
@@ -19,6 +19,7 @@ public class CustomComponentConnector extends
return (VCustomComponent) super.getWidget();
}
+ @Override
public void updateCaption(ComponentConnector component) {
// NOP, custom component dont render composition roots caption
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java
index f8861caf92..2cebeb5c1a 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java
@@ -102,10 +102,12 @@ public class CustomLayoutConnector extends AbstractLayoutConnector implements
return (VCustomLayout) super.getWidget();
}
+ @Override
public void updateCaption(ComponentConnector paintable) {
getWidget().updateCaption(paintable);
}
+ @Override
public void layout() {
getWidget().iLayoutJS(DOM.getFirstChild(getWidget().getElement()));
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java
index f9d02d403b..159b5bc414 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java
@@ -15,6 +15,7 @@ import com.vaadin.terminal.gwt.client.ui.AbstractFieldConnector;
public class AbstractDateFieldConnector extends AbstractFieldConnector
implements Paintable {
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
return;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java
index 7cd9c110ba..e7d1d48d5f 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/InlineDateFieldConnector.java
@@ -40,6 +40,7 @@ public class InlineDateFieldConnector extends AbstractDateFieldConnector {
if (getWidget().currentResolution > VDateField.RESOLUTION_DAY) {
getWidget().calendarPanel
.setTimeChangeListener(new TimeChangeListener() {
+ @Override
public void changed(int hour, int min, int sec, int msec) {
Date d = getWidget().getDate();
if (d == null) {
@@ -64,6 +65,7 @@ public class InlineDateFieldConnector extends AbstractDateFieldConnector {
if (getWidget().currentResolution <= VDateField.RESOLUTION_MONTH) {
getWidget().calendarPanel
.setFocusChangeListener(new FocusChangeListener() {
+ @Override
public void focusChanged(Date date) {
Date date2 = new Date();
if (getWidget().calendarPanel.getDate() != null) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java
index dfe0b327ac..85753095ca 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/PopupDateFieldConnector.java
@@ -53,6 +53,7 @@ public class PopupDateFieldConnector extends TextualDateConnector {
if (getWidget().currentResolution <= VPopupCalendar.RESOLUTION_MONTH) {
getWidget().calendar
.setFocusChangeListener(new FocusChangeListener() {
+ @Override
public void focusChanged(Date date) {
getWidget().updateValue(date);
getWidget().buildDate();
@@ -68,6 +69,7 @@ public class PopupDateFieldConnector extends TextualDateConnector {
if (getWidget().currentResolution > VPopupCalendar.RESOLUTION_DAY) {
getWidget().calendar
.setTimeChangeListener(new TimeChangeListener() {
+ @Override
public void changed(int hour, int min, int sec, int msec) {
Date d = getWidget().getDate();
if (d == null) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java
index acfff60d53..e4e25a5a2e 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VCalendarPanel.java
@@ -121,6 +121,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt
* .event.dom.client.ClickEvent)
*/
+ @Override
public void onClick(ClickEvent event) {
Day day = (Day) event.getSource();
focusDay(day.getDate());
@@ -718,6 +719,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.KeyDownHandler#onKeyDown(com.google.gwt
* .event.dom.client.KeyDownEvent)
*/
+ @Override
public void onKeyDown(KeyDownEvent event) {
handleKeyPress(event);
}
@@ -729,6 +731,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.KeyPressHandler#onKeyPress(com.google
* .gwt.event.dom.client.KeyPressEvent)
*/
+ @Override
public void onKeyPress(KeyPressEvent event) {
handleKeyPress(event);
}
@@ -1124,6 +1127,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.MouseOutHandler#onMouseOut(com.google
* .gwt.event.dom.client.MouseOutEvent)
*/
+ @Override
public void onMouseOut(MouseOutEvent event) {
if (mouseTimer != null) {
mouseTimer.cancel();
@@ -1137,6 +1141,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.MouseDownHandler#onMouseDown(com.google
* .gwt.event.dom.client.MouseDownEvent)
*/
+ @Override
public void onMouseDown(MouseDownEvent event) {
// Allow user to click-n-hold for fast-forward or fast-rewind.
// Timer is first used for a 500ms delay after mousedown. After that has
@@ -1169,6 +1174,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.MouseUpHandler#onMouseUp(com.google.gwt
* .event.dom.client.MouseUpEvent)
*/
+ @Override
public void onMouseUp(MouseUpEvent event) {
if (mouseTimer != null) {
mouseTimer.cancel();
@@ -1354,6 +1360,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
ListBox lastDropDown = getLastDropDown();
lastDropDown.addKeyDownHandler(new KeyDownHandler() {
+ @Override
public void onKeyDown(KeyDownEvent event) {
boolean shiftKey = event.getNativeEvent().getShiftKey();
if (shiftKey) {
@@ -1439,6 +1446,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.ChangeHandler#onChange(com.google.gwt
* .event.dom.client.ChangeEvent)
*/
+ @Override
public void onChange(ChangeEvent event) {
/*
* Value from dropdowns gets always set for the value. Like year and
@@ -1589,6 +1597,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.BlurHandler#onBlur(com.google.gwt.event
* .dom.client.BlurEvent)
*/
+ @Override
public void onBlur(final BlurEvent event) {
if (event.getSource() instanceof VCalendarPanel) {
hasFocus = false;
@@ -1603,6 +1612,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
* com.google.gwt.event.dom.client.FocusHandler#onFocus(com.google.gwt.event
* .dom.client.FocusEvent)
*/
+ @Override
public void onFocus(FocusEvent event) {
if (event.getSource() instanceof VCalendarPanel) {
hasFocus = true;
@@ -1627,6 +1637,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
private static final String SUBPART_DAY = "day";
private static final String SUBPART_MONTH_YEAR_HEADER = "header";
+ @Override
public String getSubPartName(Element subElement) {
if (contains(nextMonth, subElement)) {
return SUBPART_NEXT_MONTH;
@@ -1685,6 +1696,7 @@ public class VCalendarPanel extends FocusableFlexTable implements
return w.getElement().isOrHasChild(subElement);
}
+ @Override
public Element getSubPartElement(String subPart) {
if (SUBPART_NEXT_MONTH.equals(subPart)) {
return nextMonth.getElement();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java
index 84b3c678eb..e411fb3013 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VDateFieldCalendar.java
@@ -23,16 +23,19 @@ public class VDateFieldCalendar extends VDateField {
calendarPanel = new VCalendarPanel();
add(calendarPanel);
calendarPanel.setSubmitListener(new SubmitListener() {
+ @Override
public void onSubmit() {
updateValueFromPanel();
}
+ @Override
public void onCancel() {
// TODO Auto-generated method stub
}
});
calendarPanel.setFocusOutListener(new FocusOutListener() {
+ @Override
public boolean onFocusOut(DomEvent<?> event) {
updateValueFromPanel();
return false;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java
index 7011e5358b..de6ebf29af 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VPopupCalendar.java
@@ -66,6 +66,7 @@ public class VPopupCalendar extends VTextualDate implements Field,
calendar = GWT.create(VCalendarPanel.class);
calendar.setFocusOutListener(new FocusOutListener() {
+ @Override
public boolean onFocusOut(DomEvent<?> event) {
event.preventDefault();
closeCalendarPanel();
@@ -74,6 +75,7 @@ public class VPopupCalendar extends VTextualDate implements Field,
});
calendar.setSubmitListener(new SubmitListener() {
+ @Override
public void onSubmit() {
// Update internal value and send valuechange event if immediate
updateValue(calendar.getDate());
@@ -84,6 +86,7 @@ public class VPopupCalendar extends VTextualDate implements Field,
closeCalendarPanel();
}
+ @Override
public void onCancel() {
closeCalendarPanel();
}
@@ -164,6 +167,7 @@ public class VPopupCalendar extends VTextualDate implements Field,
popup.setWidth("");
popup.setHeight("");
popup.setPopupPositionAndShow(new PositionCallback() {
+ @Override
public void setPosition(int offsetWidth, int offsetHeight) {
final int w = offsetWidth;
final int h = offsetHeight;
@@ -232,6 +236,7 @@ public class VPopupCalendar extends VTextualDate implements Field,
* com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event
* .dom.client.ClickEvent)
*/
+ @Override
public void onClick(ClickEvent event) {
if (event.getSource() == calendarToggle && isEnabled()) {
openCalendarPanel();
@@ -245,6 +250,7 @@ public class VPopupCalendar extends VTextualDate implements Field,
* com.google.gwt.event.logical.shared.CloseHandler#onClose(com.google.gwt
* .event.logical.shared.CloseEvent)
*/
+ @Override
public void onClose(CloseEvent<PopupPanel> event) {
if (event.getSource() == popup) {
buildDate();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java
index db4eca152a..5febb05440 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/VTextualDate.java
@@ -50,6 +50,7 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
text.addStyleName(CLASSNAME + "-textfield");
text.addChangeHandler(this);
text.addFocusHandler(new FocusHandler() {
+ @Override
public void onFocus(FocusEvent event) {
text.addStyleName(VTextField.CLASSNAME + "-"
+ VTextField.CLASSNAME_FOCUS);
@@ -66,6 +67,7 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
}
});
text.addBlurHandler(new BlurHandler() {
+ @Override
public void onBlur(BlurEvent event) {
text.removeStyleName(VTextField.CLASSNAME + "-"
+ VTextField.CLASSNAME_FOCUS);
@@ -168,6 +170,7 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
}
}
+ @Override
@SuppressWarnings("deprecation")
public void onChange(ChangeEvent event) {
if (!text.getText().equals("")) {
@@ -291,6 +294,7 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
return format.trim();
}
+ @Override
public void focus() {
text.setFocus(true);
}
@@ -315,6 +319,7 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
private final String TEXTFIELD_ID = "field";
+ @Override
public Element getSubPartElement(String subPart) {
if (subPart.equals(TEXTFIELD_ID)) {
return text.getElement();
@@ -323,6 +328,7 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
return null;
}
+ @Override
public String getSubPartName(Element subElement) {
if (text.getElement().isOrHasChild(subElement)) {
return TEXTFIELD_ID;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VAbstractDropHandler.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VAbstractDropHandler.java
index ce47c7d13a..ce0533ac1f 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VAbstractDropHandler.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VAbstractDropHandler.java
@@ -47,6 +47,7 @@ public abstract class VAbstractDropHandler implements VDropHandler {
/**
* Default implementation does nothing.
*/
+ @Override
public void dragOver(VDragEvent drag) {
}
@@ -55,6 +56,7 @@ public abstract class VAbstractDropHandler implements VDropHandler {
* Default implementation does nothing. Implementors should clean possible
* emphasis or drag icons here.
*/
+ @Override
public void dragLeave(VDragEvent drag) {
}
@@ -73,8 +75,10 @@ public abstract class VAbstractDropHandler implements VDropHandler {
* implementation.
*
*/
+ @Override
public void dragEnter(final VDragEvent drag) {
validate(new VAcceptCallback() {
+ @Override
public void accepted(VDragEvent event) {
dragAccepted(drag);
}
@@ -94,6 +98,7 @@ public abstract class VAbstractDropHandler implements VDropHandler {
protected void validate(final VAcceptCallback cb, final VDragEvent event) {
Command checkCriteria = new Command() {
+ @Override
public void execute() {
acceptCriteria.accept(event, criterioUIDL, cb);
}
@@ -109,12 +114,14 @@ public abstract class VAbstractDropHandler implements VDropHandler {
* can't be verified on client or if {@link AcceptCriterion} are met on
* client.
*/
+ @Override
public boolean drop(VDragEvent drag) {
if (acceptCriteria.needsServerSideCheck(drag, criterioUIDL)) {
return true;
} else {
validated = false;
acceptCriteria.accept(drag, criterioUIDL, new VAcceptCallback() {
+ @Override
public void accepted(VDragEvent event) {
validated = true;
}
@@ -129,6 +136,7 @@ public abstract class VAbstractDropHandler implements VDropHandler {
* side counterpart of the Paintable is expected to implement
* {@link DropTarget} interface.
*/
+ @Override
public abstract ComponentConnector getConnector();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java
index 0d71e23903..b1a88166ec 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java
@@ -19,6 +19,7 @@ public abstract class VAcceptCriterion {
final VAcceptCallback callback) {
if (needsServerSideCheck(drag, configuration)) {
VDragEventServerCallback acceptCallback = new VDragEventServerCallback() {
+ @Override
public void handleResponse(boolean accepted, UIDL response) {
if (accepted) {
callback.accepted(drag);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java
index 19399d7d4a..9d11ccc500 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java
@@ -33,6 +33,7 @@ final public class VAnd extends VAcceptCriterion implements VAcceptCallback {
return true;
}
+ @Override
public void accepted(VDragEvent event) {
b1 = true;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java
index 2f404a3028..45b3cdaf4b 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java
@@ -48,6 +48,7 @@ public class VDragAndDropManager {
private final class DefaultDragAndDropEventHandler implements
NativePreviewHandler {
+ @Override
public void onPreviewNativeEvent(NativePreviewEvent event) {
NativeEvent nativeEvent = event.getNativeEvent();
@@ -307,6 +308,7 @@ public class VDragAndDropManager {
final Command startDrag = new Command() {
+ @Override
public void execute() {
isStarted = true;
addActiveDragSourceStyleName();
@@ -352,6 +354,7 @@ public class VDragAndDropManager {
deferredStartRegistration = Event
.addNativePreviewHandler(new NativePreviewHandler() {
+ @Override
public void onPreviewNativeEvent(
NativePreviewEvent event) {
int typeInt = event.getTypeInt();
@@ -509,6 +512,7 @@ public class VDragAndDropManager {
final ApplicationConnection client = currentDropHandler
.getApplicationConnection();
Scheduler.get().scheduleFixedDelay(new RepeatingCommand() {
+ @Override
public boolean execute() {
if (!client.hasActiveRequest()) {
removeActiveDragSourceStyleName(dragSource);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java
index e3bed02642..a1dbccdfc7 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java
@@ -48,6 +48,7 @@ public class VLazyInitItemIdentifiers extends VAcceptCriterion {
VDragEventServerCallback acceptCallback = new VDragEventServerCallback() {
+ @Override
public void handleResponse(boolean accepted, UIDL response) {
hashSet = new HashSet<String>();
String[] stringArrayAttribute = response
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java
index e4d2dff606..52b9358791 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java
@@ -33,6 +33,7 @@ final public class VNot extends VAcceptCriterion {
b1 = false;
VAcceptCallback accept1cb = new VAcceptCallback() {
+ @Override
public void accepted(VDragEvent event) {
b1 = true;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java
index 91ba4bf0c4..c5c8dbb052 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java
@@ -41,6 +41,7 @@ final public class VOr extends VAcceptCriterion implements VAcceptCallback {
return false; // not used here
}
+ @Override
public void accepted(VDragEvent event) {
accepted = true;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java
index 64c2da5320..865df821d9 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java
@@ -16,6 +16,7 @@ final public class VServerAccept extends VAcceptCriterion {
final VAcceptCallback callback) {
VDragEventServerCallback acceptCallback = new VDragEventServerCallback() {
+ @Override
public void handleResponse(boolean accepted, UIDL response) {
if (accepted) {
callback.accepted(drag);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java
index 2a78cc4433..9d99eadeba 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java
@@ -17,6 +17,7 @@ import com.vaadin.ui.DragAndDropWrapper;
public class DragAndDropWrapperConnector extends CustomComponentConnector
implements Paintable {
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
getWidget().client = client;
if (isRealUpdate(uidl) && !uidl.hasAttribute("hidden")) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java
index b1fffc8355..145e5b0768 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/draganddropwrapper/VDragAndDropWrapper.java
@@ -68,6 +68,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements
setStyleName(CLASSNAME);
addDomHandler(new MouseDownHandler() {
+ @Override
public void onMouseDown(MouseDownEvent event) {
if (startDrag(event.getNativeEvent())) {
event.preventDefault(); // prevent text selection
@@ -77,6 +78,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements
addDomHandler(new TouchStartHandler() {
+ @Override
public void onTouchStart(TouchStartEvent event) {
if (startDrag(event.getNativeEvent())) {
/*
@@ -166,6 +168,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements
private ReadyStateChangeHandler readyStateChangeHandler = new ReadyStateChangeHandler() {
+ @Override
public void onReadyStateChange(XMLHttpRequest xhr) {
if (xhr.getReadyState() == XMLHttpRequest.DONE) {
// visit server for possible
@@ -182,6 +185,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements
void startNextUpload() {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
if (!uploading) {
if (fileIds.size() > 0) {
@@ -413,6 +417,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements
files.add(file);
}
+ @Override
public VDropHandler getDropHandler() {
return dropHandler;
}
@@ -451,6 +456,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements
currentlyValid = false;
validate(new VAcceptCallback() {
+ @Override
public void accepted(VDragEvent event) {
dragAccepted(drag);
}
@@ -495,6 +501,7 @@ public class VDragAndDropWrapper extends VCustomComponent implements
VDragAndDropWrapper.this);
}
+ @Override
public ApplicationConnection getApplicationConnection() {
return client;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java b/src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java
index fe3549e7f2..dbbf91e091 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/embedded/EmbeddedConnector.java
@@ -41,6 +41,7 @@ public class EmbeddedConnector extends AbstractComponentConnector implements
rpc = RpcProxy.create(EmbeddedServerRpc.class, this);
}
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
return;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java b/src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java
index 981c753dd1..54f82eb9b9 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/form/FormConnector.java
@@ -25,6 +25,7 @@ public class FormConnector extends AbstractComponentContainerConnector
implements Paintable, MayScrollChildren {
private final ElementResizeListener footerResizeListener = new ElementResizeListener() {
+ @Override
public void onElementResize(ElementResizeEvent e) {
VForm form = getWidget();
@@ -57,6 +58,7 @@ public class FormConnector extends AbstractComponentContainerConnector
return false;
}
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
getWidget().client = client;
getWidget().id = uidl.getId();
@@ -180,6 +182,7 @@ public class FormConnector extends AbstractComponentContainerConnector
}
}
+ @Override
public void updateCaption(ComponentConnector component) {
// NOP form don't render caption for neither field layout nor footer
// layout
diff --git a/src/com/vaadin/terminal/gwt/client/ui/form/VForm.java b/src/com/vaadin/terminal/gwt/client/ui/form/VForm.java
index 81f24a8e7e..823b0e83ae 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/form/VForm.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/form/VForm.java
@@ -62,6 +62,7 @@ public class VForm extends ComplexPanel implements KeyDownHandler {
fieldSet.appendChild(footerContainer);
}
+ @Override
public void onKeyDown(KeyDownEvent event) {
shortcutHandler.handleKeyboardEvent(Event.as(event.getNativeEvent()));
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java
index c08651ded1..ebe83654fe 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/formlayout/FormLayoutConnector.java
@@ -79,6 +79,7 @@ public class FormLayoutConnector extends AbstractLayoutConnector {
}
+ @Override
public void updateCaption(ComponentConnector component) {
getWidget().table.updateCaption(component.getWidget(),
component.getState(), component.isEnabled());
diff --git a/src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java b/src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java
index 1a161c529d..757315f72e 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/formlayout/VFormLayout.java
@@ -87,6 +87,7 @@ public class VFormLayout extends SimplePanel {
* com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt
* .event.dom.client.ClickEvent)
*/
+ @Override
public void onClick(ClickEvent event) {
Caption caption = (Caption) event.getSource();
if (caption.getOwner() != null) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java
index f28b0237f7..5d53c688b1 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java
@@ -83,6 +83,7 @@ public class GridLayoutConnector extends AbstractComponentContainerConnector
}
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
VGridLayout layout = getWidget();
layout.client = client;
@@ -186,6 +187,7 @@ public class GridLayoutConnector extends AbstractComponentContainerConnector
}
+ @Override
public void updateCaption(ComponentConnector childConnector) {
if (!childConnector.delegateCaptionHandling()) {
// Check not required by interface but by workarounds in this class
@@ -224,10 +226,12 @@ public class GridLayoutConnector extends AbstractComponentContainerConnector
return (VGridLayout) super.getWidget();
}
+ @Override
public void layoutVertically() {
getWidget().updateHeight();
}
+ @Override
public void layoutHorizontally() {
getWidget().updateWidth();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java b/src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java
index c002d2dd50..070e74d6bf 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/link/LinkConnector.java
@@ -22,6 +22,7 @@ public class LinkConnector extends AbstractComponentConnector implements
return false;
}
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/link/VLink.java b/src/com/vaadin/terminal/gwt/client/ui/link/VLink.java
index bef7943e3f..4df3220ef1 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/link/VLink.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/link/VLink.java
@@ -53,6 +53,7 @@ public class VLink extends HTML implements ClickHandler {
setStyleName(CLASSNAME);
}
+ @Override
public void onClick(ClickEvent event) {
if (enabled) {
if (target == null) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java b/src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java
index 1b1c2c44e3..6f3f876fb7 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/listselect/VListSelect.java
@@ -105,6 +105,7 @@ public class VListSelect extends VOptionGroupBase {
getOptionsContainer().setTabIndex(tabIndex);
}
+ @Override
public void focus() {
select.setFocus(true);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java
index 7bee870387..5cb3fb83b4 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBar.java
@@ -246,6 +246,7 @@ public class MenuBar extends Widget implements PopupListener {
}
}
+ @Override
public void onPopupClosed(PopupPanel sender, boolean autoClosed) {
// If the menu popup was auto-closed, close all of its parents as well.
if (autoClosed) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java
index a18e4d734a..7966185c00 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java
@@ -31,6 +31,7 @@ public class MenuBarConnector extends AbstractComponentConnector implements
* This method is called when the page is loaded for the first time, and
* every time UI changes in the component are received from the server.
*/
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
return;
@@ -107,6 +108,7 @@ public class MenuBarConnector extends AbstractComponentConnector implements
// Construct a command that fires onMenuClick(int) with the
// item's id-number
cmd = new Command() {
+ @Override
public void execute() {
getWidget().hostReference.onMenuClick(itemId);
}
@@ -160,6 +162,7 @@ public class MenuBarConnector extends AbstractComponentConnector implements
return (VMenuBar) super.getWidget();
}
+ @Override
public void layout() {
getWidget().iLayout();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java
index af79ba7c5e..7f150d9a5f 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/MenuItem.java
@@ -121,6 +121,7 @@ public class MenuItem extends UIObject implements HasHTML {
return command;
}
+ @Override
public String getHTML() {
return DOM.getInnerHTML(getElement());
}
@@ -143,6 +144,7 @@ public class MenuItem extends UIObject implements HasHTML {
return subMenu;
}
+ @Override
public String getText() {
return DOM.getInnerText(getElement());
}
@@ -157,6 +159,7 @@ public class MenuItem extends UIObject implements HasHTML {
command = cmd;
}
+ @Override
public void setHTML(String html) {
DOM.setInnerHTML(getElement(), html);
}
@@ -171,6 +174,7 @@ public class MenuItem extends UIObject implements HasHTML {
this.subMenu = subMenu;
}
+ @Override
public void setText(String text) {
DOM.setInnerText(getElement(), text);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java b/src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java
index 6133b7d80c..a96be0bc2f 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/menubar/VMenuBar.java
@@ -91,6 +91,7 @@ public class VMenuBar extends SimpleFocusablePanel implements
private VLazyExecutor iconLoadedExecutioner = new VLazyExecutor(100,
new ScheduledCommand() {
+ @Override
public void execute() {
iLayout(true);
}
@@ -635,6 +636,7 @@ public class VMenuBar extends SimpleFocusablePanel implements
/**
* Listener method, fired when this menu is closed
*/
+ @Override
public void onClose(CloseEvent<PopupPanel> event) {
hideChildren();
if (event.isAutoClosed()) {
@@ -849,10 +851,12 @@ public class VMenuBar extends SimpleFocusablePanel implements
return command;
}
+ @Override
public String getHTML() {
return html;
}
+ @Override
public void setHTML(String html) {
this.html = html;
DOM.setInnerHTML(getElement(), html);
@@ -862,10 +866,12 @@ public class VMenuBar extends SimpleFocusablePanel implements
Util.sinkOnloadForImages(getElement());
}
+ @Override
public String getText() {
return html;
}
+ @Override
public void setText(String text) {
setHTML(Util.escapeHTML(text));
}
@@ -1048,6 +1054,7 @@ public class VMenuBar extends SimpleFocusablePanel implements
* com.google.gwt.event.dom.client.KeyPressHandler#onKeyPress(com.google
* .gwt.event.dom.client.KeyPressEvent)
*/
+ @Override
public void onKeyPress(KeyPressEvent event) {
if (handleNavigation(event.getNativeEvent().getKeyCode(),
event.isControlKeyDown() || event.isMetaKeyDown(),
@@ -1063,6 +1070,7 @@ public class VMenuBar extends SimpleFocusablePanel implements
* com.google.gwt.event.dom.client.KeyDownHandler#onKeyDown(com.google.gwt
* .event.dom.client.KeyDownEvent)
*/
+ @Override
public void onKeyDown(KeyDownEvent event) {
if (handleNavigation(event.getNativeEvent().getKeyCode(),
event.isControlKeyDown() || event.isMetaKeyDown(),
@@ -1383,12 +1391,14 @@ public class VMenuBar extends SimpleFocusablePanel implements
* com.google.gwt.event.dom.client.FocusHandler#onFocus(com.google.gwt.event
* .dom.client.FocusEvent)
*/
+ @Override
public void onFocus(FocusEvent event) {
}
private final String SUBPART_PREFIX = "item";
+ @Override
public Element getSubPartElement(String subPart) {
int index = Integer
.parseInt(subPart.substring(SUBPART_PREFIX.length()));
@@ -1397,6 +1407,7 @@ public class VMenuBar extends SimpleFocusablePanel implements
return item.getElement();
}
+ @Override
public String getSubPartName(Element subElement) {
if (!getElement().isOrHasChild(subElement)) {
return null;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java
index c010fba711..1f2b188b3d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/NativeButtonConnector.java
@@ -107,12 +107,14 @@ public class NativeButtonConnector extends AbstractComponentConnector implements
return (ButtonState) super.getState();
}
+ @Override
public void onFocus(FocusEvent event) {
// EventHelper.updateFocusHandler ensures that this is called only when
// there is a listener on server side
focusBlurRpc.focus();
}
+ @Override
public void onBlur(BlurEvent event) {
// EventHelper.updateFocusHandler ensures that this is called only when
// there is a listener on server side
diff --git a/src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java
index e5a2e1253c..d0ddae30a4 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/nativebutton/VNativeButton.java
@@ -100,6 +100,7 @@ public class VNativeButton extends Button implements ClickHandler {
* com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event
* .dom.client.ClickEvent)
*/
+ @Override
public void onClick(ClickEvent event) {
if (paintableId == null || client == null) {
return;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java b/src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java
index cab23b1bc2..ea5292724d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/nativeselect/VNativeSelect.java
@@ -108,6 +108,7 @@ public class VNativeSelect extends VOptionGroupBase implements Field {
getOptionsContainer().setTabIndex(tabIndex);
}
+ @Override
public void focus() {
select.setFocus(true);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java
index 3658126a97..a4dd72906d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/OptionGroupBaseConnector.java
@@ -14,6 +14,7 @@ import com.vaadin.terminal.gwt.client.ui.textfield.VTextField;
public abstract class OptionGroupBaseConnector extends AbstractFieldConnector
implements Paintable {
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
// Save details
diff --git a/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java
index d6e6949242..49e75afe92 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroup.java
@@ -51,6 +51,7 @@ public class VOptionGroup extends VOptionGroupBase implements FocusHandler,
protected List<HandlerRegistration> blurHandlers = null;
private final LoadHandler iconLoadHandler = new LoadHandler() {
+ @Override
public void onLoad(LoadEvent event) {
Util.notifyParentOfSizeChange(VOptionGroup.this, true);
}
@@ -154,6 +155,7 @@ public class VOptionGroup extends VOptionGroupBase implements FocusHandler,
}
}
+ @Override
public void focus() {
Iterator<Widget> iterator = panel.iterator();
if (iterator.hasNext()) {
@@ -161,6 +163,7 @@ public class VOptionGroup extends VOptionGroupBase implements FocusHandler,
}
}
+ @Override
public void onFocus(FocusEvent arg0) {
if (!blurOccured) {
// no blur occured before this focus event
@@ -178,10 +181,12 @@ public class VOptionGroup extends VOptionGroupBase implements FocusHandler,
}
}
+ @Override
public void onBlur(BlurEvent arg0) {
blurOccured = true;
if (sendBlurEvents) {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
// check whether blurOccured still is true and then send the
// event out to the server
diff --git a/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java
index a512f024b8..d128d7deb1 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/optiongroup/VOptionGroupBase.java
@@ -126,6 +126,7 @@ public abstract class VOptionGroupBase extends Composite implements Field,
abstract protected void setTabIndex(int tabIndex);
+ @Override
public void onClick(ClickEvent event) {
if (event.getSource() == newItemButton
&& !newItemField.getText().equals("")) {
@@ -135,6 +136,7 @@ public abstract class VOptionGroupBase extends Composite implements Field,
}
}
+ @Override
public void onChange(ChangeEvent event) {
if (multiselect) {
client.updateVariable(paintableId, "selected", getSelectedItems(),
@@ -145,6 +147,7 @@ public abstract class VOptionGroupBase extends Composite implements Field,
}
}
+ @Override
public void onKeyPress(KeyPressEvent event) {
if (event.getSource() == newItemField
&& event.getCharCode() == KeyCodes.KEY_ENTER) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java
index 7c748df29d..b7d243c241 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java
@@ -73,6 +73,7 @@ public abstract class AbstractOrderedLayoutConnector extends
return (AbstractOrderedLayoutState) super.getState();
}
+ @Override
public void updateCaption(ComponentConnector component) {
VMeasuringOrderedLayout layout = getWidget();
if (VCaption.isNeeded(component.getState())) {
@@ -263,6 +264,7 @@ public abstract class AbstractOrderedLayoutConnector extends
}
}
+ @Override
public void layoutHorizontally() {
if (getWidget().isVertical) {
layoutSecondaryDirection();
@@ -271,6 +273,7 @@ public abstract class AbstractOrderedLayoutConnector extends
}
}
+ @Override
public void layoutVertically() {
if (getWidget().isVertical) {
layoutPrimaryDirection();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java b/src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java
index ea7ffda9db..c28432e917 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/panel/PanelConnector.java
@@ -71,6 +71,7 @@ public class PanelConnector extends AbstractComponentContainerConnector
return false;
}
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (isRealUpdate(uidl)) {
@@ -165,6 +166,7 @@ public class PanelConnector extends AbstractComponentContainerConnector
getWidget().contentNode.setTabIndex(getState().getTabIndex());
}
+ @Override
public void updateCaption(ComponentConnector component) {
// NOP: layouts caption, errors etc not rendered in Panel
}
@@ -174,6 +176,7 @@ public class PanelConnector extends AbstractComponentContainerConnector
return (VPanel) super.getWidget();
}
+ @Override
public void layout() {
updateSizes();
}
@@ -200,6 +203,7 @@ public class PanelConnector extends AbstractComponentContainerConnector
panel.scrollLeft = panel.contentNode.getScrollLeft();
}
+ @Override
public void postLayout() {
VPanel panel = getWidget();
if (uidlScrollTop != null) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java b/src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java
index d56a82c46b..8764d61c3a 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/panel/VPanel.java
@@ -100,6 +100,7 @@ public class VPanel extends SimplePanel implements ShortcutActionHandlerOwner,
* @see com.vaadin.terminal.gwt.client.Focusable#focus()
*/
+ @Override
public void focus() {
setFocus(true);
@@ -170,6 +171,7 @@ public class VPanel extends SimplePanel implements ShortcutActionHandlerOwner,
}
}
+ @Override
public ShortcutActionHandler getShortcutActionHandler() {
return shortcutHandler;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java b/src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java
index c5117fdddb..96ffd04391 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/popupview/PopupViewConnector.java
@@ -31,6 +31,7 @@ public class PopupViewConnector extends AbstractComponentContainerConnector
* @see com.vaadin.terminal.gwt.client.ComponentConnector#updateFromUIDL(com.vaadin.terminal.gwt.client.UIDL,
* com.vaadin.terminal.gwt.client.ApplicationConnection)
*/
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
return;
@@ -81,6 +82,7 @@ public class PopupViewConnector extends AbstractComponentContainerConnector
}
}// updateFromUIDL
+ @Override
public void updateCaption(ComponentConnector component) {
if (VCaption.isNeeded(component.getState())) {
if (getWidget().popup.captionWrapper != null) {
@@ -104,6 +106,7 @@ public class PopupViewConnector extends AbstractComponentContainerConnector
return (VPopupView) super.getWidget();
}
+ @Override
public void postLayout() {
if (centerAfterLayout) {
centerAfterLayout = false;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java b/src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java
index c8a0222ee2..c923c5d0ab 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/popupview/VPopupView.java
@@ -59,6 +59,7 @@ public class VPopupView extends HTML {
// When we click to open the popup...
addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
updateState(true);
}
@@ -66,6 +67,7 @@ public class VPopupView extends HTML {
// ..and when we close it
popup.addCloseHandler(new CloseHandler<PopupPanel>() {
+ @Override
public void onClose(CloseEvent<PopupPanel> event) {
updateState(false);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java b/src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java
index 9d0532fae3..c37e9beee3 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/progressindicator/ProgressIndicatorConnector.java
@@ -16,6 +16,7 @@ import com.vaadin.ui.ProgressIndicator;
public class ProgressIndicatorConnector extends AbstractFieldConnector
implements Paintable {
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/RichTextAreaConnector.java b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/RichTextAreaConnector.java
index db52640088..7647221656 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/RichTextAreaConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/RichTextAreaConnector.java
@@ -17,6 +17,7 @@ import com.vaadin.ui.RichTextArea;
public class RichTextAreaConnector extends AbstractFieldConnector implements
Paintable, BeforeShortcutActionListener {
+ @Override
public void updateFromUIDL(final UIDL uidl, ApplicationConnection client) {
getWidget().client = client;
getWidget().id = uidl.getId();
@@ -59,6 +60,7 @@ public class RichTextAreaConnector extends AbstractFieldConnector implements
}
+ @Override
public void onBeforeShortcutAction(Event e) {
getWidget().synchronizeContentToServer();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java
index eb062a3799..5d5f7d7b8c 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java
@@ -160,6 +160,7 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
}
// TODO is this really used, or does everything go via onBlur() only?
+ @Override
public void onChange(ChangeEvent event) {
synchronizeContentToServer();
}
@@ -177,6 +178,7 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
}
}
+ @Override
public void onBlur(BlurEvent event) {
synchronizeContentToServer();
// TODO notify possible server side blur/focus listeners
@@ -242,6 +244,7 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
* delay the height setting so the DOM has had time to stabilize.
*/
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
int editorHeight = getOffsetHeight()
- getExtraVerticalPixels()
@@ -281,9 +284,11 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
}
}
+ @Override
public void onKeyPress(KeyPressEvent event) {
if (maxLength >= 0) {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
if (rta.getHTML().length() > maxLength) {
rta.setHTML(rta.getHTML().substring(0, maxLength));
@@ -293,6 +298,7 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
}
}
+ @Override
public void onKeyDown(KeyDownEvent event) {
// delegate to closest shortcut action handler
// throw event from the iframe forward to the shortcuthandler
@@ -320,14 +326,17 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
return hasShortcutActionHandler;
}
+ @Override
public int getTabIndex() {
return rta.getTabIndex();
}
+ @Override
public void setAccessKey(char key) {
rta.setAccessKey(key);
}
+ @Override
public void setFocus(boolean focused) {
/*
* Similar issue as with selectAll. Focusing must happen before possible
@@ -342,6 +351,7 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
}.schedule(300);
}
+ @Override
public void setTabIndex(int index) {
rta.setTabIndex(index);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar.java b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar.java
index 1e1805efdf..d86c7a4bf5 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar.java
@@ -172,6 +172,7 @@ public class VRichTextToolbar extends Composite {
private class EventHandler implements ClickHandler, ChangeHandler,
KeyUpHandler {
+ @Override
@SuppressWarnings("deprecation")
public void onChange(ChangeEvent event) {
Object sender = event.getSource();
@@ -193,6 +194,7 @@ public class VRichTextToolbar extends Composite {
}
}
+ @Override
@SuppressWarnings("deprecation")
public void onClick(ClickEvent event) {
Object sender = event.getSource();
@@ -249,6 +251,7 @@ public class VRichTextToolbar extends Composite {
}
}
+ @Override
public void onKeyUp(KeyUpEvent event) {
if (event.getSource() == richText) {
// We use the RichTextArea's onKeyUp event to update the toolbar
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 142a0fd89c..fddb76e755 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java
@@ -123,6 +123,7 @@ public class VRoot extends SimplePanel implements ResizeHandler,
*/
private final ValueChangeHandler<String> historyChangeHandler = new ValueChangeHandler<String>() {
+ @Override
public void onValueChange(ValueChangeEvent<String> event) {
String newFragment = event.getValue();
@@ -138,6 +139,7 @@ public class VRoot extends SimplePanel implements ResizeHandler,
private VLazyExecutor delayedResizeExecutor = new VLazyExecutor(200,
new ScheduledCommand() {
+ @Override
public void execute() {
performSizeCheck();
}
@@ -361,6 +363,7 @@ public class VRoot extends SimplePanel implements ResizeHandler,
* .gwt.event.logical.shared.ResizeEvent)
*/
+ @Override
public void onResize(ResizeEvent event) {
triggerSizeChangeCheck();
}
@@ -416,6 +419,7 @@ public class VRoot extends SimplePanel implements ResizeHandler,
$wnd.location = url;
}-*/;
+ @Override
public void onWindowClosing(Window.ClosingEvent event) {
// Change focus on this window in order to ensure that all state is
// collected from textfields
@@ -435,10 +439,12 @@ public class VRoot extends SimplePanel implements ResizeHandler,
}
}-*/;
+ @Override
public ShortcutActionHandler getShortcutActionHandler() {
return actionHandler;
}
+ @Override
public void focus() {
getElement().focus();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java b/src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java
index 6fd7f8b6aa..978ea162ab 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/slider/SliderConnector.java
@@ -16,6 +16,7 @@ import com.vaadin.ui.Slider;
public class SliderConnector extends AbstractFieldConnector implements
Paintable {
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
getWidget().client = client;
@@ -51,6 +52,7 @@ public class SliderConnector extends AbstractFieldConnector implements
if (!getWidget().vertical) {
// Draw handle with a delay to allow base to gain maximum width
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
getWidget().buildHandle();
getWidget().setValue(getWidget().value, false);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java b/src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java
index e5282dc45e..06608c95fe 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/slider/VSlider.java
@@ -78,6 +78,7 @@ public class VSlider extends SimpleFocusablePanel implements Field,
private VLazyExecutor delayedValueUpdater = new VLazyExecutor(100,
new ScheduledCommand() {
+ @Override
public void execute() {
updateValueToServer();
acceleration = 1;
@@ -159,6 +160,7 @@ public class VSlider extends SimpleFocusablePanel implements Field,
DOM.setStyleAttribute(base, styleAttribute, MIN_SIZE + "px");
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
final Element p = DOM.getParent(getElement());
if (DOM.getElementPropertyInt(p, domProperty) > (MIN_SIZE + 5)) {
@@ -416,6 +418,7 @@ public class VSlider extends SimpleFocusablePanel implements Field,
}
}
+ @Override
public void iLayout() {
if (vertical) {
setHeight();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java
index e33755bc9b..8a210ecced 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java
@@ -41,6 +41,7 @@ public abstract class AbstractSplitPanelConnector extends
getWidget().addHandler(new SplitterMoveHandler() {
+ @Override
public void splitterMoved(SplitterMoveEvent event) {
String position = getWidget().getSplitterPosition();
float pos = 0;
@@ -61,6 +62,7 @@ public abstract class AbstractSplitPanelConnector extends
}, SplitterMoveEvent.TYPE);
}
+ @Override
public void updateCaption(ComponentConnector component) {
// TODO Implement caption handling
}
@@ -145,6 +147,7 @@ public abstract class AbstractSplitPanelConnector extends
getWidget().makeScrollable();
}
+ @Override
public void layout() {
VAbstractSplitPanel splitPanel = getWidget();
splitPanel.setSplitPosition(splitPanel.position);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java
index e2f30c6676..1c14ce2a73 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/splitpanel/VAbstractSplitPanel.java
@@ -125,12 +125,14 @@ public class VAbstractSplitPanel extends ComplexPanel {
makeScrollable();
addDomHandler(new TouchCancelHandler() {
+ @Override
public void onTouchCancel(TouchCancelEvent event) {
// TODO When does this actually happen??
VConsole.log("TOUCH CANCEL");
}
}, TouchCancelEvent.getType());
addDomHandler(new TouchStartHandler() {
+ @Override
public void onTouchStart(TouchStartEvent event) {
Node target = event.getTouches().get(0).getTarget().cast();
if (splitter.isOrHasChild(target)) {
@@ -139,6 +141,7 @@ public class VAbstractSplitPanel extends ComplexPanel {
}
}, TouchStartEvent.getType());
addDomHandler(new TouchMoveHandler() {
+ @Override
public void onTouchMove(TouchMoveEvent event) {
if (resizing) {
onMouseMove(Event.as(event.getNativeEvent()));
@@ -146,6 +149,7 @@ public class VAbstractSplitPanel extends ComplexPanel {
}
}, TouchMoveEvent.getType());
addDomHandler(new TouchEndHandler() {
+ @Override
public void onTouchEnd(TouchEndEvent event) {
if (resizing) {
onMouseUp(Event.as(event.getNativeEvent()));
diff --git a/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java
index ab867ea045..7ca449c0b7 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java
@@ -44,6 +44,7 @@ public class TableConnector extends AbstractComponentContainerConnector
* com.vaadin.terminal.gwt.client.Paintable#updateFromUIDL(com.vaadin.terminal
* .gwt.client.UIDL, com.vaadin.terminal.gwt.client.ApplicationConnection)
*/
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
getWidget().rendering = true;
@@ -180,6 +181,7 @@ public class TableConnector extends AbstractComponentContainerConnector
// *shouldn't* have changed (unless the number of rows
// or the height of the widget has also changed)
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
Util.runWebkitOverflowAutoFix(getWidget().scrollBodyPanel
.getElement());
@@ -267,23 +269,28 @@ public class TableConnector extends AbstractComponentContainerConnector
return (VScrollTable) super.getWidget();
}
+ @Override
public void updateCaption(ComponentConnector component) {
// NOP, not rendered
}
+ @Override
public void layoutVertically() {
getWidget().updateHeight();
}
+ @Override
public void layoutHorizontally() {
getWidget().updateWidth();
}
+ @Override
public void postLayout() {
VScrollTable table = getWidget();
if (table.sizeNeedsInit) {
table.sizeInit();
Scheduler.get().scheduleFinally(new ScheduledCommand() {
+ @Override
public void execute() {
getLayoutManager().setNeedsMeasure(TableConnector.this);
ServerConnector parent = getParent();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java
index e2aedd123f..4574a9ea44 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java
@@ -328,6 +328,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
private KeyPressHandler navKeyPressHandler = new KeyPressHandler() {
+ @Override
public void onKeyPress(KeyPressEvent keyPressEvent) {
// This is used for Firefox only, since Firefox auto-repeat
// works correctly only if we use a key press handler, other
@@ -365,6 +366,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
private KeyUpHandler navKeyUpHandler = new KeyUpHandler() {
+ @Override
public void onKeyUp(KeyUpEvent keyUpEvent) {
NativeEvent event = keyUpEvent.getNativeEvent();
int keyCode = event.getKeyCode();
@@ -392,6 +394,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
private KeyDownHandler navKeyDownHandler = new KeyDownHandler() {
+ @Override
public void onKeyDown(KeyDownEvent keyDownEvent) {
NativeEvent event = keyDownEvent.getNativeEvent();
// This is not used for Firefox
@@ -520,6 +523,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
scrollBodyPanel.sinkEvents(Event.ONCONTEXTMENU);
scrollBodyPanel.addDomHandler(new ContextMenuHandler() {
+ @Override
public void onContextMenu(ContextMenuEvent event) {
handleBodyContextMenu(event);
}
@@ -540,6 +544,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
// closes. See #8526.
client.getContextMenu().addCloseHandler(new CloseHandler<PopupPanel>() {
+ @Override
public void onClose(CloseEvent<PopupPanel> event) {
contextMenu = null;
}
@@ -1849,6 +1854,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
// Deferred due to some Firefox oddities
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
scrollBodyPanel
.setScrollPosition(measureRowHeightOffset(firstvisible));
@@ -1884,6 +1890,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
scrollBody.reLayoutComponents();
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
Util.runWebkitOverflowAutoFix(scrollBodyPanel.getElement());
}
@@ -2215,6 +2222,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
} else {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
int tdWidth = width
+ scrollBody.getCellExtraWidth();
@@ -2813,6 +2821,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
Scheduler.get().scheduleDeferred(
new ScheduledCommand() {
+ @Override
public void execute() {
setColWidth(colIx, newWidth, true);
}
@@ -2841,6 +2850,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
// Recalculate the column sizings if any column has changed
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ @Override
public void execute() {
triggerLazyColumnAdjustment(true);
}
@@ -2952,6 +2962,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
visibleCells.add(newIndex, hCell);
}
+ @Override
public Iterator<Widget> iterator() {
return visibleCells.iterator();
}
@@ -3101,6 +3112,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
* Returns columns as Action array for column select popup
*/
+ @Override
public Action[] getActions() {
Object[] cols;
if (columnReordering && columnOrder != null) {
@@ -3139,10 +3151,12 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
return actions;
}
+ @Override
public ApplicationConnection getClient() {
return client;
}
+ @Override
public String getPaintableId() {
return paintableId;
}
@@ -3310,6 +3324,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
} else {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
int tdWidth = width
+ scrollBody.getCellExtraWidth()
@@ -3573,6 +3588,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
* @see com.google.gwt.user.client.ui.HasWidgets#iterator()
*/
+ @Override
public Iterator<Widget> iterator() {
return visibleCells.iterator();
}
@@ -4111,6 +4127,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
renderedRows.add(actualIx, row);
}
+ @Override
public Iterator<Widget> iterator() {
return renderedRows.iterator();
}
@@ -4704,6 +4721,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
childWidgets.add(w);
}
+ @Override
public Iterator<Widget> iterator() {
return childWidgets.iterator();
}
@@ -5396,6 +5414,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
* @see com.vaadin.terminal.gwt.client.ui.IActionOwner#getActions ()
*/
+ @Override
public Action[] getActions() {
if (actionKeys == null) {
return new Action[] {};
@@ -5419,10 +5438,12 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
return actions;
}
+ @Override
public ApplicationConnection getClient() {
return client;
}
+ @Override
public String getPaintableId() {
return paintableId;
}
@@ -5473,6 +5494,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
// widths.
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ @Override
public void execute() {
if (showRowHeaders) {
setCellWidth(0, tHead.getHeaderCell(0).getWidth());
@@ -5804,6 +5826,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
scrollBody.reLayoutComponents();
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
Util.runWebkitOverflowAutoFix(scrollBodyPanel.getElement());
}
@@ -5925,6 +5948,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
// #7607.
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
Util.runWebkitOverflowAutoFix(scrollBodyPanel.getElement());
}
@@ -5955,6 +5979,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
if (visible) {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
scrollBodyPanel
.setScrollPosition(measureRowHeightOffset(firstRowInViewPort));
@@ -5989,6 +6014,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
* user scrolls
*/
+ @Override
public void onScroll(ScrollEvent event) {
scrollLeft = scrollBodyPanel.getElement().getScrollLeft();
scrollTop = scrollBodyPanel.getScrollPosition();
@@ -6018,6 +6044,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
// value available soon.
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
onScroll(null);
}
@@ -6098,6 +6125,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
return (int) Math.ceil(scrollTop / scrollBody.getRowHeight());
}
+ @Override
public VScrollTableDropHandler getDropHandler() {
return dropHandler;
}
@@ -6178,6 +6206,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
final TableDDDetails newDetails = dropDetails;
VAcceptCallback cb = new VAcceptCallback() {
+ @Override
public void accepted(VDragEvent event) {
if (newDetails.equals(dropDetails)) {
dragAccepted(event);
@@ -6254,6 +6283,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
return ConnectorMap.get(client).getConnector(VScrollTable.this);
}
+ @Override
public ApplicationConnection getApplicationConnection() {
return client;
}
@@ -6585,6 +6615,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
* .dom.client.FocusEvent)
*/
+ @Override
public void onFocus(FocusEvent event) {
if (isFocusable()) {
hasFocus = true;
@@ -6606,6 +6637,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
* .dom.client.BlurEvent)
*/
+ @Override
public void onBlur(BlurEvent event) {
hasFocus = false;
navKeyDown = false;
@@ -6679,6 +6711,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
* @see com.vaadin.terminal.gwt.client.Focusable#focus()
*/
+ @Override
public void focus() {
if (isFocusable()) {
scrollBodyPanel.focus();
@@ -6760,6 +6793,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
public void lazyRevertFocusToRow(final VScrollTableRow currentlyFocusedRow) {
Scheduler.get().scheduleFinally(new ScheduledCommand() {
+ @Override
public void execute() {
if (currentlyFocusedRow != null) {
setRowFocus(currentlyFocusedRow);
@@ -6772,6 +6806,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
});
}
+ @Override
public Action[] getActions() {
if (bodyActionKeys == null) {
return new Action[] {};
@@ -6787,10 +6822,12 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
return actions;
}
+ @Override
public ApplicationConnection getClient() {
return client;
}
+ @Override
public String getPaintableId() {
return paintableId;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java
index e16e84d112..ea0bea6b04 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetBaseConnector.java
@@ -22,6 +22,7 @@ public abstract class TabsheetBaseConnector extends
public static final String ATTRIBUTE_TAB_CAPTION = "caption";
public static final String ATTRIBUTE_TAB_ICON = "icon";
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
getWidget().client = client;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java
index 51a7801f91..a4de77c495 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/TabsheetConnector.java
@@ -68,10 +68,12 @@ public class TabsheetConnector extends TabsheetBaseConnector implements
return (VTabsheet) super.getWidget();
}
+ @Override
public void updateCaption(ComponentConnector component) {
/* Tabsheet does not render its children's captions */
}
+ @Override
public void layout() {
VTabsheet tabsheet = getWidget();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java
index 844708a892..bbbffefa40 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/tabsheet/VTabsheet.java
@@ -212,14 +212,17 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
tabCaption.setWidth(tabCaption.getRequiredWidth() + "px");
}
+ @Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
return addDomHandler(handler, FocusEvent.getType());
}
+ @Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return addDomHandler(handler, BlurEvent.getType());
}
+ @Override
public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) {
return addDomHandler(handler, KeyDownEvent.getType());
}
@@ -356,6 +359,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
setElement(el);
}
+ @Override
public void onClose(VCloseEvent event) {
Tab tab = event.getTab();
if (!tab.isEnabledOnServer()) {
@@ -391,6 +395,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
return t;
}
+ @Override
public void onClick(ClickEvent event) {
TabCaption caption = (TabCaption) event.getSource();
Element targetElement = event.getNativeEvent().getEventTarget()
@@ -1031,6 +1036,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
style.setProperty("whiteSpace", "normal");
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
style.setProperty("whiteSpace", "");
}
@@ -1115,6 +1121,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
}
}
+ @Override
public void onBlur(BlurEvent event) {
if (focusedTab != null && event.getSource() instanceof Tab) {
focusedTab = null;
@@ -1124,6 +1131,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
}
}
+ @Override
public void onFocus(FocusEvent event) {
if (focusedTab == null && event.getSource() instanceof Tab) {
focusedTab = (Tab) event.getSource();
@@ -1133,6 +1141,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
}
}
+ @Override
public void focus() {
tb.getTab(activeTabIndex).focus();
}
@@ -1141,6 +1150,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
tb.getTab(activeTabIndex).blur();
}
+ @Override
public void onKeyDown(KeyDownEvent event) {
if (event.getSource() instanceof Tab) {
int keycode = event.getNativeEvent().getKeyCode();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java b/src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java
index aede1ef002..c0f6deab53 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/textarea/VTextArea.java
@@ -57,6 +57,7 @@ public class VTextArea extends VTextField {
public void onBrowserEvent(Event event) {
if (getMaxLength() >= 0 && event.getTypeInt() == Event.ONKEYUP) {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
if (getText().length() > getMaxLength()) {
setText(getText().substring(0, getMaxLength()));
diff --git a/src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java
index 04bf029b05..bf4c921109 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/textfield/TextFieldConnector.java
@@ -25,6 +25,7 @@ public class TextFieldConnector extends AbstractFieldConnector implements
return (AbstractTextFieldState) super.getState();
}
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
// Save details
getWidget().client = client;
@@ -83,6 +84,7 @@ public class TextFieldConnector extends AbstractFieldConnector implements
* Gecko defers setting the text so we need to defer the selection.
*/
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
getWidget().setSelectionRange(pos, length);
}
@@ -95,6 +97,7 @@ public class TextFieldConnector extends AbstractFieldConnector implements
return (VTextField) super.getWidget();
}
+ @Override
public void onBeforeShortcutAction(Event e) {
getWidget().valueChange(false);
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java b/src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java
index bd55c26a24..4050f1bafc 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/textfield/VTextField.java
@@ -274,6 +274,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler,
return maxLength;
}
+ @Override
public void onChange(ChangeEvent event) {
valueChange(false);
}
@@ -349,6 +350,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler,
}
}
+ @Override
public void onFocus(FocusEvent event) {
addStyleDependentName(CLASSNAME_FOCUS);
if (prompting) {
@@ -362,6 +364,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler,
}
}
+ @Override
public void onBlur(BlurEvent event) {
removeStyleDependentName(CLASSNAME_FOCUS);
focusedTextField = null;
@@ -387,6 +390,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler,
setWidth(columns + "em");
}
+ @Override
public void onKeyDown(KeyDownEvent event) {
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
valueChange(false);
diff --git a/src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java b/src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java
index 3f96a61bf3..2543838f89 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/tree/TreeConnector.java
@@ -33,6 +33,7 @@ public class TreeConnector extends AbstractComponentConnector implements
protected final Map<TreeNode, TooltipInfo> tooltipMap = new HashMap<TreeNode, TooltipInfo>();
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
return;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java b/src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java
index 7462160bad..2c3b105cc0 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/tree/VTree.java
@@ -126,6 +126,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
public VLazyExecutor iconLoaded = new VLazyExecutor(50,
new ScheduledCommand() {
+ @Override
public void execute() {
Util.notifyParentOfSizeChange(VTree.this, true);
}
@@ -145,6 +146,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
*/
sinkEvents(Event.ONCONTEXTMENU);
addDomHandler(new ContextMenuHandler() {
+ @Override
public void onContextMenu(ContextMenuEvent event) {
handleBodyContextMenu(event);
}
@@ -333,6 +335,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
}
if (newKey != null) {
validate(new VAcceptCallback() {
+ @Override
public void accepted(VDragEvent event) {
VerticalDropLocation curDetail = (VerticalDropLocation) event
.getDropDetails().get("detail");
@@ -376,6 +379,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
return ConnectorMap.get(client).getConnector(VTree.this);
}
+ @Override
public ApplicationConnection getApplicationConnection() {
return client;
}
@@ -419,6 +423,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
*/
private void sendSelectionToServer() {
Command command = new Command() {
+ @Override
public void execute() {
client.updateVariable(paintableId, "selected",
selectedIds.toArray(new String[selectedIds.size()]),
@@ -586,6 +591,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
}
ScheduledCommand command = new ScheduledCommand() {
+ @Override
public void execute() {
if (multiSelectMode == MULTISELECT_MODE_SIMPLE
@@ -776,6 +782,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
final MouseEventDetails details = MouseEventDetailsBuilder
.buildMouseEventDetails(evt);
ScheduledCommand command = new ScheduledCommand() {
+ @Override
public void execute() {
// Determine if we should send the event immediately to the
// server. We do not want to send the event if there is a
@@ -919,6 +926,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
return nodes;
}
+ @Override
public Action[] getActions() {
if (actionKeys == null) {
return new Action[] {};
@@ -935,10 +943,12 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
return actions;
}
+ @Override
public ApplicationConnection getClient() {
return client;
}
+ @Override
public String getPaintableId() {
return paintableId;
}
@@ -1076,6 +1086,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
}
+ @Override
public VDropHandler getDropHandler() {
return dropHandler;
}
@@ -1485,6 +1496,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
node.scrollIntoView();
} else {
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
focusedNode.scrollIntoView();
}
@@ -1510,6 +1522,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
* com.google.gwt.event.dom.client.FocusHandler#onFocus(com.google.gwt.event
* .dom.client.FocusEvent)
*/
+ @Override
public void onFocus(FocusEvent event) {
treeHasFocus = true;
// If no node has focus, focus the first item in the tree
@@ -1529,6 +1542,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
* com.google.gwt.event.dom.client.BlurHandler#onBlur(com.google.gwt.event
* .dom.client.BlurEvent)
*/
+ @Override
public void onBlur(BlurEvent event) {
treeHasFocus = false;
if (focusedNode != null) {
@@ -1543,6 +1557,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
* com.google.gwt.event.dom.client.KeyPressHandler#onKeyPress(com.google
* .gwt.event.dom.client.KeyPressEvent)
*/
+ @Override
public void onKeyPress(KeyPressEvent event) {
NativeEvent nativeEvent = event.getNativeEvent();
int keyCode = nativeEvent.getKeyCode();
@@ -1566,6 +1581,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
* com.google.gwt.event.dom.client.KeyDownHandler#onKeyDown(com.google.gwt
* .event.dom.client.KeyDownEvent)
*/
+ @Override
public void onKeyDown(KeyDownEvent event) {
if (handleKeyNavigation(event.getNativeEvent().getKeyCode(),
event.isControlKeyDown() || event.isMetaKeyDown(),
@@ -1946,6 +1962,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
* com.vaadin.terminal.gwt.client.ui.SubPartAware#getSubPartElement(java
* .lang.String)
*/
+ @Override
public Element getSubPartElement(String subPart) {
if ("fe".equals(subPart)) {
if (BrowserInfo.get().isOpera() && focusedNode != null) {
@@ -1999,6 +2016,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
* com.vaadin.terminal.gwt.client.ui.SubPartAware#getSubPartName(com.google
* .gwt.user.client.Element)
*/
+ @Override
public String getSubPartName(Element subElement) {
// Supported identifiers:
//
@@ -2049,6 +2067,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
return locator;
}
+ @Override
public Action[] getActions() {
if (bodyActionKeys == null) {
return new Action[] {};
@@ -2064,10 +2083,12 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
return actions;
}
+ @Override
public ApplicationConnection getClient() {
return client;
}
+ @Override
public String getPaintableId() {
return paintableId;
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java b/src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java
index 9a8e0e9ce1..91e1fe2a3d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/treetable/VTreeTable.java
@@ -257,6 +257,7 @@ public class VTreeTable extends VScrollTable {
// widths.
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ @Override
public void execute() {
if (showRowHeaders) {
setCellWidth(0, tHead.getHeaderCell(0).getWidth());
diff --git a/src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java
index 6d5cd3320e..55234f5425 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java
@@ -45,6 +45,7 @@ public class TwinColSelectConnector extends OptionGroupBaseConnector implements
return (VTwinColSelect) super.getWidget();
}
+ @Override
public void layoutVertically() {
if (isUndefinedHeight()) {
getWidget().clearInternalHeights();
@@ -53,6 +54,7 @@ public class TwinColSelectConnector extends OptionGroupBaseConnector implements
}
}
+ @Override
public void layoutHorizontally() {
if (isUndefinedWidth()) {
getWidget().clearInternalWidths();
diff --git a/src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java
index 8f1ea09b8f..1a2deae3b4 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/twincolselect/VTwinColSelect.java
@@ -409,6 +409,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
remove.setTabIndex(tabIndex);
}
+ @Override
public void focus() {
options.setFocus(true);
}
@@ -430,6 +431,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
* com.google.gwt.event.dom.client.KeyDownHandler#onKeyDown(com.google.gwt
* .event.dom.client.KeyDownEvent)
*/
+ @Override
public void onKeyDown(KeyDownEvent event) {
int keycode = event.getNativeKeyCode();
@@ -493,6 +495,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
* com.google.gwt.event.dom.client.MouseDownHandler#onMouseDown(com.google
* .gwt.event.dom.client.MouseDownEvent)
*/
+ @Override
public void onMouseDown(MouseDownEvent event) {
// Ensure that items are deselected when selecting
// from a different source. See #3699 for details.
@@ -515,6 +518,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
* com.google.gwt.event.dom.client.DoubleClickHandler#onDoubleClick(com.
* google.gwt.event.dom.client.DoubleClickEvent)
*/
+ @Override
public void onDoubleClick(DoubleClickEvent event) {
if (event.getSource() == options) {
addItem();
@@ -539,6 +543,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
private static final String SUBPART_ADD_BUTTON = "add";
private static final String SUBPART_REMOVE_BUTTON = "remove";
+ @Override
public Element getSubPartElement(String subPart) {
if (SUBPART_OPTION_SELECT.equals(subPart)) {
return options.getElement();
@@ -568,6 +573,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
return null;
}
+ @Override
public String getSubPartName(Element subElement) {
if (optionsCaption != null
&& optionsCaption.getElement().isOrHasChild(subElement)) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java
index 153d99229b..c17c81c2dd 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/upload/UploadConnector.java
@@ -16,6 +16,7 @@ import com.vaadin.ui.Upload;
public class UploadConnector extends AbstractComponentConnector implements
Paintable {
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
if (!isRealUpdate(uidl)) {
return;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java b/src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java
index ac475ce5a5..5cf2f2fe25 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/upload/VUpload.java
@@ -115,6 +115,7 @@ public class VUpload extends SimplePanel {
panel.add(fu);
submitButton = new VButton();
submitButton.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
if (immediate) {
// fire click on upload (eg. focused button and hit space)
@@ -203,6 +204,7 @@ public class VUpload extends SimplePanel {
private void onSubmitComplete() {
/* Needs to be run dereferred to avoid various browser issues. */
Scheduler.get().scheduleDeferred(new Command() {
+ @Override
public void execute() {
if (submitted) {
if (client != null) {
diff --git a/src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java b/src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java
index 3946a026c6..7bdc7cc066 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/window/VWindow.java
@@ -146,6 +146,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
private VLazyExecutor delayedContentsSizeUpdater = new VLazyExecutor(200,
new ScheduledCommand() {
+ @Override
public void execute() {
updateContentsSize();
}
@@ -266,6 +267,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
orderingDefered = true;
Scheduler.get().scheduleFinally(new Command() {
+ @Override
public void execute() {
doServerSideOrdering();
VNotification.bringNotificationsToFront();
@@ -279,6 +281,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
VWindow[] array = windowOrder.toArray(new VWindow[windowOrder.size()]);
Arrays.sort(array, new Comparator<VWindow>() {
+ @Override
public int compare(VWindow o1, VWindow o2) {
/*
* Order by modality, then by bringtofront sequence.
@@ -851,10 +854,12 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
true);
}
+ @Override
public ShortcutActionHandler getShortcutActionHandler() {
return shortcutHandler;
}
+ @Override
public void onScroll(ScrollEvent event) {
client.updateVariable(id, "scrollTop",
contentPanel.getScrollPosition(), false);
@@ -863,6 +868,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
}
+ @Override
public void onKeyDown(KeyDownEvent event) {
if (shortcutHandler != null) {
shortcutHandler
@@ -871,18 +877,21 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
}
}
+ @Override
public void onBlur(BlurEvent event) {
if (client.hasEventListeners(this, EventId.BLUR)) {
client.updateVariable(id, EventId.BLUR, "", true);
}
}
+ @Override
public void onFocus(FocusEvent event) {
if (client.hasEventListeners(this, EventId.FOCUS)) {
client.updateVariable(id, EventId.FOCUS, "", true);
}
}
+ @Override
public void focus() {
contentPanel.focus();
}
diff --git a/src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java b/src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java
index 83de039f0b..16cdaa9cad 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/window/WindowConnector.java
@@ -72,6 +72,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
lm.unregisterDependency(this, window.footer);
}
+ @Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
getWidget().id = getConnectorId();
getWidget().client = client;
@@ -180,10 +181,12 @@ public class WindowConnector extends AbstractComponentContainerConnector
}
}
+ @Override
public void updateCaption(ComponentConnector component) {
// NOP, window has own caption, layout caption not rendered
}
+ @Override
public void onBeforeShortcutAction(Event e) {
// NOP, nothing to update just avoid workaround ( causes excess
// blur/focus )
@@ -210,6 +213,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
getWidget().contentPanel.setWidget(newChildWidget);
}
+ @Override
public void layout() {
LayoutManager lm = getLayoutManager();
VWindow window = getWidget();
@@ -274,6 +278,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
}
}
+ @Override
public void postLayout() {
minWidthChecked = false;
VWindow window = getWidget();
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
index acfc926d68..3fcd61036f 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
@@ -175,6 +175,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
this.portlet = portlet;
}
+ @Override
public void criticalNotification(WrappedRequest request,
WrappedResponse response, String cap, String msg,
String details, String outOfSyncURL) throws IOException {
@@ -213,6 +214,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
private DeploymentConfiguration deploymentConfiguration = new DeploymentConfiguration() {
+ @Override
public String getConfiguredWidgetset(WrappedRequest request) {
String widgetset = getApplicationOrSystemProperty(
@@ -233,6 +235,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
return widgetset;
}
+ @Override
public String getConfiguredTheme(WrappedRequest request) {
// is the default theme defined by the portal?
@@ -247,12 +250,14 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
return themeName;
}
+ @Override
public String getApplicationOrSystemProperty(String propertyName,
String defaultValue) {
return AbstractApplicationPortlet.this
.getApplicationOrSystemProperty(propertyName, defaultValue);
}
+ @Override
public boolean isStandalone(WrappedRequest request) {
return false;
}
@@ -272,6 +277,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
* be a VAADIN directory). Does not end with a slash (/).
*/
+ @Override
public String getStaticFileLocation(WrappedRequest request) {
String staticFileLocation = WrappedPortletRequest.cast(request)
.getPortalProperty(
@@ -289,6 +295,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
}
}
+ @Override
public ClassLoader getClassLoader() {
// Custom class loaders not currently supported in portlets (see
// #8574)
@@ -1067,6 +1074,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
this.throwable = throwable;
}
+ @Override
public Throwable getThrowable() {
return throwable;
}
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
index f61f40dccc..27768ed8b5 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
@@ -74,6 +74,7 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
this.servlet = servlet;
}
+ @Override
public void criticalNotification(WrappedRequest request,
WrappedResponse response, String cap, String msg,
String details, String outOfSyncURL) throws IOException {
@@ -97,6 +98,7 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
private DeploymentConfiguration deploymentConfiguration = new DeploymentConfiguration() {
+ @Override
public String getStaticFileLocation(WrappedRequest request) {
HttpServletRequest servletRequest = WrappedHttpServletRequest
.cast(request);
@@ -104,27 +106,32 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
.getStaticFilesLocation(servletRequest);
}
+ @Override
public String getConfiguredWidgetset(WrappedRequest request) {
return getApplicationOrSystemProperty(
AbstractApplicationServlet.PARAMETER_WIDGETSET,
AbstractApplicationServlet.DEFAULT_WIDGETSET);
}
+ @Override
public String getConfiguredTheme(WrappedRequest request) {
// Use the default
return AbstractApplicationServlet.getDefaultTheme();
}
+ @Override
public String getApplicationOrSystemProperty(String propertyName,
String defaultValue) {
return AbstractApplicationServlet.this
.getApplicationOrSystemProperty(propertyName, defaultValue);
}
+ @Override
public boolean isStandalone(WrappedRequest request) {
return true;
}
+ @Override
public ClassLoader getClassLoader() {
try {
return AbstractApplicationServlet.this.getClassLoader();
@@ -1706,6 +1713,7 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
this.throwable = throwable;
}
+ @Override
public Throwable getThrowable() {
return throwable;
}
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
index 996ada924d..76dab13502 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
@@ -1164,6 +1164,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* defined by super class is already loaded.
*/
Collections.sort(newConnectorTypes, new Comparator<Class<?>>() {
+ @Override
public int compare(Class<?> o1, Class<?> o2) {
// TODO optimize using Class.isAssignableFrom?
return hierarchyDepth(o1) - hierarchyDepth(o2);
@@ -1307,6 +1308,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
// before children start calling e.g. updateCaption
Collections.sort(paintables, new Comparator<Component>() {
+ @Override
public int compare(Component c1, Component c2) {
int depth1 = 0;
while (c1.getParent() != null) {
@@ -1393,14 +1395,17 @@ public abstract class AbstractCommunicationManager implements Serializable {
private static class NullIterator<E> implements Iterator<E> {
+ @Override
public boolean hasNext() {
return false;
}
+ @Override
public E next() {
return null;
}
+ @Override
public void remove() {
}
@@ -1874,6 +1879,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
this.throwable = throwable;
}
+ @Override
public Throwable getThrowable() {
return throwable;
}
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java b/src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java
index 43b175cc36..d3474e736e 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java
@@ -15,10 +15,12 @@ abstract class AbstractStreamingEvent implements StreamingEvent {
private final long contentLength;
private final long bytesReceived;
+ @Override
public final String getFileName() {
return filename;
}
+ @Override
public final String getMimeType() {
return type;
}
@@ -31,10 +33,12 @@ abstract class AbstractStreamingEvent implements StreamingEvent {
this.bytesReceived = bytesReceived;
}
+ @Override
public final long getContentLength() {
return contentLength;
}
+ @Override
public final long getBytesReceived() {
return bytesReceived;
}
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java b/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java
index bf4ea860a8..73d45f62b1 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java
@@ -45,12 +45,14 @@ public abstract class AbstractWebApplicationContext implements
private long lastRequestTime = -1;
+ @Override
public void addTransactionListener(TransactionListener listener) {
if (listener != null) {
listeners.add(listener);
}
}
+ @Override
public void removeTransactionListener(TransactionListener listener) {
listeners.remove(listener);
}
@@ -119,6 +121,7 @@ public abstract class AbstractWebApplicationContext implements
/**
* @see javax.servlet.http.HttpSessionBindingListener#valueBound(HttpSessionBindingEvent)
*/
+ @Override
public void valueBound(HttpSessionBindingEvent arg0) {
// We are not interested in bindings
}
@@ -126,6 +129,7 @@ public abstract class AbstractWebApplicationContext implements
/**
* @see javax.servlet.http.HttpSessionBindingListener#valueUnbound(HttpSessionBindingEvent)
*/
+ @Override
public void valueUnbound(HttpSessionBindingEvent event) {
// If we are going to be unbound from the session, the session must be
// closing
@@ -160,6 +164,7 @@ public abstract class AbstractWebApplicationContext implements
return browser;
}
+ @Override
public Collection<Application> getApplications() {
return Collections.unmodifiableCollection(applications);
}
@@ -169,6 +174,7 @@ public abstract class AbstractWebApplicationContext implements
applicationToAjaxAppMgrMap.remove(application);
}
+ @Override
public String generateApplicationResourceURL(ApplicationResource resource,
String mapKey) {
@@ -197,6 +203,7 @@ public abstract class AbstractWebApplicationContext implements
}
}
+ @Override
public boolean isApplicationResourceURL(URL context, String relativeUri) {
// If the relative uri is null, we are ready
if (relativeUri == null) {
@@ -214,6 +221,7 @@ public abstract class AbstractWebApplicationContext implements
return (prefix.equals("APP"));
}
+ @Override
public String getURLKey(URL context, String relativeUri) {
final int index = relativeUri.indexOf('/');
final int next = relativeUri.indexOf('/', index + 1);
diff --git a/src/com/vaadin/terminal/gwt/server/ApplicationResourceHandler.java b/src/com/vaadin/terminal/gwt/server/ApplicationResourceHandler.java
index 7cf66d5fcf..42726c933e 100644
--- a/src/com/vaadin/terminal/gwt/server/ApplicationResourceHandler.java
+++ b/src/com/vaadin/terminal/gwt/server/ApplicationResourceHandler.java
@@ -21,6 +21,7 @@ public class ApplicationResourceHandler implements RequestHandler {
private static final Pattern APP_RESOURCE_PATTERN = Pattern
.compile("^/?APP/(\\d+)/.*");
+ @Override
public boolean handleRequest(Application application,
WrappedRequest request, WrappedResponse response)
throws IOException {
diff --git a/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java b/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java
index d32fa325f4..4038b8f1bc 100644
--- a/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java
+++ b/src/com/vaadin/terminal/gwt/server/BootstrapHandler.java
@@ -113,6 +113,7 @@ public abstract class BootstrapHandler implements RequestHandler {
}
+ @Override
public boolean handleRequest(Application application,
WrappedRequest request, WrappedResponse response)
throws IOException {
diff --git a/src/com/vaadin/terminal/gwt/server/ChangeVariablesErrorEvent.java b/src/com/vaadin/terminal/gwt/server/ChangeVariablesErrorEvent.java
index b6576dce9f..8f0c80332f 100644
--- a/src/com/vaadin/terminal/gwt/server/ChangeVariablesErrorEvent.java
+++ b/src/com/vaadin/terminal/gwt/server/ChangeVariablesErrorEvent.java
@@ -23,6 +23,7 @@ public class ChangeVariablesErrorEvent implements ComponentErrorEvent {
this.variableChanges = variableChanges;
}
+ @Override
public Throwable getThrowable() {
return throwable;
}
diff --git a/src/com/vaadin/terminal/gwt/server/ClientConnector.java b/src/com/vaadin/terminal/gwt/server/ClientConnector.java
index ca1ad349c1..1e9166261f 100644
--- a/src/com/vaadin/terminal/gwt/server/ClientConnector.java
+++ b/src/com/vaadin/terminal/gwt/server/ClientConnector.java
@@ -48,6 +48,7 @@ public interface ClientConnector extends Connector, RpcTarget {
*/
public Class<? extends SharedState> getStateType();
+ @Override
public ClientConnector getParent();
/**
diff --git a/src/com/vaadin/terminal/gwt/server/ClientMethodInvocation.java b/src/com/vaadin/terminal/gwt/server/ClientMethodInvocation.java
index ad9484723b..64ea288665 100644
--- a/src/com/vaadin/terminal/gwt/server/ClientMethodInvocation.java
+++ b/src/com/vaadin/terminal/gwt/server/ClientMethodInvocation.java
@@ -61,6 +61,7 @@ public class ClientMethodInvocation implements Serializable,
return sequenceNumber;
}
+ @Override
public int compareTo(ClientMethodInvocation o) {
if (null == o) {
return 0;
diff --git a/src/com/vaadin/terminal/gwt/server/DragAndDropService.java b/src/com/vaadin/terminal/gwt/server/DragAndDropService.java
index 8e0346f6af..949fd4b757 100644
--- a/src/com/vaadin/terminal/gwt/server/DragAndDropService.java
+++ b/src/com/vaadin/terminal/gwt/server/DragAndDropService.java
@@ -44,6 +44,7 @@ public class DragAndDropService implements VariableOwner, ClientConnector {
this.manager = manager;
}
+ @Override
public void changeVariables(Object source, Map<String, Object> variables) {
Object owner = variables.get("dhowner");
@@ -182,10 +183,12 @@ public class DragAndDropService implements VariableOwner, ClientConnector {
return transferable;
}
+ @Override
public boolean isEnabled() {
return isConnectorEnabled();
}
+ @Override
public boolean isImmediate() {
return true;
}
@@ -219,68 +222,82 @@ public class DragAndDropService implements VariableOwner, ClientConnector {
return false;
}
+ @Override
public SharedState getState() {
// TODO Auto-generated method stub
return null;
}
+ @Override
public String getConnectorId() {
return VDragAndDropManager.DD_SERVICE;
}
+ @Override
public boolean isConnectorEnabled() {
// Drag'n'drop can't be disabled
return true;
}
+ @Override
public List<ClientMethodInvocation> retrievePendingRpcCalls() {
return null;
}
+ @Override
public RpcManager getRpcManager(Class<?> rpcInterface) {
// TODO Use rpc for drag'n'drop
return null;
}
+ @Override
public Class<? extends SharedState> getStateType() {
return SharedState.class;
}
+ @Override
public void requestRepaint() {
// TODO Auto-generated method stub
}
+ @Override
public ClientConnector getParent() {
// TODO Auto-generated method stub
return null;
}
+ @Override
public void requestRepaintAll() {
// TODO Auto-generated method stub
}
+ @Override
public void setParent(ClientConnector parent) {
// TODO Auto-generated method stub
}
+ @Override
public void attach() {
// TODO Auto-generated method stub
}
+ @Override
public void detach() {
// TODO Auto-generated method stub
}
+ @Override
public Collection<Extension> getExtensions() {
// TODO Auto-generated method stub
return Collections.emptySet();
}
+ @Override
public void removeExtension(Extension extension) {
// TODO Auto-generated method stub
}
@@ -289,6 +306,7 @@ public class DragAndDropService implements VariableOwner, ClientConnector {
return Logger.getLogger(DragAndDropService.class.getName());
}
+ @Override
public Root getRoot() {
return null;
}
diff --git a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
index 15b5ced703..aed1c2c0e3 100644
--- a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
+++ b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
@@ -103,6 +103,7 @@ public class JsonPaintTarget implements PaintTarget {
cacheEnabled = cachingRequired;
}
+ @Override
public void startTag(String tagName) throws PaintException {
startTag(tagName, false);
}
@@ -159,6 +160,7 @@ public class JsonPaintTarget implements PaintTarget {
* if the paint operation failed.
*/
+ @Override
public void endTag(String tagName) throws PaintException {
// In case of null data output nothing:
if (tagName == null) {
@@ -326,14 +328,17 @@ public class JsonPaintTarget implements PaintTarget {
*
*/
+ @Override
public void addText(String str) throws PaintException {
tag.addData("\"" + escapeJSON(str) + "\"");
}
+ @Override
public void addAttribute(String name, boolean value) throws PaintException {
tag.addAttribute("\"" + name + "\":" + (value ? "true" : "false"));
}
+ @Override
@SuppressWarnings("deprecation")
public void addAttribute(String name, Resource value) throws PaintException {
@@ -363,22 +368,27 @@ public class JsonPaintTarget implements PaintTarget {
}
+ @Override
public void addAttribute(String name, int value) throws PaintException {
tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
}
+ @Override
public void addAttribute(String name, long value) throws PaintException {
tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
}
+ @Override
public void addAttribute(String name, float value) throws PaintException {
tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
}
+ @Override
public void addAttribute(String name, double value) throws PaintException {
tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
}
+ @Override
public void addAttribute(String name, String value) throws PaintException {
// In case of null data output nothing:
if ((value == null) || (name == null)) {
@@ -398,12 +408,14 @@ public class JsonPaintTarget implements PaintTarget {
}
+ @Override
public void addAttribute(String name, Component value)
throws PaintException {
final String id = value.getConnectorId();
addAttribute(name, id);
}
+ @Override
public void addAttribute(String name, Map<?, ?> value)
throws PaintException {
@@ -441,6 +453,7 @@ public class JsonPaintTarget implements PaintTarget {
tag.addAttribute(sb.toString());
}
+ @Override
public void addAttribute(String name, Object[] values) {
// In case of null data output nothing:
if ((values == null) || (name == null)) {
@@ -461,41 +474,49 @@ public class JsonPaintTarget implements PaintTarget {
tag.addAttribute(buf.toString());
}
+ @Override
public void addVariable(VariableOwner owner, String name, String value)
throws PaintException {
tag.addVariable(new StringVariable(owner, name, escapeJSON(value)));
}
+ @Override
public void addVariable(VariableOwner owner, String name, Component value)
throws PaintException {
tag.addVariable(new StringVariable(owner, name, value.getConnectorId()));
}
+ @Override
public void addVariable(VariableOwner owner, String name, int value)
throws PaintException {
tag.addVariable(new IntVariable(owner, name, value));
}
+ @Override
public void addVariable(VariableOwner owner, String name, long value)
throws PaintException {
tag.addVariable(new LongVariable(owner, name, value));
}
+ @Override
public void addVariable(VariableOwner owner, String name, float value)
throws PaintException {
tag.addVariable(new FloatVariable(owner, name, value));
}
+ @Override
public void addVariable(VariableOwner owner, String name, double value)
throws PaintException {
tag.addVariable(new DoubleVariable(owner, name, value));
}
+ @Override
public void addVariable(VariableOwner owner, String name, boolean value)
throws PaintException {
tag.addVariable(new BooleanVariable(owner, name, value));
}
+ @Override
public void addVariable(VariableOwner owner, String name, String[] value)
throws PaintException {
tag.addVariable(new ArrayVariable(owner, name, value));
@@ -515,6 +536,7 @@ public class JsonPaintTarget implements PaintTarget {
* if the paint operation failed.
*/
+ @Override
public void addUploadStreamVariable(VariableOwner owner, String name)
throws PaintException {
startTag("uploadstream");
@@ -535,6 +557,7 @@ public class JsonPaintTarget implements PaintTarget {
* if the paint operation failed.
*/
+ @Override
public void addSection(String sectionTagName, String sectionData)
throws PaintException {
tag.addData("{\"" + sectionTagName + "\":\"" + escapeJSON(sectionData)
@@ -550,6 +573,7 @@ public class JsonPaintTarget implements PaintTarget {
* if the paint operation failed.
*/
+ @Override
public void addUIDL(String xml) throws PaintException {
// Ensure that the target is open
@@ -584,6 +608,7 @@ public class JsonPaintTarget implements PaintTarget {
* String)
*/
+ @Override
public void addXMLSection(String sectionTagName, String sectionData,
String namespace) throws PaintException {
@@ -649,6 +674,7 @@ public class JsonPaintTarget implements PaintTarget {
* .Paintable, java.lang.String)
*/
+ @Override
public PaintStatus startPaintable(Component connector, String tagName)
throws PaintException {
boolean topLevelPaintable = openPaintables.isEmpty();
@@ -675,6 +701,7 @@ public class JsonPaintTarget implements PaintTarget {
return PaintStatus.PAINTING;
}
+ @Override
public void endPaintable(Component paintable) throws PaintException {
getLogger().fine(
"endPaintable for " + paintable.getClass().getName() + "@"
@@ -698,6 +725,7 @@ public class JsonPaintTarget implements PaintTarget {
* @see com.vaadin.terminal.PaintTarget#addCharacterData(java.lang.String )
*/
+ @Override
public void addCharacterData(String text) throws PaintException {
if (text != null) {
tag.addData(text);
@@ -967,6 +995,7 @@ public class JsonPaintTarget implements PaintTarget {
return usedResources;
}
+ @Override
@SuppressWarnings("unchecked")
public String getTag(ClientConnector clientConnector) {
Class<? extends ClientConnector> clientConnectorClass = clientConnector
@@ -989,6 +1018,7 @@ public class JsonPaintTarget implements PaintTarget {
return usedClientConnectors;
}
+ @Override
public void addVariable(VariableOwner owner, String name,
StreamVariable value) throws PaintException {
String url = manager.getStreamVariableTargetUrl(
@@ -1005,6 +1035,7 @@ public class JsonPaintTarget implements PaintTarget {
* @see com.vaadin.terminal.PaintTarget#isFullRepaint()
*/
+ @Override
public boolean isFullRepaint() {
return !cacheEnabled;
}
diff --git a/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java b/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java
index de4f918b75..b888ad8e2d 100644
--- a/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java
+++ b/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java
@@ -63,6 +63,7 @@ public class PortletApplicationContext2 extends AbstractWebApplicationContext {
private final Map<String, String> sharedParameterActionNameMap = new HashMap<String, String>();
private final Map<String, String> sharedParameterActionValueMap = new HashMap<String, String>();
+ @Override
public File getBaseDirectory() {
String resultPath = session.getPortletContext().getRealPath("/");
if (resultPath != null) {
diff --git a/src/com/vaadin/terminal/gwt/server/RestrictedRenderResponse.java b/src/com/vaadin/terminal/gwt/server/RestrictedRenderResponse.java
index c4ef3fc8e5..9fdffbf9a5 100644
--- a/src/com/vaadin/terminal/gwt/server/RestrictedRenderResponse.java
+++ b/src/com/vaadin/terminal/gwt/server/RestrictedRenderResponse.java
@@ -34,112 +34,137 @@ class RestrictedRenderResponse implements RenderResponse, Serializable {
this.response = response;
}
+ @Override
public void addProperty(String key, String value) {
response.addProperty(key, value);
}
+ @Override
public PortletURL createActionURL() {
return response.createActionURL();
}
+ @Override
public PortletURL createRenderURL() {
return response.createRenderURL();
}
+ @Override
public String encodeURL(String path) {
return response.encodeURL(path);
}
+ @Override
public void flushBuffer() throws IOException {
// NOP
// TODO throw?
}
+ @Override
public int getBufferSize() {
return response.getBufferSize();
}
+ @Override
public String getCharacterEncoding() {
return response.getCharacterEncoding();
}
+ @Override
public String getContentType() {
return response.getContentType();
}
+ @Override
public Locale getLocale() {
return response.getLocale();
}
+ @Override
public String getNamespace() {
return response.getNamespace();
}
+ @Override
public OutputStream getPortletOutputStream() throws IOException {
// write forbidden
return null;
}
+ @Override
public PrintWriter getWriter() throws IOException {
// write forbidden
return null;
}
+ @Override
public boolean isCommitted() {
return response.isCommitted();
}
+ @Override
public void reset() {
// NOP
// TODO throw?
}
+ @Override
public void resetBuffer() {
// NOP
// TODO throw?
}
+ @Override
public void setBufferSize(int size) {
// NOP
// TODO throw?
}
+ @Override
public void setContentType(String type) {
// NOP
// TODO throw?
}
+ @Override
public void setProperty(String key, String value) {
response.setProperty(key, value);
}
+ @Override
public void setTitle(String title) {
response.setTitle(title);
}
+ @Override
public void setNextPossiblePortletModes(Collection<PortletMode> portletModes) {
// NOP
// TODO throw?
}
+ @Override
public ResourceURL createResourceURL() {
return response.createResourceURL();
}
+ @Override
public CacheControl getCacheControl() {
return response.getCacheControl();
}
+ @Override
public void addProperty(Cookie cookie) {
// NOP
// TODO throw?
}
+ @Override
public void addProperty(String key, Element element) {
// NOP
// TODO throw?
}
+ @Override
public Element createElement(String tagName) throws DOMException {
// NOP
return null;
diff --git a/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java b/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java
index d9931a9610..0e40ceb8fa 100644
--- a/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java
+++ b/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java
@@ -111,6 +111,7 @@ public class ServerRpcManager<T> implements RpcManager {
* @param invocation
* method invocation to perform
*/
+ @Override
public void applyInvocation(ServerRpcMethodInvocation invocation)
throws RpcInvocationException {
Method method = invocation.getMethod();
diff --git a/src/com/vaadin/terminal/gwt/server/StreamingErrorEventImpl.java b/src/com/vaadin/terminal/gwt/server/StreamingErrorEventImpl.java
index 7418867fc8..6ab3df2789 100644
--- a/src/com/vaadin/terminal/gwt/server/StreamingErrorEventImpl.java
+++ b/src/com/vaadin/terminal/gwt/server/StreamingErrorEventImpl.java
@@ -17,6 +17,7 @@ final class StreamingErrorEventImpl extends AbstractStreamingEvent implements
this.exception = exception;
}
+ @Override
public final Exception getException() {
return exception;
}
diff --git a/src/com/vaadin/terminal/gwt/server/StreamingStartEventImpl.java b/src/com/vaadin/terminal/gwt/server/StreamingStartEventImpl.java
index 6a7844abd0..274d05e111 100644
--- a/src/com/vaadin/terminal/gwt/server/StreamingStartEventImpl.java
+++ b/src/com/vaadin/terminal/gwt/server/StreamingStartEventImpl.java
@@ -16,6 +16,7 @@ final class StreamingStartEventImpl extends AbstractStreamingEvent implements
super(filename, type, contentLength, 0);
}
+ @Override
public void disposeStreamVariable() {
disposed = true;
}
diff --git a/src/com/vaadin/terminal/gwt/server/UnsupportedBrowserHandler.java b/src/com/vaadin/terminal/gwt/server/UnsupportedBrowserHandler.java
index 334a7acf8d..5248af595e 100644
--- a/src/com/vaadin/terminal/gwt/server/UnsupportedBrowserHandler.java
+++ b/src/com/vaadin/terminal/gwt/server/UnsupportedBrowserHandler.java
@@ -26,6 +26,7 @@ public class UnsupportedBrowserHandler implements RequestHandler {
/** Cookie used to ignore browser checks */
public static final String FORCE_LOAD_COOKIE = "vaadinforceload=1";
+ @Override
public boolean handleRequest(Application application,
WrappedRequest request, WrappedResponse response)
throws IOException {
diff --git a/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java b/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java
index 8a1ea792f5..36c08b2ed9 100644
--- a/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java
+++ b/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java
@@ -111,6 +111,7 @@ public class WebApplicationContext extends AbstractWebApplicationContext {
*
* @see com.vaadin.service.ApplicationContext#getBaseDirectory()
*/
+ @Override
public File getBaseDirectory() {
final String realPath = ApplicationServlet.getResourcePath(
session.getServletContext(), "/");
diff --git a/src/com/vaadin/terminal/gwt/server/WebBrowser.java b/src/com/vaadin/terminal/gwt/server/WebBrowser.java
index 38b5409594..14b2ab1d89 100644
--- a/src/com/vaadin/terminal/gwt/server/WebBrowser.java
+++ b/src/com/vaadin/terminal/gwt/server/WebBrowser.java
@@ -42,6 +42,7 @@ public class WebBrowser implements Terminal {
* @return Always returns null.
*/
+ @Override
public String getDefaultTheme() {
return null;
}
@@ -52,6 +53,7 @@ public class WebBrowser implements Terminal {
* @see com.vaadin.terminal.Terminal#getScreenHeight()
*/
+ @Override
public int getScreenHeight() {
return screenHeight;
}
@@ -62,6 +64,7 @@ public class WebBrowser implements Terminal {
* @see com.vaadin.terminal.Terminal#getScreenWidth()
*/
+ @Override
public int getScreenWidth() {
return screenWidth;
}
diff --git a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java b/src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java
index 0774a79990..cf58f398af 100644
--- a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java
+++ b/src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java
@@ -41,18 +41,22 @@ public class WrappedHttpServletRequest extends HttpServletRequestWrapper
this.deploymentConfiguration = deploymentConfiguration;
}
+ @Override
public String getRequestPathInfo() {
return getPathInfo();
}
+ @Override
public int getSessionMaxInactiveInterval() {
return getSession().getMaxInactiveInterval();
}
+ @Override
public Object getSessionAttribute(String name) {
return getSession().getAttribute(name);
}
+ @Override
public void setSessionAttribute(String name, Object attribute) {
getSession().setAttribute(name, attribute);
}
@@ -66,20 +70,25 @@ public class WrappedHttpServletRequest extends HttpServletRequestWrapper
return this;
}
+ @Override
public DeploymentConfiguration getDeploymentConfiguration() {
return deploymentConfiguration;
}
+ @Override
public BrowserDetails getBrowserDetails() {
return new BrowserDetails() {
+ @Override
public String getUriFragment() {
return null;
}
+ @Override
public String getWindowName() {
return null;
}
+ @Override
public WebBrowser getWebBrowser() {
WebApplicationContext context = (WebApplicationContext) Application
.getCurrent().getContext();
diff --git a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java b/src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java
index 14a391b21f..32b2f352a8 100644
--- a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java
+++ b/src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java
@@ -47,6 +47,7 @@ public class WrappedHttpServletResponse extends HttpServletResponseWrapper
return this;
}
+ @Override
public void setCacheTime(long milliseconds) {
doSetCacheTime(this, milliseconds);
}
@@ -67,6 +68,7 @@ public class WrappedHttpServletResponse extends HttpServletResponseWrapper
}
}
+ @Override
public DeploymentConfiguration getDeploymentConfiguration() {
return deploymentConfiguration;
}
diff --git a/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java b/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
index 85d8d5c69c..44858b3e10 100644
--- a/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
+++ b/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
@@ -46,10 +46,12 @@ public class WrappedPortletRequest implements WrappedRequest {
this.deploymentConfiguration = deploymentConfiguration;
}
+ @Override
public Object getAttribute(String name) {
return request.getAttribute(name);
}
+ @Override
public int getContentLength() {
try {
return ((ClientDataRequest) request).getContentLength();
@@ -59,6 +61,7 @@ public class WrappedPortletRequest implements WrappedRequest {
}
}
+ @Override
public InputStream getInputStream() throws IOException {
try {
return ((ClientDataRequest) request).getPortletInputStream();
@@ -68,18 +71,22 @@ public class WrappedPortletRequest implements WrappedRequest {
}
}
+ @Override
public String getParameter(String name) {
return request.getParameter(name);
}
+ @Override
public Map<String, String[]> getParameterMap() {
return request.getParameterMap();
}
+ @Override
public void setAttribute(String name, Object o) {
request.setAttribute(name, o);
}
+ @Override
public String getRequestPathInfo() {
if (request instanceof ResourceRequest) {
return ((ResourceRequest) request).getResourceID();
@@ -88,14 +95,17 @@ public class WrappedPortletRequest implements WrappedRequest {
}
}
+ @Override
public int getSessionMaxInactiveInterval() {
return request.getPortletSession().getMaxInactiveInterval();
}
+ @Override
public Object getSessionAttribute(String name) {
return request.getPortletSession().getAttribute(name);
}
+ @Override
public void setSessionAttribute(String name, Object attribute) {
request.getPortletSession().setAttribute(name, attribute);
}
@@ -109,6 +119,7 @@ public class WrappedPortletRequest implements WrappedRequest {
return request;
}
+ @Override
public String getContentType() {
try {
return ((ResourceRequest) request).getContentType();
@@ -118,16 +129,20 @@ public class WrappedPortletRequest implements WrappedRequest {
}
}
+ @Override
public BrowserDetails getBrowserDetails() {
return new BrowserDetails() {
+ @Override
public String getUriFragment() {
return null;
}
+ @Override
public String getWindowName() {
return null;
}
+ @Override
public WebBrowser getWebBrowser() {
PortletApplicationContext2 context = (PortletApplicationContext2) Application
.getCurrent().getContext();
@@ -136,18 +151,22 @@ public class WrappedPortletRequest implements WrappedRequest {
};
}
+ @Override
public Locale getLocale() {
return request.getLocale();
}
+ @Override
public String getRemoteAddr() {
return null;
}
+ @Override
public boolean isSecure() {
return request.isSecure();
}
+ @Override
public String getHeader(String string) {
return null;
}
@@ -164,6 +183,7 @@ public class WrappedPortletRequest implements WrappedRequest {
return request.getPortalContext().getProperty(name);
}
+ @Override
public DeploymentConfiguration getDeploymentConfiguration() {
return deploymentConfiguration;
}
diff --git a/src/com/vaadin/terminal/gwt/server/WrappedPortletResponse.java b/src/com/vaadin/terminal/gwt/server/WrappedPortletResponse.java
index 8824396352..f7ecf26f3c 100644
--- a/src/com/vaadin/terminal/gwt/server/WrappedPortletResponse.java
+++ b/src/com/vaadin/terminal/gwt/server/WrappedPortletResponse.java
@@ -53,6 +53,7 @@ public class WrappedPortletResponse implements WrappedResponse {
this.deploymentConfiguration = deploymentConfiguration;
}
+ @Override
public OutputStream getOutputStream() throws IOException {
return ((MimeResponse) response).getPortletOutputStream();
}
@@ -66,36 +67,44 @@ public class WrappedPortletResponse implements WrappedResponse {
return response;
}
+ @Override
public void setContentType(String type) {
((MimeResponse) response).setContentType(type);
}
+ @Override
public PrintWriter getWriter() throws IOException {
return ((MimeResponse) response).getWriter();
}
+ @Override
public void setStatus(int responseStatus) {
response.setProperty(ResourceResponse.HTTP_STATUS_CODE,
Integer.toString(responseStatus));
}
+ @Override
public void setHeader(String name, String value) {
response.setProperty(name, value);
}
+ @Override
public void setDateHeader(String name, long timestamp) {
response.setProperty(name, HTTP_DATE_FORMAT.format(new Date(timestamp)));
}
+ @Override
public void setCacheTime(long milliseconds) {
WrappedHttpServletResponse.doSetCacheTime(this, milliseconds);
}
+ @Override
public void sendError(int errorCode, String message) throws IOException {
setStatus(errorCode);
getWriter().write(message);
}
+ @Override
public DeploymentConfiguration getDeploymentConfiguration() {
return deploymentConfiguration;
}
diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java b/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java
index 1c5b736492..6ee30183c1 100644
--- a/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java
+++ b/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java
@@ -49,6 +49,7 @@ public class ClassPathExplorer {
* File filter that only accepts directories.
*/
private final static FileFilter DIRECTORIES_ONLY = new FileFilter() {
+ @Override
public boolean accept(File f) {
if (f.exists() && f.isDirectory()) {
return true;