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,
*
* 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 Collection getRpcImplementations(
String rpcInterfaceId) {
if (null == rpcImplementations) {
@@ -148,6 +152,7 @@ public abstract class AbstractConnector implements ServerConnector,
return (Collection) 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 getChildren() {
if (children == null) {
return Collections.emptyList();
@@ -232,10 +244,12 @@ public abstract class AbstractConnector implements ServerConnector,
return children;
}
+ @Override
public void setChildren(List 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() {
+ @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 callbackNames = new HashSet();
private Map> rpcInterfaces = new HashMap>();
+ @Override
public Set getCallbackNames() {
return callbackNames;
}
@@ -26,6 +27,7 @@ public class JavaScriptComponentState extends ComponentState implements
this.callbackNames = callbackNames;
}
+ @Override
public Map> 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 {
}
}
+ @Override
public void onClose(CloseEvent 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 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[] 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 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 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 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() {
+ @Override
public void onClose(CloseEvent 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 historyChangeHandler = new ValueChangeHandler() {
+ @Override
public void onValueChange(ValueChangeEvent 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() {
+ @Override
public void onClose(CloseEvent 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 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 iterator() {
return visibleCells.iterator();
}
@@ -4111,6 +4127,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
renderedRows.add(actualIx, row);
}
+ @Override
public Iterator iterator() {
return renderedRows.iterator();
}
@@ -4704,6 +4721,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
childWidgets.add(w);
}
+ @Override
public Iterator 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 tooltipMap = new HashMap();
+ @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() {
+ @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>() {
+ @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() {
+ @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 implements Iterator {
+ @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 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 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 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 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 sharedParameterActionNameMap = new HashMap();
private final Map sharedParameterActionValueMap = new HashMap();
+ @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 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 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 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;
diff --git a/src/com/vaadin/tools/WidgetsetCompiler.java b/src/com/vaadin/tools/WidgetsetCompiler.java
index 987fd8f734..ecc1946e60 100644
--- a/src/com/vaadin/tools/WidgetsetCompiler.java
+++ b/src/com/vaadin/tools/WidgetsetCompiler.java
@@ -51,6 +51,7 @@ public class WidgetsetCompiler {
// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6316197)
Runnable runCompiler = new Runnable() {
+ @Override
public void run() {
try {
// GWTCompiler.main(args);
diff --git a/src/com/vaadin/ui/AbsoluteLayout.java b/src/com/vaadin/ui/AbsoluteLayout.java
index 7d8c402fc9..3fe5eb055a 100644
--- a/src/com/vaadin/ui/AbsoluteLayout.java
+++ b/src/com/vaadin/ui/AbsoluteLayout.java
@@ -30,6 +30,7 @@ public class AbsoluteLayout extends AbstractLayout implements
private AbsoluteLayoutServerRpc rpc = new AbsoluteLayoutServerRpc() {
+ @Override
public void layoutClick(MouseEventDetails mouseDetails,
Connector clickedConnector) {
fireEvent(LayoutClickEvent.createEvent(AbsoluteLayout.this,
@@ -56,6 +57,7 @@ public class AbsoluteLayout extends AbstractLayout implements
* Gets an iterator for going through all components enclosed in the
* absolute layout.
*/
+ @Override
public Iterator getComponentIterator() {
return componentToCoordinates.keySet().iterator();
}
@@ -66,6 +68,7 @@ public class AbsoluteLayout extends AbstractLayout implements
*
* @return the number of contained components
*/
+ @Override
public int getComponentCount() {
return componentToCoordinates.size();
}
@@ -74,6 +77,7 @@ public class AbsoluteLayout extends AbstractLayout implements
* Replaces one component with another one. The new component inherits the
* old components position.
*/
+ @Override
public void replaceComponent(Component oldComponent, Component newComponent) {
ComponentPosition position = getPosition(oldComponent);
removeComponent(oldComponent);
@@ -612,12 +616,14 @@ public class AbsoluteLayout extends AbstractLayout implements
}
+ @Override
public void addListener(LayoutClickListener listener) {
addListener(LayoutClickEventHandler.LAYOUT_CLICK_EVENT_IDENTIFIER,
LayoutClickEvent.class, listener,
LayoutClickListener.clickMethod);
}
+ @Override
public void removeListener(LayoutClickListener listener) {
removeListener(LayoutClickEventHandler.LAYOUT_CLICK_EVENT_IDENTIFIER,
LayoutClickEvent.class, listener);
diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java
index ba0e5db89c..ead7dee91c 100644
--- a/src/com/vaadin/ui/AbstractComponent.java
+++ b/src/com/vaadin/ui/AbstractComponent.java
@@ -101,10 +101,12 @@ public abstract class AbstractComponent extends AbstractClientConnector
/* Get/Set component properties */
+ @Override
public void setDebugId(String id) {
getState().setDebugId(id);
}
+ @Override
public String getDebugId() {
return getState().getDebugId();
}
@@ -141,6 +143,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Gets the component's style. Don't add a JavaDoc comment here, we use the
* default documentation from implemented interface.
*/
+ @Override
public String getStyleName() {
String s = "";
if (getState().getStyles() != null) {
@@ -159,6 +162,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Sets the component's style. Don't add a JavaDoc comment here, we use the
* default documentation from implemented interface.
*/
+ @Override
public void setStyleName(String style) {
if (style == null || "".equals(style)) {
getState().setStyles(null);
@@ -179,6 +183,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
requestRepaint();
}
+ @Override
public void addStyleName(String style) {
if (style == null || "".equals(style)) {
return;
@@ -201,6 +206,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
}
}
+ @Override
public void removeStyleName(String style) {
if (getState().getStyles() != null) {
String[] styleParts = style.split(" +");
@@ -217,6 +223,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Get's the component's caption. Don't add a JavaDoc comment here, we use
* the default documentation from implemented interface.
*/
+ @Override
public String getCaption() {
return getState().getCaption();
}
@@ -229,6 +236,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* @param caption
* the new caption String
for the component.
*/
+ @Override
public void setCaption(String caption) {
getState().setCaption(caption);
requestRepaint();
@@ -238,6 +246,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Don't add a JavaDoc comment here, we use the default documentation from
* implemented interface.
*/
+ @Override
public Locale getLocale() {
if (locale != null) {
return locale;
@@ -283,6 +292,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Gets the component's icon resource. Don't add a JavaDoc comment here, we
* use the default documentation from implemented interface.
*/
+ @Override
public Resource getIcon() {
ResourceReference ref = ((ResourceReference) getState().getIcon());
if (ref == null) {
@@ -299,6 +309,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* @param icon
* the icon to be shown with the component's caption.
*/
+ @Override
public void setIcon(Resource icon) {
if (icon == null) {
getState().setIcon(null);
@@ -313,6 +324,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.ui.Component#isEnabled()
*/
+ @Override
public boolean isEnabled() {
return getState().isEnabled();
}
@@ -322,6 +334,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.ui.Component#setEnabled(boolean)
*/
+ @Override
public void setEnabled(boolean enabled) {
if (getState().isEnabled() != enabled) {
getState().setEnabled(enabled);
@@ -377,6 +390,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.ui.Component#isVisible()
*/
+ @Override
public boolean isVisible() {
return getState().isVisible();
}
@@ -386,6 +400,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.ui.Component#setVisible(boolean)
*/
+ @Override
public void setVisible(boolean visible) {
if (getState().isVisible() == visible) {
return;
@@ -566,6 +581,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Tests if the component is in read-only mode. Don't add a JavaDoc comment
* here, we use the default documentation from implemented interface.
*/
+ @Override
public boolean isReadOnly() {
return getState().isReadOnly();
}
@@ -574,6 +590,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Sets the component's read-only mode. Don't add a JavaDoc comment here, we
* use the default documentation from implemented interface.
*/
+ @Override
public void setReadOnly(boolean readOnly) {
getState().setReadOnly(readOnly);
requestRepaint();
@@ -704,6 +721,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.ui.Component#updateState()
*/
+ @Override
public void updateState() {
// TODO This logic should be on the client side and the state should
// simply be a data object with "width" and "height".
@@ -863,6 +881,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* @param method
* the activation method.
*/
+ @Override
public void addListener(Class> eventType, Object target, Method method) {
if (eventRouter == null) {
eventRouter = new EventRouter();
@@ -904,6 +923,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* @param methodName
* the name of the activation method.
*/
+ @Override
public void addListener(Class> eventType, Object target, String methodName) {
if (eventRouter == null) {
eventRouter = new EventRouter();
@@ -929,6 +949,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* the target object that has registered to listen to events of
* type eventType
with one or more methods.
*/
+ @Override
public void removeListener(Class> eventType, Object target) {
if (eventRouter != null) {
eventRouter.removeListener(eventType, target);
@@ -954,6 +975,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* the method owned by target
that's registered to
* listen to events of type eventType
.
*/
+ @Override
public void removeListener(Class> eventType, Object target, Method method) {
if (eventRouter != null) {
eventRouter.removeListener(eventType, target, method);
@@ -988,6 +1010,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* the name of the method owned by target
that's
* registered to listen to events of type eventType
.
*/
+ @Override
public void removeListener(Class> eventType, Object target,
String methodName) {
if (eventRouter != null) {
@@ -1032,6 +1055,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* Don't add a JavaDoc comment here, we use the default documentation from
* implemented interface.
*/
+ @Override
public void addListener(Component.Listener listener) {
addListener(Component.Event.class, listener, COMPONENT_EVENT_METHOD);
}
@@ -1041,6 +1065,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* JavaDoc comment here, we use the default documentation from implemented
* interface.
*/
+ @Override
public void removeListener(Component.Listener listener) {
removeListener(Component.Event.class, listener, COMPONENT_EVENT_METHOD);
}
@@ -1090,6 +1115,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#getHeight()
*/
+ @Override
public float getHeight() {
return height;
}
@@ -1099,6 +1125,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#getHeightUnits()
*/
+ @Override
public Unit getHeightUnits() {
return heightUnit;
}
@@ -1108,6 +1135,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#getWidth()
*/
+ @Override
public float getWidth() {
return width;
}
@@ -1117,6 +1145,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#getWidthUnits()
*/
+ @Override
public Unit getWidthUnits() {
return widthUnit;
}
@@ -1126,6 +1155,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#setHeight(float, Unit)
*/
+ @Override
public void setHeight(float height, Unit unit) {
if (unit == null) {
throw new IllegalArgumentException("Unit can not be null");
@@ -1141,6 +1171,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#setSizeFull()
*/
+ @Override
public void setSizeFull() {
setWidth(100, Unit.PERCENTAGE);
setHeight(100, Unit.PERCENTAGE);
@@ -1151,6 +1182,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#setSizeUndefined()
*/
+ @Override
public void setSizeUndefined() {
setWidth(-1, Unit.PIXELS);
setHeight(-1, Unit.PIXELS);
@@ -1161,6 +1193,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#setWidth(float, Unit)
*/
+ @Override
public void setWidth(float width, Unit unit) {
if (unit == null) {
throw new IllegalArgumentException("Unit can not be null");
@@ -1176,6 +1209,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#setWidth(java.lang.String)
*/
+ @Override
public void setWidth(String width) {
Size size = parseStringSize(width);
if (size != null) {
@@ -1190,6 +1224,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*
* @see com.vaadin.terminal.Sizeable#setHeight(java.lang.String)
*/
+ @Override
public void setHeight(String height) {
Size size = parseStringSize(height);
if (size != null) {
diff --git a/src/com/vaadin/ui/AbstractComponentContainer.java b/src/com/vaadin/ui/AbstractComponentContainer.java
index 8ef458b704..bc27242bb8 100644
--- a/src/com/vaadin/ui/AbstractComponentContainer.java
+++ b/src/com/vaadin/ui/AbstractComponentContainer.java
@@ -38,6 +38,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
* Removes all components from the container. This should probably be
* re-implemented in extending classes for a more powerful implementation.
*/
+ @Override
public void removeAllComponents() {
final LinkedList l = new LinkedList();
@@ -57,6 +58,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
* add a JavaDoc comment here, we use the default documentation from
* implemented interface.
*/
+ @Override
public void moveComponentsFrom(ComponentContainer source) {
final LinkedList components = new LinkedList();
for (final Iterator i = source.getComponentIterator(); i
@@ -93,24 +95,28 @@ public abstract class AbstractComponentContainer extends AbstractComponent
}
/* documented in interface */
+ @Override
public void addListener(ComponentAttachListener listener) {
addListener(ComponentContainer.ComponentAttachEvent.class, listener,
COMPONENT_ATTACHED_METHOD);
}
/* documented in interface */
+ @Override
public void addListener(ComponentDetachListener listener) {
addListener(ComponentContainer.ComponentDetachEvent.class, listener,
COMPONENT_DETACHED_METHOD);
}
/* documented in interface */
+ @Override
public void removeListener(ComponentAttachListener listener) {
removeListener(ComponentContainer.ComponentAttachEvent.class, listener,
COMPONENT_ATTACHED_METHOD);
}
/* documented in interface */
+ @Override
public void removeListener(ComponentDetachListener listener) {
removeListener(ComponentContainer.ComponentDetachEvent.class, listener,
COMPONENT_DETACHED_METHOD);
@@ -147,6 +153,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
*
* @see com.vaadin.ui.ComponentContainer#addComponent(Component)
*/
+ @Override
public void addComponent(Component c) {
if (c instanceof ComponentContainer) {
// Make sure we're not adding the component inside it's own content
@@ -177,6 +184,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
*
* @see com.vaadin.ui.ComponentContainer#removeComponent(Component)
*/
+ @Override
public void removeComponent(Component c) {
if (c.getParent() == this) {
c.setParent(null);
@@ -325,6 +333,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
true);
}
+ @Override
public Iterator iterator() {
return getComponentIterator();
}
@@ -335,6 +344,7 @@ public abstract class AbstractComponentContainer extends AbstractComponent
* @see
* com.vaadin.ui.HasComponents#isComponentVisible(com.vaadin.ui.Component)
*/
+ @Override
public boolean isComponentVisible(Component childComponent) {
return true;
}
diff --git a/src/com/vaadin/ui/AbstractField.java b/src/com/vaadin/ui/AbstractField.java
index ce62fb43ed..c9181ba3f1 100644
--- a/src/com/vaadin/ui/AbstractField.java
+++ b/src/com/vaadin/ui/AbstractField.java
@@ -178,6 +178,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @return the type of the Field
*/
+ @Override
public abstract Class extends T> getType();
/**
@@ -206,6 +207,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @see com.vaadin.data.BufferedValidatable#isInvalidCommitted()
*/
+ @Override
public boolean isInvalidCommitted() {
return invalidCommitted;
}
@@ -215,6 +217,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @see com.vaadin.data.BufferedValidatable#setInvalidCommitted(boolean)
*/
+ @Override
public void setInvalidCommitted(boolean isCommitted) {
invalidCommitted = isCommitted;
}
@@ -223,6 +226,7 @@ public abstract class AbstractField extends AbstractComponent implements
* Saves the current value to the data source Don't add a JavaDoc comment
* here, we use the default documentation from the implemented interface.
*/
+ @Override
public void commit() throws Buffered.SourceException, InvalidValueException {
if (dataSource != null && !dataSource.isReadOnly()) {
if ((isInvalidCommitted() || isValid())) {
@@ -271,6 +275,7 @@ public abstract class AbstractField extends AbstractComponent implements
* Updates the value from the data source. Don't add a JavaDoc comment here,
* we use the default documentation from the implemented interface.
*/
+ @Override
public void discard() throws Buffered.SourceException {
if (dataSource != null) {
@@ -343,6 +348,7 @@ public abstract class AbstractField extends AbstractComponent implements
* comment here, we use the default documentation from the implemented
* interface.
*/
+ @Override
public boolean isModified() {
return getState().isModified();
}
@@ -356,6 +362,7 @@ public abstract class AbstractField extends AbstractComponent implements
* Tests if the field is in write-through mode. Don't add a JavaDoc comment
* here, we use the default documentation from the implemented interface.
*/
+ @Override
public boolean isWriteThrough() {
return writeThroughMode;
}
@@ -381,6 +388,7 @@ public abstract class AbstractField extends AbstractComponent implements
* setReadThrough(true), setWriteThrough(true) equals
* setBuffered(false)
*/
+ @Override
@Deprecated
public void setWriteThrough(boolean writeThrough)
throws Buffered.SourceException, InvalidValueException {
@@ -397,6 +405,7 @@ public abstract class AbstractField extends AbstractComponent implements
* Tests if the field is in read-through mode. Don't add a JavaDoc comment
* here, we use the default documentation from the implemented interface.
*/
+ @Override
public boolean isReadThrough() {
return readThroughMode;
}
@@ -420,6 +429,7 @@ public abstract class AbstractField extends AbstractComponent implements
* setReadThrough(true), setWriteThrough(true) equals
* setBuffered(false)
*/
+ @Override
@Deprecated
public void setReadThrough(boolean readThrough)
throws Buffered.SourceException {
@@ -452,6 +462,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @param buffered
* true if buffered mode should be turned on, false otherwise
*/
+ @Override
public void setBuffered(boolean buffered) {
setReadThrough(!buffered);
setWriteThrough(!buffered);
@@ -464,6 +475,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @return true if buffered mode is on, false otherwise
*/
+ @Override
public boolean isBuffered() {
return !isReadThrough() && !isWriteThrough();
}
@@ -517,6 +529,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @return the current value of the field.
*/
+ @Override
public T getValue() {
return getFieldValue();
}
@@ -528,6 +541,7 @@ public abstract class AbstractField extends AbstractComponent implements
* the New value of the field.
* @throws Property.ReadOnlyException
*/
+ @Override
public void setValue(Object newFieldValue)
throws Property.ReadOnlyException, Converter.ConversionException {
// This check is needed as long as setValue accepts Object instead of T
@@ -644,6 +658,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @return the current data source as a Property, or null
if
* none defined.
*/
+ @Override
public Property getPropertyDataSource() {
return dataSource;
}
@@ -686,6 +701,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @param newDataSource
* the new data source Property.
*/
+ @Override
public void setPropertyDataSource(Property newDataSource) {
// Saves the old value
@@ -863,6 +879,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @param validator
* the new validator to be added.
*/
+ @Override
public void addValidator(Validator validator) {
if (validators == null) {
validators = new LinkedList();
@@ -877,6 +894,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @return the Unmodifiable collection that holds all validators for the
* field.
*/
+ @Override
public Collection getValidators() {
if (validators == null || validators.isEmpty()) {
return null;
@@ -890,6 +908,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @param validator
* the validator to remove.
*/
+ @Override
public void removeValidator(Validator validator) {
if (validators != null) {
validators.remove(validator);
@@ -919,6 +938,7 @@ public abstract class AbstractField extends AbstractComponent implements
* current value is valid or if the field is empty and not required,
* false
otherwise.
*/
+ @Override
public boolean isValid() {
try {
@@ -943,6 +963,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @see com.vaadin.data.Validatable#validate()
*/
+ @Override
public void validate() throws Validator.InvalidValueException {
if (isRequired() && isEmpty()) {
@@ -1014,6 +1035,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @return true iff the invalid values are allowed.
* @see com.vaadin.data.Validatable#isInvalidAllowed()
*/
+ @Override
public boolean isInvalidAllowed() {
return invalidAllowed;
}
@@ -1031,6 +1053,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @see com.vaadin.data.Validatable#setInvalidAllowed(boolean)
*/
+ @Override
public void setInvalidAllowed(boolean invalidAllowed)
throws UnsupportedOperationException {
this.invalidAllowed = invalidAllowed;
@@ -1103,6 +1126,7 @@ public abstract class AbstractField extends AbstractComponent implements
* Adds a value change listener for the field. Don't add a JavaDoc comment
* here, we use the default documentation from the implemented interface.
*/
+ @Override
public void addListener(Property.ValueChangeListener listener) {
addListener(AbstractField.ValueChangeEvent.class, listener,
VALUE_CHANGE_METHOD);
@@ -1113,6 +1137,7 @@ public abstract class AbstractField extends AbstractComponent implements
* comment here, we use the default documentation from the implemented
* interface.
*/
+ @Override
public void removeListener(Property.ValueChangeListener listener) {
removeListener(AbstractField.ValueChangeEvent.class, listener,
VALUE_CHANGE_METHOD);
@@ -1152,6 +1177,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @see Property.ReadOnlyStatusChangeListener
*/
+ @Override
public void readOnlyStatusChange(Property.ReadOnlyStatusChangeEvent event) {
getState().setPropertyReadOnly(event.getProperty().isReadOnly());
requestRepaint();
@@ -1184,6 +1210,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @return the Source of the event.
*/
+ @Override
public Property getProperty() {
return (Property) getSource();
}
@@ -1194,6 +1221,7 @@ public abstract class AbstractField extends AbstractComponent implements
* JavaDoc comment here, we use the default documentation from the
* implemented interface.
*/
+ @Override
public void addListener(Property.ReadOnlyStatusChangeListener listener) {
addListener(Property.ReadOnlyStatusChangeEvent.class, listener,
READ_ONLY_STATUS_CHANGE_METHOD);
@@ -1204,6 +1232,7 @@ public abstract class AbstractField extends AbstractComponent implements
* JavaDoc comment here, we use the default documentation from the
* implemented interface.
*/
+ @Override
public void removeListener(Property.ReadOnlyStatusChangeListener listener) {
removeListener(Property.ReadOnlyStatusChangeEvent.class, listener,
READ_ONLY_STATUS_CHANGE_METHOD);
@@ -1228,6 +1257,7 @@ public abstract class AbstractField extends AbstractComponent implements
* the value change event telling the data source contents have
* changed.
*/
+ @Override
public void valueChange(Property.ValueChangeEvent event) {
if (isReadThrough()) {
if (committingValueToDataSource) {
@@ -1271,6 +1301,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @see com.vaadin.ui.Component.Focusable#getTabIndex()
*/
+ @Override
public int getTabIndex() {
return getState().getTabIndex();
}
@@ -1280,6 +1311,7 @@ public abstract class AbstractField extends AbstractComponent implements
*
* @see com.vaadin.ui.Component.Focusable#setTabIndex(int)
*/
+ @Override
public void setTabIndex(int tabIndex) {
getState().setTabIndex(tabIndex);
requestRepaint();
@@ -1362,6 +1394,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @return true
if the field is required, otherwise
* false
.
*/
+ @Override
public boolean isRequired() {
return getState().isRequired();
}
@@ -1381,6 +1414,7 @@ public abstract class AbstractField extends AbstractComponent implements
* @param required
* Is the field required.
*/
+ @Override
public void setRequired(boolean required) {
getState().setRequired(required);
requestRepaint();
@@ -1395,11 +1429,13 @@ public abstract class AbstractField extends AbstractComponent implements
* @param requiredMessage
* Message to be shown when this field is required, but empty.
*/
+ @Override
public void setRequiredError(String requiredMessage) {
requiredError = requiredMessage;
requestRepaint();
}
+ @Override
public String getRequiredError() {
return requiredError;
}
diff --git a/src/com/vaadin/ui/AbstractLayout.java b/src/com/vaadin/ui/AbstractLayout.java
index 4876b40265..d31c855659 100644
--- a/src/com/vaadin/ui/AbstractLayout.java
+++ b/src/com/vaadin/ui/AbstractLayout.java
@@ -32,6 +32,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
*
* @see com.vaadin.ui.Layout#setMargin(boolean)
*/
+ @Override
public void setMargin(boolean enabled) {
margins.setMargins(enabled);
getState().setMarginsBitmask(margins.getBitMask());
@@ -43,6 +44,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
*
* @see com.vaadin.ui.Layout.MarginHandler#getMargin()
*/
+ @Override
public MarginInfo getMargin() {
return margins;
}
@@ -52,6 +54,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
*
* @see com.vaadin.ui.Layout.MarginHandler#setMargin(MarginInfo)
*/
+ @Override
public void setMargin(MarginInfo marginInfo) {
margins.setMargins(marginInfo);
getState().setMarginsBitmask(margins.getBitMask());
@@ -63,6 +66,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
*
* @see com.vaadin.ui.Layout#setMargin(boolean, boolean, boolean, boolean)
*/
+ @Override
public void setMargin(boolean topEnabled, boolean rightEnabled,
boolean bottomEnabled, boolean leftEnabled) {
margins.setMargins(topEnabled, rightEnabled, bottomEnabled, leftEnabled);
diff --git a/src/com/vaadin/ui/AbstractOrderedLayout.java b/src/com/vaadin/ui/AbstractOrderedLayout.java
index 2cd6fc2a9a..7230e6534b 100644
--- a/src/com/vaadin/ui/AbstractOrderedLayout.java
+++ b/src/com/vaadin/ui/AbstractOrderedLayout.java
@@ -24,6 +24,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
private AbstractOrderedLayoutServerRpc rpc = new AbstractOrderedLayoutServerRpc() {
+ @Override
public void layoutClick(MouseEventDetails mouseDetails,
Connector clickedConnector) {
fireEvent(LayoutClickEvent.createEvent(AbstractOrderedLayout.this,
@@ -157,6 +158,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
*
* @return the Iterator of the components inside the container.
*/
+ @Override
public Iterator getComponentIterator() {
return components.iterator();
}
@@ -167,11 +169,13 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
*
* @return the number of contained components
*/
+ @Override
public int getComponentCount() {
return components.size();
}
/* Documented in superclass */
+ @Override
public void replaceComponent(Component oldComponent, Component newComponent) {
// Gets the locations
@@ -220,12 +224,14 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
* @see com.vaadin.ui.Layout.AlignmentHandler#setComponentAlignment(com
* .vaadin.ui.Component, int, int)
*/
+ @Override
public void setComponentAlignment(Component childComponent,
int horizontalAlignment, int verticalAlignment) {
Alignment a = new Alignment(horizontalAlignment + verticalAlignment);
setComponentAlignment(childComponent, a);
}
+ @Override
public void setComponentAlignment(Component childComponent,
Alignment alignment) {
ChildComponentData childData = getState().getChildData().get(
@@ -247,6 +253,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
* @see com.vaadin.ui.Layout.AlignmentHandler#getComponentAlignment(com
* .vaadin.ui.Component)
*/
+ @Override
public Alignment getComponentAlignment(Component childComponent) {
ChildComponentData childData = getState().getChildData().get(
childComponent);
@@ -263,6 +270,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
*
* @see com.vaadin.ui.Layout.SpacingHandler#setSpacing(boolean)
*/
+ @Override
public void setSpacing(boolean spacing) {
getState().setSpacing(spacing);
requestRepaint();
@@ -273,6 +281,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
*
* @see com.vaadin.ui.Layout.SpacingHandler#isSpacing()
*/
+ @Override
public boolean isSpacing() {
return getState().isSpacing();
}
@@ -334,12 +343,14 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
return childData.getExpandRatio();
}
+ @Override
public void addListener(LayoutClickListener listener) {
addListener(LayoutClickEventHandler.LAYOUT_CLICK_EVENT_IDENTIFIER,
LayoutClickEvent.class, listener,
LayoutClickListener.clickMethod);
}
+ @Override
public void removeListener(LayoutClickListener listener) {
removeListener(LayoutClickEventHandler.LAYOUT_CLICK_EVENT_IDENTIFIER,
LayoutClickEvent.class, listener);
diff --git a/src/com/vaadin/ui/AbstractSelect.java b/src/com/vaadin/ui/AbstractSelect.java
index 6a927251af..399e08800e 100644
--- a/src/com/vaadin/ui/AbstractSelect.java
+++ b/src/com/vaadin/ui/AbstractSelect.java
@@ -320,6 +320,7 @@ public abstract class AbstractSelect extends AbstractField