From d1ea3a5a49cc9605a4e13581a978628c1e3de9fd Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 12 Apr 2012 13:36:29 +0300 Subject: [PATCH] Javadoc updates for @Connect --- .../client/ui/UnknownComponentConnector.java | 2 +- .../widgetsetutils/WidgetMapGenerator.java | 25 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/UnknownComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ui/UnknownComponentConnector.java index 54e6043f1b..f570990398 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/UnknownComponentConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/UnknownComponentConnector.java @@ -27,7 +27,7 @@ public class UnknownComponentConnector extends AbstractComponentConnector .setCaption( "Widgetset does not contain implementation for " + getWidget().serverClassName - + ". Check its component connector's @Component mapping, widgetsets " + + ". Check its component connector's @Connect mapping, widgetsets " + "GWT module description file and re-compile your" + " widgetset. In case you have downloaded a vaadin" + " add-on package, you might want to refer to " diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java index dff6f17667..6d4289b173 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java @@ -26,16 +26,16 @@ import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.ui.Connect; import com.vaadin.terminal.gwt.client.ui.Connect.LoadStyle; -import com.vaadin.terminal.gwt.client.ui.root.RootConnector; import com.vaadin.terminal.gwt.client.ui.UnknownComponentConnector; +import com.vaadin.terminal.gwt.client.ui.root.RootConnector; import com.vaadin.terminal.gwt.server.ClientConnector; /** * WidgetMapGenerator's are GWT generator to build WidgetMapImpl dynamically - * based on {@link Connect} annotations available in workspace. By modifying - * the generator it is possible to do some fine tuning for the generated - * widgetset (aka client side engine). The components to be included in the - * client side engine can modified be overriding {@link #getUsedConnectors()}. + * based on {@link Connect} annotations available in workspace. By modifying the + * generator it is possible to do some fine tuning for the generated widgetset + * (aka client side engine). The components to be included in the client side + * engine can modified be overriding {@link #getUsedConnectors()}. *

* The generator also decides how the client side component implementations are * loaded to the browser. The default generator is @@ -43,11 +43,11 @@ import com.vaadin.terminal.gwt.server.ClientConnector; * that loads all widget implementation on application initialization. This has * been the only option until Vaadin 6.4. *

- * This generator uses the loadStyle hints from the {@link Connect} - * annotations. Depending on the {@link LoadStyle} used, the widget may be - * included in the initially loaded JavaScript, loaded when the application has - * started and there is no communication to server or lazy loaded when the - * implementation is absolutely needed. + * This generator uses the loadStyle hints from the {@link Connect} annotations. + * Depending on the {@link LoadStyle} used, the widget may be included in the + * initially loaded JavaScript, loaded when the application has started and + * there is no communication to server or lazy loaded when the implementation is + * absolutely needed. *

* The GWT module description file of the widgetset ( * ...Widgetset.gwt.xml) can be used to define the @@ -155,14 +155,13 @@ public class WidgetMapGenerator extends Generator { .iterator(); while (iter.hasNext()) { Class connectorClass = iter.next(); - Connect annotation = connectorClass - .getAnnotation(Connect.class); + Connect annotation = connectorClass.getAnnotation(Connect.class); if (!ClientConnector.class.isAssignableFrom(annotation.value())) { logger.log( Type.WARN, "Connector class " + annotation.value().getName() - + " defined in @Component annotation is not a subclass of " + + " defined in @Connect annotation is not a subclass of " + ClientConnector.class.getName() + ". The component connector " + connectorClass.getName() -- 2.39.5