]> source.dussan.org Git - vaadin-framework.git/commitdiff
Organized imports and formatted all java files
authorArtur Signell <artur@vaadin.com>
Tue, 28 Feb 2012 16:35:24 +0000 (18:35 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 28 Feb 2012 16:35:24 +0000 (18:35 +0200)
82 files changed:
src/com/vaadin/data/fieldgroup/BeanFieldGroup.java
src/com/vaadin/data/validator/DoubleRangeValidator.java
src/com/vaadin/data/validator/RegexpValidator.java
src/com/vaadin/external/json/JSONException.java
src/com/vaadin/external/json/JSONStringer.java
src/com/vaadin/terminal/gwt/client/BrowserInfo.java
src/com/vaadin/terminal/gwt/client/ComponentLocator.java
src/com/vaadin/terminal/gwt/client/EventHelper.java
src/com/vaadin/terminal/gwt/client/Util.java
src/com/vaadin/terminal/gwt/client/VCaption.java
src/com/vaadin/terminal/gwt/client/VDebugConsole.java
src/com/vaadin/terminal/gwt/client/VTooltip.java
src/com/vaadin/terminal/gwt/client/communication/JsonDecoder.java
src/com/vaadin/terminal/gwt/client/communication/ServerRpc.java
src/com/vaadin/terminal/gwt/client/ui/AbsoluteLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/AbstractComponentContainerConnector.java
src/com/vaadin/terminal/gwt/client/ui/AbstractDateFieldConnector.java
src/com/vaadin/terminal/gwt/client/ui/AbstractOrderedLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/AccordionConnector.java
src/com/vaadin/terminal/gwt/client/ui/ButtonConnector.java
src/com/vaadin/terminal/gwt/client/ui/CheckBoxConnector.java
src/com/vaadin/terminal/gwt/client/ui/ClickEventHandler.java
src/com/vaadin/terminal/gwt/client/ui/ComboBoxConnector.java
src/com/vaadin/terminal/gwt/client/ui/CssLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/CustomComponentConnector.java
src/com/vaadin/terminal/gwt/client/ui/CustomLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/EmbeddedConnector.java
src/com/vaadin/terminal/gwt/client/ui/FormConnector.java
src/com/vaadin/terminal/gwt/client/ui/FormLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/GridLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/InlineDateFieldConnector.java
src/com/vaadin/terminal/gwt/client/ui/LayoutClickEventHandler.java
src/com/vaadin/terminal/gwt/client/ui/LinkConnector.java
src/com/vaadin/terminal/gwt/client/ui/MenuBarConnector.java
src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java
src/com/vaadin/terminal/gwt/client/ui/PopupViewConnector.java
src/com/vaadin/terminal/gwt/client/ui/ProgressIndicatorConnector.java
src/com/vaadin/terminal/gwt/client/ui/ShortcutActionHandler.java
src/com/vaadin/terminal/gwt/client/ui/SimpleManagedLayout.java
src/com/vaadin/terminal/gwt/client/ui/SliderConnector.java
src/com/vaadin/terminal/gwt/client/ui/TableConnector.java
src/com/vaadin/terminal/gwt/client/ui/TextFieldConnector.java
src/com/vaadin/terminal/gwt/client/ui/TextualDateConnector.java
src/com/vaadin/terminal/gwt/client/ui/TreeConnector.java
src/com/vaadin/terminal/gwt/client/ui/UnknownComponentConnector.java
src/com/vaadin/terminal/gwt/client/ui/UploadConnector.java
src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java
src/com/vaadin/terminal/gwt/client/ui/VAccordion.java
src/com/vaadin/terminal/gwt/client/ui/VContextMenu.java
src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java
src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java
src/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java
src/com/vaadin/terminal/gwt/client/ui/VEmbedded.java
src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java
src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java
src/com/vaadin/terminal/gwt/client/ui/VPanel.java
src/com/vaadin/terminal/gwt/client/ui/VPopupView.java
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
src/com/vaadin/terminal/gwt/client/ui/VSlider.java
src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
src/com/vaadin/terminal/gwt/client/ui/VTabsheetBase.java
src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java
src/com/vaadin/terminal/gwt/client/ui/VTree.java
src/com/vaadin/terminal/gwt/client/ui/VView.java
src/com/vaadin/terminal/gwt/client/ui/VWindow.java
src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java
src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java
src/com/vaadin/terminal/gwt/client/ui/dd/VDragSourceIs.java
src/com/vaadin/terminal/gwt/client/ui/dd/VIsOverId.java
src/com/vaadin/terminal/gwt/client/ui/dd/VItemIdIs.java
src/com/vaadin/terminal/gwt/client/ui/dd/VSourceIsTarget.java
src/com/vaadin/terminal/gwt/client/ui/label/VLabel.java
src/com/vaadin/terminal/gwt/client/ui/layout/ComponentConnectorLayoutSlot.java
src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java
src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyGenerator.java
src/com/vaadin/ui/AbstractField.java
src/com/vaadin/ui/AbstractOrderedLayout.java
src/com/vaadin/ui/AbstractSelect.java
src/com/vaadin/ui/Component.java
src/com/vaadin/ui/Field.java

index 2584a4770bd5eca512eec7694dd3b2e4aa9a4049..b8efa5b1e48088c2658f042a6773882833f30f18 100644 (file)
@@ -120,8 +120,8 @@ public class BeanFieldGroup<T> extends FieldGroup {
         super.configureField(field);
         // Add Bean validators if there are annotations
         if (isBeanValidationImplementationAvailable()) {
-            BeanValidator validator = new BeanValidator(
-                    beanType, getPropertyId(field).toString());
+            BeanValidator validator = new BeanValidator(beanType,
+                    getPropertyId(field).toString());
             field.addValidator(validator);
             if (field.getLocale() != null) {
                 validator.setLocale(field.getLocale());
index 91fcf004afd2d03b9be8a04f0ebdb02d0c33de21..05ae2f827e7693206ad170e7e4997e4d49f268cc 100644 (file)
@@ -29,7 +29,8 @@ public class DoubleRangeValidator extends RangeValidator<Double> {
      * @param maxValue
      *            The maximum value to accept or null for no limit
      */
-    public DoubleRangeValidator(String errorMessage, Double minValue, Double maxValue) {
+    public DoubleRangeValidator(String errorMessage, Double minValue,
+            Double maxValue) {
         super(errorMessage, Double.class, minValue, maxValue);
     }
 
index dec0bf0be90e6272f9b5bd8d1bef29b5ffecba1d..8143d54c97a14aa3b8257b9aca71cb6e8de43bb3 100644 (file)
@@ -62,8 +62,12 @@ public class RegexpValidator extends AbstractStringValidator {
         this.complete = complete;
     }
 
-    /* (non-Javadoc)
-     * @see com.vaadin.data.validator.AbstractValidator#isValidValue(java.lang.Object)
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * com.vaadin.data.validator.AbstractValidator#isValidValue(java.lang.Object
+     * )
      */
     @Override
     protected boolean isValidValue(String value) {
index d7990215068f259f57739a0b4f08cc5fa47231e3..fecc38974e676ea6e4615f6d83cc53a9b8b472ac 100644 (file)
@@ -2,16 +2,19 @@ package com.vaadin.external.json;
 
 /**
  * The JSONException is thrown by the JSON.org classes when things are amiss.
+ * 
  * @author JSON.org
  * @version 2010-12-24
  */
 public class JSONException extends Exception {
-       private static final long serialVersionUID = 0;
-       private Throwable cause;
+    private static final long serialVersionUID = 0;
+    private Throwable cause;
 
     /**
      * Constructs a JSONException with an explanatory message.
-     * @param message Detail about the reason for the exception.
+     * 
+     * @param message
+     *            Detail about the reason for the exception.
      */
     public JSONException(String message) {
         super(message);
index 465f27aaab728b641e3f75ca0a912ac02fe614df..e4ccc8e1958888c6575ca3cfd95b84bc93f9c2df 100644 (file)
@@ -1,58 +1,62 @@
 package com.vaadin.external.json;
 
 /*
-Copyright (c) 2006 JSON.org
+ Copyright (c) 2006 JSON.org
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
 
-The Software shall be used for Good, not Evil.
+ The Software shall be used for Good, not Evil.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-*/
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+ */
 
 import java.io.StringWriter;
 
 /**
- * JSONStringer provides a quick and convenient way of producing JSON text.
- * The texts produced strictly conform to JSON syntax rules. No whitespace is
- * added, so the results are ready for transmission or storage. Each instance of
+ * JSONStringer provides a quick and convenient way of producing JSON text. The
+ * texts produced strictly conform to JSON syntax rules. No whitespace is added,
+ * so the results are ready for transmission or storage. Each instance of
  * JSONStringer can produce one JSON text.
  * <p>
  * A JSONStringer instance provides a <code>value</code> method for appending
- * values to the
- * text, and a <code>key</code>
- * method for adding keys before values in objects. There are <code>array</code>
- * and <code>endArray</code> methods that make and bound array values, and
- * <code>object</code> and <code>endObject</code> methods which make and bound
- * object values. All of these methods return the JSONWriter instance,
- * permitting cascade style. For example, <pre>
- * myString = new JSONStringer()
- *     .object()
- *         .key("JSON")
- *         .value("Hello, World!")
- *     .endObject()
- *     .toString();</pre> which produces the string <pre>
- * {"JSON":"Hello, World!"}</pre>
+ * values to the text, and a <code>key</code> method for adding keys before
+ * values in objects. There are <code>array</code> and <code>endArray</code>
+ * methods that make and bound array values, and <code>object</code> and
+ * <code>endObject</code> methods which make and bound object values. All of
+ * these methods return the JSONWriter instance, permitting cascade style. For
+ * example,
+ * 
+ * <pre>
+ * myString = new JSONStringer().object().key(&quot;JSON&quot;).value(&quot;Hello, World!&quot;)
+ *         .endObject().toString();
+ * </pre>
+ * 
+ * which produces the string
+ * 
+ * <pre>
+ * {"JSON":"Hello, World!"}
+ * </pre>
  * <p>
  * The first method called must be <code>array</code> or <code>object</code>.
  * There are no methods for adding commas or colons. JSONStringer adds them for
  * you. Objects and arrays can be nested up to 20 levels deep.
  * <p>
  * This can sometimes be easier than using a JSONObject to build a string.
+ * 
  * @author JSON.org
  * @version 2008-09-18
  */
@@ -70,6 +74,7 @@ public class JSONStringer extends JSONWriter {
      * problem in the construction of the JSON text (such as the calls to
      * <code>array</code> were not properly balanced with calls to
      * <code>endArray</code>).
+     * 
      * @return The JSON text.
      */
     public String toString() {
index 330e4cf5de7c186b3583b8961deaec9ed431831c..50a59e49753e5f8022b7340de3dbb067630f1970 100644 (file)
@@ -64,11 +64,11 @@ public class BrowserInfo {
                 browserDetails.setIEMode(documentMode);
             }
         }
-        
+
         if (browserDetails.isChrome()) {
-               touchDevice = detectChromeTouchDevice();
+            touchDevice = detectChromeTouchDevice();
         } else {
-               touchDevice = detectTouchDevice();
+            touchDevice = detectTouchDevice();
         }
     }
 
@@ -76,7 +76,7 @@ public class BrowserInfo {
     /*-{
         try { document.createEvent("TouchEvent");return true;} catch(e){return false;};
     }-*/;
-    
+
     private native boolean detectChromeTouchDevice()
     /*-{
         return ("ontouchstart" in window);
index f686b053ba91628593e8bca07fd5c13e4f7931bb..ae9f077912bf0dbb9a59b7f0cd588a6ed294ec7a 100644 (file)
@@ -96,8 +96,8 @@ public class ComponentLocator {
             // If we found a Paintable then we use that as reference. We should
             // find the Paintable for all but very special cases (like
             // overlays).
-            w = ((ComponentConnector) ConnectorMap.get(client).getConnector(pid))
-                    .getWidget();
+            w = ((ComponentConnector) ConnectorMap.get(client)
+                    .getConnector(pid)).getWidget();
 
             /*
              * Still if the Paintable contains a widget that implements
@@ -376,8 +376,8 @@ public class ComponentLocator {
             return "";
         } else if (w instanceof VWindow) {
             VWindow win = (VWindow) w;
-            ArrayList<VWindow> subWindowList = client.getView()
-                    .getWidget().getSubWindowList();
+            ArrayList<VWindow> subWindowList = client.getView().getWidget()
+                    .getSubWindowList();
             int indexOfSubWindow = subWindowList.indexOf(win);
             return PARENTCHILD_SEPARATOR + "VWindow[" + indexOfSubWindow + "]";
         } else if (w instanceof RootPanel) {
@@ -440,8 +440,8 @@ public class ComponentLocator {
                 w = client.getView().getWidget();
             } else if (w == null) {
                 // Must be static pid (PID_S*)
-                w = ((ComponentConnector) ConnectorMap.get(client).getConnector(
-                        part)).getWidget();
+                w = ((ComponentConnector) ConnectorMap.get(client)
+                        .getConnector(part)).getWidget();
             } else if (part.startsWith("domChild[")) {
                 // The target widget has been found and the rest identifies the
                 // element
@@ -522,8 +522,8 @@ public class ComponentLocator {
                  * compatibility
                  */
                 if (widgetClassName.equals("VWindow")) {
-                    iterator = client.getView().getWidget()
-                            .getSubWindowList().iterator();
+                    iterator = client.getView().getWidget().getSubWindowList()
+                            .iterator();
                 } else if (widgetClassName.equals("VContextMenu")) {
                     return client.getContextMenu();
                 } else {
index 41ca06bb5b75ecba704d4871953f4ada738d5af2..06b9042eb433c361893c6bc9f27f297b41be4c4f 100644 (file)
@@ -40,8 +40,8 @@ import com.google.gwt.event.shared.HandlerRegistration;
  */
 public class EventHelper {
 
-    public static HandlerRegistration updateFocusHandler(ComponentConnector paintable,
-            ApplicationConnection client,
+    public static HandlerRegistration updateFocusHandler(
+            ComponentConnector paintable, ApplicationConnection client,
             HandlerRegistration handlerRegistration) {
         if (client.hasEventListeners(paintable, FOCUS)) {
             if (handlerRegistration == null) {
@@ -57,8 +57,8 @@ public class EventHelper {
         return null;
     }
 
-    public static HandlerRegistration updateBlurHandler(ComponentConnector paintable,
-            ApplicationConnection client,
+    public static HandlerRegistration updateBlurHandler(
+            ComponentConnector paintable, ApplicationConnection client,
             HandlerRegistration handlerRegistration) {
         if (client.hasEventListeners(paintable, BLUR)) {
             if (handlerRegistration == null) {
index 3c251ae99778a2dbc654ddc26a383c7bd892ed46..5ed30eaff1e45e766d8f8ad610695803f9def1d8 100644 (file)
@@ -97,8 +97,7 @@ public class Util {
         List<ApplicationConnection> runningApplications = ApplicationConfiguration
                 .getRunningApplications();
         for (ApplicationConnection applicationConnection : runningApplications) {
-            ConnectorMap paintableMap = applicationConnection
-                    .getConnectorMap();
+            ConnectorMap paintableMap = applicationConnection.getConnectorMap();
             ComponentConnector paintable = paintableMap.getConnector(widget);
             if (paintable == null) {
                 continue;
@@ -698,8 +697,8 @@ public class Util {
      * @param element
      *            the element to start from
      */
-    public static ComponentConnector findPaintable(ApplicationConnection client,
-            Element element) {
+    public static ComponentConnector findPaintable(
+            ApplicationConnection client, Element element) {
         Widget widget = Util.findWidget(element, null);
         ConnectorMap vPaintableMap = ConnectorMap.get(client);
         while (widget != null && !vPaintableMap.isConnector(widget)) {
@@ -834,8 +833,9 @@ public class Util {
                     // TODO paintables inside lists/maps get rendered as
                     // components in the debug console
                     String formattedValue = value instanceof Connector ? c
-                            .getConnectorMap().getConnectorId((Connector) value)
-                            : String.valueOf(value);
+                            .getConnectorMap()
+                            .getConnectorId((Connector) value) : String
+                            .valueOf(value);
                     formattedParams = parameters[0] + " : " + formattedValue;
                 }
                 if (null == formattedParams) {
index 2f2621c1534673d94a0f0480075ba0a9da5a2ae3..73ef5743211023e79b30c4f9d7e0b3c9b1b88737 100644 (file)
@@ -8,8 +8,8 @@ import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.HTML;
-import com.vaadin.terminal.gwt.client.ui.Icon;
 import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector;
+import com.vaadin.terminal.gwt.client.ui.Icon;
 import com.vaadin.terminal.gwt.client.ui.TabsheetBaseConnector;
 
 public class VCaption extends HTML {
@@ -78,7 +78,8 @@ public class VCaption extends HTML {
         owner = component;
 
         if (client != null && owner != null) {
-            setOwnerPid(getElement(), ConnectorMap.get(client).getConnectorId(owner));
+            setOwnerPid(getElement(),
+                    ConnectorMap.get(client).getConnectorId(owner));
         }
 
         setStyleName(CLASSNAME);
index 22f0add2c5283b640e700c2eda5e0bf2eaae018a..eeab3cff19ed67cc4c7a1425d116feaa66bfaa6d 100644 (file)
@@ -90,14 +90,15 @@ public class VDebugConsole extends VOverlay implements Console {
 
                 for (ApplicationConnection a : ApplicationConfiguration
                         .getRunningApplications()) {
-                    ComponentConnector paintable = Util.getPaintableForElement(a,
-                            a.getView().getWidget(), eventTarget);
+                    ComponentConnector paintable = Util.getPaintableForElement(
+                            a, a.getView().getWidget(), eventTarget);
                     if (paintable == null) {
                         paintable = Util.getPaintableForElement(a,
                                 RootPanel.get(), eventTarget);
                     }
                     if (paintable != null) {
-                        String pid = ConnectorMap.get(a).getConnectorId(paintable);
+                        String pid = ConnectorMap.get(a).getConnectorId(
+                                paintable);
                         VUIDLBrowser.highlight(paintable);
                         label.setText("Currently focused  :"
                                 + paintable.getClass() + " ID:" + pid);
@@ -119,8 +120,8 @@ public class VDebugConsole extends VOverlay implements Console {
                         .getClientY());
                 for (ApplicationConnection a : ApplicationConfiguration
                         .getRunningApplications()) {
-                    ComponentConnector paintable = Util.getPaintableForElement(a,
-                            a.getView().getWidget(), eventTarget);
+                    ComponentConnector paintable = Util.getPaintableForElement(
+                            a, a.getView().getWidget(), eventTarget);
                     if (paintable == null) {
                         paintable = Util.getPaintableForElement(a,
                                 RootPanel.get(), eventTarget);
@@ -521,7 +522,8 @@ public class VDebugConsole extends VOverlay implements Console {
     }
 
     private void printClientSideDetectedIssues(
-            Set<ComponentConnector> zeroHeightComponents, ApplicationConnection ac) {
+            Set<ComponentConnector> zeroHeightComponents,
+            ApplicationConnection ac) {
         for (final ComponentConnector paintable : zeroHeightComponents) {
             final Widget layout = paintable.getParent().getWidget();
 
@@ -566,8 +568,7 @@ public class VDebugConsole extends VOverlay implements Console {
         emphasisInUi.addClickHandler(new ClickHandler() {
             public void onClick(ClickEvent event) {
                 if (paintable != null) {
-                    Element element2 = paintable.getWidget()
-                            .getElement();
+                    Element element2 = paintable.getWidget().getElement();
                     Widget.setStyleName(element2, "invalidlayout",
                             emphasisInUi.getValue());
                 }
index c0c61971e281c9fcbe4e676551d7809e87fe8e20..998e117176c54bc3165381ce891ce92995eaa49a 100644 (file)
@@ -207,7 +207,8 @@ public class VTooltip extends VOverlay {
 
     }
 
-    public void handleTooltipEvent(Event event, ComponentConnector owner, Object key) {
+    public void handleTooltipEvent(Event event, ComponentConnector owner,
+            Object key) {
         final int type = DOM.eventGetType(event);
         if ((VTooltip.TOOLTIP_EVENTS & type) == type) {
             if (type == Event.ONMOUSEOVER) {
index b3106dddff7bcdd689ecf58532a4bfab54d8c931..fdaaf43abd45477e50dee63df3c7f8926bee3930 100644 (file)
@@ -42,8 +42,7 @@ public class JsonDecoder {
      *            mapper between connector ID and {@link Connector} objects
      * @return converted value (does not contain JSON types)
      */
-    public static Object convertValue(JSONArray jsonArray,
-            ConnectorMap idMapper) {
+    public static Object convertValue(JSONArray jsonArray, ConnectorMap idMapper) {
         String type = ((JSONString) jsonArray.get(0)).stringValue();
         return convertValue(type, jsonArray.get(1), idMapper);
     }
index 6f47283cf89caa51dc32b47d3139976318f62d42..c08008e5c10a896e5f808c739c3cac48ea306b59 100644 (file)
@@ -22,8 +22,8 @@ public interface ServerRpc extends Serializable {
     /**
      * Initialization support for client to server RPC interfaces.
      * 
-     * This is in a separate interface instead of {@link ServerRpc}
-     * because otherwise also server side proxies would have to implement the
+     * This is in a separate interface instead of {@link ServerRpc} because
+     * otherwise also server side proxies would have to implement the
      * initialization method.
      * 
      * @since 7.0
index 04ecb4484a9e338d74929eaa4b766b48db773f82..4b7b5f6421f2ed1c90834f573d7d0ae6da3906d1 100644 (file)
@@ -15,14 +15,14 @@ import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.DirectionalManagedLayout;
 import com.vaadin.terminal.gwt.client.EventId;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.VAbsoluteLayout.AbsoluteWrapper;
 
-public class AbsoluteLayoutConnector extends AbstractComponentContainerConnector
-        implements DirectionalManagedLayout {
+public class AbsoluteLayoutConnector extends
+        AbstractComponentContainerConnector implements DirectionalManagedLayout {
 
     private LayoutClickEventHandler clickEventHandler = new LayoutClickEventHandler(
             this, EventId.LAYOUT_CLICK) {
@@ -73,8 +73,8 @@ public class AbsoluteLayoutConnector extends AbstractComponentContainerConnector
     }
 
     public void updateCaption(ComponentConnector component, UIDL uidl) {
-        AbsoluteWrapper parent2 = (AbsoluteWrapper) (component
-                .getWidget()).getParent();
+        AbsoluteWrapper parent2 = (AbsoluteWrapper) (component.getWidget())
+                .getParent();
         parent2.updateCaption(uidl);
     }
 
index 1242f1ca4f6c59f7ec80c76e5435ec2b4da40ea4..12adb60fb19e51a1d0dcccd29f4f66e444aad4bf 100644 (file)
@@ -9,9 +9,9 @@ import java.util.Collection;
 import com.google.gwt.user.client.ui.HasOneWidget;
 import com.google.gwt.user.client.ui.HasWidgets;
 import com.google.gwt.user.client.ui.Widget;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ComponentContainerConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 
 public abstract class AbstractComponentContainerConnector extends
         AbstractComponentConnector implements ComponentContainerConnector {
index 1a3ce139a1be0b2fe71296e9611674af7dae6180..c2652adbd455680b92ff112c2e8d72878693f19a 100644 (file)
@@ -36,8 +36,7 @@ public class AbstractDateFieldConnector extends AbstractComponentConnector {
                 getWidget().dts.setLocale(locale);
                 getWidget().currentLocale = locale;
             } catch (final LocaleNotLoadedException e) {
-                getWidget().currentLocale = getWidget().dts
-                        .getLocale();
+                getWidget().currentLocale = getWidget().dts.getLocale();
                 VConsole.error("Tried to use an unloaded locale \"" + locale
                         + "\". Using default locale ("
                         + getWidget().currentLocale + ").");
@@ -91,8 +90,8 @@ public class AbstractDateFieldConnector extends AbstractComponentConnector {
         // Construct new date for this datefield (only if not null)
         if (year > -1) {
             getWidget().setCurrentDate(
-                    new Date((long) getWidget().getTime(year,
-                            month, day, hour, min, sec, 0)));
+                    new Date((long) getWidget().getTime(year, month, day, hour,
+                            min, sec, 0)));
         } else {
             getWidget().setCurrentDate(null);
         }
index 079cc4eb3bf26aadfbd35e1e58d4af9e7a3c240e..aec7f5cd3ce7a3de5f08c5a273e1ee34655d1b6c 100644 (file)
@@ -18,8 +18,8 @@ import com.vaadin.terminal.gwt.client.LayoutManager;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.VCaption;
 import com.vaadin.terminal.gwt.client.ValueMap;
-import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot;
 import com.vaadin.terminal.gwt.client.ui.layout.ComponentConnectorLayoutSlot;
+import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot;
 
 public abstract class AbstractOrderedLayoutConnector extends
         AbstractComponentContainerConnector implements DirectionalManagedLayout {
index 179d5f78087f3afcffc1452e1fb0eb7092f3590b..d0c663a6ced232d0a509823a86dcc50110547ade 100644 (file)
@@ -8,8 +8,8 @@ import java.util.Iterator;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.ui.VAccordion.StackItem;
 
 public class AccordionConnector extends TabsheetBaseConnector implements
@@ -28,28 +28,25 @@ public class AccordionConnector extends TabsheetBaseConnector implements
                     getWidget().selectedUIDLItemIndex);
             UIDL selectedTabUIDL = getWidget().lazyUpdateMap
                     .remove(selectedItem);
-            getWidget().open(
-                    getWidget().selectedUIDLItemIndex);
+            getWidget().open(getWidget().selectedUIDLItemIndex);
 
             selectedItem.setContent(selectedTabUIDL);
-        } else if (isRealUpdate(uidl)
-                && getWidget().openTab != null) {
+        } else if (isRealUpdate(uidl) && getWidget().openTab != null) {
             getWidget().close(getWidget().openTab);
         }
 
         getWidget().iLayout();
         // finally render possible hidden tabs
         if (getWidget().lazyUpdateMap.size() > 0) {
-            for (Iterator iterator = getWidget().lazyUpdateMap
-                    .keySet().iterator(); iterator.hasNext();) {
+            for (Iterator iterator = getWidget().lazyUpdateMap.keySet()
+                    .iterator(); iterator.hasNext();) {
                 StackItem item = (StackItem) iterator.next();
                 item.setContent(getWidget().lazyUpdateMap.get(item));
             }
             getWidget().lazyUpdateMap.clear();
         }
 
-        getWidget().renderInformation
-                .updateSize(getWidget().getElement());
+        getWidget().renderInformation.updateSize(getWidget().getElement());
     }
 
     @Override
index 62cc3a12d3c213d6266009d7d51c85143479404b..a4d4e588d5049ef3ccac7abed5032863eb7cedc9 100644 (file)
@@ -59,12 +59,10 @@ public class ButtonConnector extends AbstractComponentConnector {
             return;
         }
 
-        getWidget().focusHandlerRegistration = EventHelper
-                .updateFocusHandler(this, client,
-                        getWidget().focusHandlerRegistration);
-        getWidget().blurHandlerRegistration = EventHelper
-                .updateBlurHandler(this, client,
-                        getWidget().blurHandlerRegistration);
+        getWidget().focusHandlerRegistration = EventHelper.updateFocusHandler(
+                this, client, getWidget().focusHandlerRegistration);
+        getWidget().blurHandlerRegistration = EventHelper.updateBlurHandler(
+                this, client, getWidget().blurHandlerRegistration);
 
         // Save details
         getWidget().client = client;
@@ -78,40 +76,33 @@ public class ButtonConnector extends AbstractComponentConnector {
         // handle error
         if (uidl.hasAttribute("error")) {
             if (getWidget().errorIndicatorElement == null) {
-                getWidget().errorIndicatorElement = DOM
-                        .createSpan();
+                getWidget().errorIndicatorElement = DOM.createSpan();
                 getWidget().errorIndicatorElement
                         .setClassName("v-errorindicator");
             }
-            getWidget().wrapper.insertBefore(
-                    getWidget().errorIndicatorElement,
+            getWidget().wrapper.insertBefore(getWidget().errorIndicatorElement,
                     getWidget().captionElement);
 
         } else if (getWidget().errorIndicatorElement != null) {
-            getWidget().wrapper
-                    .removeChild(getWidget().errorIndicatorElement);
+            getWidget().wrapper.removeChild(getWidget().errorIndicatorElement);
             getWidget().errorIndicatorElement = null;
         }
 
         if (uidl.hasAttribute(ATTRIBUTE_ICON)) {
             if (getWidget().icon == null) {
                 getWidget().icon = new Icon(client);
-                getWidget().wrapper.insertBefore(
-                        getWidget().icon.getElement(),
+                getWidget().wrapper.insertBefore(getWidget().icon.getElement(),
                         getWidget().captionElement);
             }
-            getWidget().icon.setUri(uidl
-                    .getStringAttribute(ATTRIBUTE_ICON));
+            getWidget().icon.setUri(uidl.getStringAttribute(ATTRIBUTE_ICON));
         } else {
             if (getWidget().icon != null) {
-                getWidget().wrapper
-                        .removeChild(getWidget().icon.getElement());
+                getWidget().wrapper.removeChild(getWidget().icon.getElement());
                 getWidget().icon = null;
             }
         }
 
-        getWidget().clickShortcut = getState()
-                .getClickShortcutKeyCode();
+        getWidget().clickShortcut = getState().getClickShortcutKeyCode();
     }
 
     @Override
index f33cc35a46c8c085e13c0c905ab0588bf2531503..f198fdc00faa8f369d789409efb425e4582aa0a2 100644 (file)
@@ -31,34 +31,27 @@ public class CheckBoxConnector extends AbstractComponentConnector {
             return;
         }
 
-        getWidget().focusHandlerRegistration = EventHelper
-                .updateFocusHandler(this, client,
-                        getWidget().focusHandlerRegistration);
-        getWidget().blurHandlerRegistration = EventHelper
-                .updateBlurHandler(this, client,
-                        getWidget().blurHandlerRegistration);
+        getWidget().focusHandlerRegistration = EventHelper.updateFocusHandler(
+                this, client, getWidget().focusHandlerRegistration);
+        getWidget().blurHandlerRegistration = EventHelper.updateBlurHandler(
+                this, client, getWidget().blurHandlerRegistration);
 
         if (uidl.hasAttribute("error")) {
             if (getWidget().errorIndicatorElement == null) {
-                getWidget().errorIndicatorElement = DOM
-                        .createSpan();
-                getWidget().errorIndicatorElement
-                        .setInnerHTML("&nbsp;");
-                DOM.setElementProperty(
-                        getWidget().errorIndicatorElement,
+                getWidget().errorIndicatorElement = DOM.createSpan();
+                getWidget().errorIndicatorElement.setInnerHTML("&nbsp;");
+                DOM.setElementProperty(getWidget().errorIndicatorElement,
                         "className", "v-errorindicator");
                 DOM.appendChild(getWidget().getElement(),
                         getWidget().errorIndicatorElement);
                 DOM.sinkEvents(getWidget().errorIndicatorElement,
                         VTooltip.TOOLTIP_EVENTS | Event.ONCLICK);
             } else {
-                DOM.setStyleAttribute(
-                        getWidget().errorIndicatorElement,
+                DOM.setStyleAttribute(getWidget().errorIndicatorElement,
                         "display", "");
             }
         } else if (getWidget().errorIndicatorElement != null) {
-            DOM.setStyleAttribute(
-                    getWidget().errorIndicatorElement, "display",
+            DOM.setStyleAttribute(getWidget().errorIndicatorElement, "display",
                     "none");
         }
 
@@ -71,12 +64,10 @@ public class CheckBoxConnector extends AbstractComponentConnector {
                 getWidget().icon = new Icon(client);
                 DOM.insertChild(getWidget().getElement(),
                         getWidget().icon.getElement(), 1);
-                getWidget().icon
-                        .sinkEvents(VTooltip.TOOLTIP_EVENTS);
+                getWidget().icon.sinkEvents(VTooltip.TOOLTIP_EVENTS);
                 getWidget().icon.sinkEvents(Event.ONCLICK);
             }
-            getWidget().icon.setUri(uidl
-                    .getStringAttribute(ATTRIBUTE_ICON));
+            getWidget().icon.setUri(uidl.getStringAttribute(ATTRIBUTE_ICON));
         } else if (getWidget().icon != null) {
             // detach icon
             DOM.removeChild(getWidget().getElement(),
@@ -86,9 +77,8 @@ public class CheckBoxConnector extends AbstractComponentConnector {
 
         // Set text
         getWidget().setText(getState().getCaption());
-        getWidget()
-                .setValue(
-                        uidl.getBooleanVariable(getWidget().VARIABLE_STATE));
+        getWidget().setValue(
+                uidl.getBooleanVariable(getWidget().VARIABLE_STATE));
         getWidget().immediate = getState().isImmediate();
     }
 
index c941b3c38af24815d76ff7b2890b359c5fc5310d..c263ec03e6b6d323f4024ddcb1414b66b11e4d71 100644 (file)
@@ -18,9 +18,9 @@ import com.google.gwt.event.shared.EventHandler;
 import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.user.client.Element;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.MouseEventDetails;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
+import com.vaadin.terminal.gwt.client.MouseEventDetails;
 
 public abstract class ClickEventHandler implements DoubleClickHandler,
         ContextMenuHandler, MouseUpHandler {
@@ -82,8 +82,8 @@ public abstract class ClickEventHandler implements DoubleClickHandler,
 
     protected void fireClick(NativeEvent event) {
         ApplicationConnection client = getApplicationConnection();
-        String pid = ConnectorMap.get(getApplicationConnection()).getConnectorId(
-                paintable);
+        String pid = ConnectorMap.get(getApplicationConnection())
+                .getConnectorId(paintable);
 
         MouseEventDetails mouseDetails = new MouseEventDetails(event,
                 getRelativeToElement());
index 7de3c3ac3a2706d171eff8d1e881fad3af60b224..0781ddf3f94aa0cb514456e1dcb47ee99aa06277 100644 (file)
@@ -49,29 +49,24 @@ public class ComboBoxConnector extends AbstractComponentConnector implements
 
         // not a FocusWidget -> needs own tabindex handling
         if (uidl.hasAttribute("tabindex")) {
-            getWidget().tb.setTabIndex(uidl
-                    .getIntAttribute("tabindex"));
+            getWidget().tb.setTabIndex(uidl.getIntAttribute("tabindex"));
         }
 
         if (uidl.hasAttribute("filteringmode")) {
-            getWidget().filteringmode = uidl
-                    .getIntAttribute("filteringmode");
+            getWidget().filteringmode = uidl.getIntAttribute("filteringmode");
         }
 
         getWidget().immediate = getState().isImmediate();
 
-        getWidget().nullSelectionAllowed = uidl
-                .hasAttribute("nullselect");
+        getWidget().nullSelectionAllowed = uidl.hasAttribute("nullselect");
 
-        getWidget().nullSelectItem = uidl
-                .hasAttribute("nullselectitem")
+        getWidget().nullSelectItem = uidl.hasAttribute("nullselectitem")
                 && uidl.getBooleanAttribute("nullselectitem");
 
         getWidget().currentPage = uidl.getIntVariable("page");
 
         if (uidl.hasAttribute("pagelength")) {
-            getWidget().pageLength = uidl
-                    .getIntAttribute("pagelength");
+            getWidget().pageLength = uidl.getIntAttribute("pagelength");
         }
 
         if (uidl.hasAttribute(VFilterSelect.ATTR_INPUTPROMPT)) {
@@ -82,11 +77,9 @@ public class ComboBoxConnector extends AbstractComponentConnector implements
             getWidget().inputPrompt = "";
         }
 
-        getWidget().suggestionPopup.updateStyleNames(uidl,
-                getState());
+        getWidget().suggestionPopup.updateStyleNames(uidl, getState());
 
-        getWidget().allowNewItem = uidl
-                .hasAttribute("allownewitem");
+        getWidget().allowNewItem = uidl.hasAttribute("allownewitem");
         getWidget().lastNewItemString = null;
 
         getWidget().currentSuggestions.clear();
@@ -109,8 +102,7 @@ public class ComboBoxConnector extends AbstractComponentConnector implements
 
         final UIDL options = uidl.getChildUIDL(0);
         if (uidl.hasAttribute("totalMatches")) {
-            getWidget().totalMatches = uidl
-                    .getIntAttribute("totalMatches");
+            getWidget().totalMatches = uidl.getIntAttribute("totalMatches");
         } else {
             getWidget().totalMatches = 0;
         }
@@ -141,8 +133,7 @@ public class ComboBoxConnector extends AbstractComponentConnector implements
                     }
                 }
                 getWidget().currentSuggestion = suggestion;
-                getWidget().setSelectedItemIcon(
-                        suggestion.getIconUri());
+                getWidget().setSelectedItemIcon(suggestion.getIconUri());
             }
 
             // Collect captions so we can calculate minimum width for textarea
@@ -180,19 +171,16 @@ public class ComboBoxConnector extends AbstractComponentConnector implements
                 && getWidget().lastFilter.toLowerCase().equals(
                         uidl.getStringVariable("filter"))) {
             getWidget().suggestionPopup.showSuggestions(
-                    getWidget().currentSuggestions,
-                    getWidget().currentPage,
+                    getWidget().currentSuggestions, getWidget().currentPage,
                     getWidget().totalMatches);
             getWidget().waitingForFilteringResponse = false;
             if (!getWidget().popupOpenerClicked
                     && getWidget().selectPopupItemWhenResponseIsReceived != VFilterSelect.Select.NONE) {
                 // we're paging w/ arrows
                 if (getWidget().selectPopupItemWhenResponseIsReceived == VFilterSelect.Select.LAST) {
-                    getWidget().suggestionPopup.menu
-                            .selectLastItem();
+                    getWidget().suggestionPopup.menu.selectLastItem();
                 } else {
-                    getWidget().suggestionPopup.menu
-                            .selectFirstItem();
+                    getWidget().suggestionPopup.menu.selectFirstItem();
                 }
 
                 // This is used for paging so we update the keyboard selection
@@ -203,8 +191,7 @@ public class ComboBoxConnector extends AbstractComponentConnector implements
                         .setKeyboardSelectedItem(activeMenuItem);
 
                 // Update text field to contain the correct text
-                getWidget()
-                        .setTextboxText(activeMenuItem.getText());
+                getWidget().setTextboxText(activeMenuItem.getText());
                 getWidget().tb.setSelectionRange(
                         getWidget().lastFilter.length(),
                         activeMenuItem.getText().length()
@@ -219,8 +206,7 @@ public class ComboBoxConnector extends AbstractComponentConnector implements
         }
 
         // Calculate minumum textarea width
-        getWidget().suggestionPopupMinWidth = getWidget()
-                .minWidth(captions);
+        getWidget().suggestionPopupMinWidth = getWidget().minWidth(captions);
 
         getWidget().popupOpenerClicked = false;
 
index 0cbe58b4fdca5f3ad5ab0a4db7cabe93b462fa6a..4c244722afd67187d39ad6e4c4015d41684b1cf2 100644 (file)
@@ -10,9 +10,9 @@ import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.EventId;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 public class CssLayoutConnector extends AbstractComponentContainerConnector {
 
index 3b84c700e30788520b3e009144143e2a8c9f84c8..68593ab2810e0e6bdc193c6305ffea2cdffce166 100644 (file)
@@ -6,9 +6,9 @@ package com.vaadin.terminal.gwt.client.ui;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
+import com.vaadin.terminal.gwt.client.UIDL;
 
 public class CustomComponentConnector extends
         AbstractComponentContainerConnector {
index 1f1422415f3fcc9a94a822d6711d7f735baee35b..2f2021ecd6506bd51dd1c84e9e32780a76948e1a 100644 (file)
@@ -11,8 +11,8 @@ import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.UIDL;
 
 public class CustomLayoutConnector extends AbstractComponentContainerConnector
         implements SimpleManagedLayout {
@@ -91,7 +91,6 @@ public class CustomLayoutConnector extends AbstractComponentContainerConnector
     }
 
     public void layout() {
-        getWidget().iLayoutJS(
-                DOM.getFirstChild(getWidget().getElement()));
+        getWidget().iLayoutJS(DOM.getFirstChild(getWidget().getElement()));
     }
 }
index df7eb2528ca1205745f256267a8c04bb67001c1a..912f11f0aad67cd9ff7a4973d85c08a75bc98a94 100644 (file)
@@ -45,12 +45,10 @@ public class EmbeddedConnector extends AbstractComponentConnector {
         if (uidl.hasAttribute("type")) {
             getWidget().type = uidl.getStringAttribute("type");
             if (getWidget().type.equals("image")) {
-                getWidget().addStyleName(
-                        VEmbedded.CLASSNAME + "-image");
+                getWidget().addStyleName(VEmbedded.CLASSNAME + "-image");
                 Element el = null;
                 boolean created = false;
-                NodeList<Node> nodes = getWidget().getElement()
-                        .getChildNodes();
+                NodeList<Node> nodes = getWidget().getElement().getChildNodes();
                 if (nodes != null && nodes.getLength() == 1) {
                     Node n = nodes.getItem(0);
                     if (n.getNodeType() == Node.ELEMENT_NODE) {
@@ -72,8 +70,8 @@ public class EmbeddedConnector extends AbstractComponentConnector {
                 style.setProperty("width", getState().getWidth());
                 style.setProperty("height", getState().getHeight());
 
-                DOM.setElementProperty(el, "src", getWidget()
-                        .getSrc(uidl, client));
+                DOM.setElementProperty(el, "src",
+                        getWidget().getSrc(uidl, client));
 
                 if (created) {
                     // insert in dom late
@@ -87,36 +85,31 @@ public class EmbeddedConnector extends AbstractComponentConnector {
                 getWidget().sinkEvents(VTooltip.TOOLTIP_EVENTS);
 
             } else if (getWidget().type.equals("browser")) {
-                getWidget().addStyleName(
-                        VEmbedded.CLASSNAME + "-browser");
+                getWidget().addStyleName(VEmbedded.CLASSNAME + "-browser");
                 if (getWidget().browserElement == null) {
                     getWidget().setHTML(
                             "<iframe width=\"100%\" height=\"100%\" frameborder=\"0\""
                                     + " allowTransparency=\"true\" src=\"\""
                                     + " name=\"" + uidl.getId()
                                     + "\"></iframe>");
-                    getWidget().browserElement = DOM
-                            .getFirstChild(getWidget().getElement());
+                    getWidget().browserElement = DOM.getFirstChild(getWidget()
+                            .getElement());
                 }
-                DOM.setElementAttribute(getWidget().browserElement,
-                        "src", getWidget().getSrc(uidl, client));
+                DOM.setElementAttribute(getWidget().browserElement, "src",
+                        getWidget().getSrc(uidl, client));
                 clearBrowserElement = false;
             } else {
-                VConsole.log("Unknown Embedded type '"
-                        + getWidget().type + "'");
+                VConsole.log("Unknown Embedded type '" + getWidget().type + "'");
             }
         } else if (uidl.hasAttribute("mimetype")) {
             final String mime = uidl.getStringAttribute("mimetype");
             if (mime.equals("application/x-shockwave-flash")) {
                 // Handle embedding of Flash
-                getWidget().addStyleName(
-                        VEmbedded.CLASSNAME + "-flash");
-                getWidget().setHTML(
-                        getWidget().createFlashEmbed(uidl));
+                getWidget().addStyleName(VEmbedded.CLASSNAME + "-flash");
+                getWidget().setHTML(getWidget().createFlashEmbed(uidl));
 
             } else if (mime.equals("image/svg+xml")) {
-                getWidget().addStyleName(
-                        VEmbedded.CLASSNAME + "-svg");
+                getWidget().addStyleName(VEmbedded.CLASSNAME + "-svg");
                 String data;
                 Map<String, String> parameters = VEmbedded.getParameters(uidl);
                 if (parameters.get("data") == null) {
index 0665ec4401826658a655d550c8915cf0aac3613a..2e3478122847698dc993f67e3f1517229124099a 100644 (file)
@@ -8,12 +8,12 @@ import com.google.gwt.dom.client.Style.Unit;
 import com.google.gwt.event.dom.client.KeyDownEvent;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
+import com.vaadin.terminal.gwt.client.UIDL;
 
-public class FormConnector extends AbstractComponentContainerConnector implements
-        SimpleManagedLayout {
+public class FormConnector extends AbstractComponentContainerConnector
+        implements SimpleManagedLayout {
 
     @Override
     public void init() {
@@ -38,8 +38,7 @@ public class FormConnector extends AbstractComponentContainerConnector implement
 
         boolean legendEmpty = true;
         if (getState().getCaption() != null) {
-            getWidget().caption.setInnerText(getState()
-                    .getCaption());
+            getWidget().caption.setInnerText(getState().getCaption());
             legendEmpty = false;
         } else {
             getWidget().caption.setInnerText("");
@@ -47,16 +46,13 @@ public class FormConnector extends AbstractComponentContainerConnector implement
         if (uidl.hasAttribute(ATTRIBUTE_ICON)) {
             if (getWidget().icon == null) {
                 getWidget().icon = new Icon(client);
-                getWidget().legend
-                        .insertFirst(getWidget().icon.getElement());
+                getWidget().legend.insertFirst(getWidget().icon.getElement());
             }
-            getWidget().icon.setUri(uidl
-                    .getStringAttribute(ATTRIBUTE_ICON));
+            getWidget().icon.setUri(uidl.getStringAttribute(ATTRIBUTE_ICON));
             legendEmpty = false;
         } else {
             if (getWidget().icon != null) {
-                getWidget().legend
-                        .removeChild(getWidget().icon.getElement());
+                getWidget().legend.removeChild(getWidget().icon.getElement());
             }
         }
         if (legendEmpty) {
@@ -74,18 +70,15 @@ public class FormConnector extends AbstractComponentContainerConnector implement
         }
 
         if (getState().hasDescription()) {
-            getWidget().desc.setInnerHTML(getState()
-                    .getDescription());
+            getWidget().desc.setInnerHTML(getState().getDescription());
             if (getWidget().desc.getParentElement() == null) {
-                getWidget().fieldSet.insertAfter(
-                        getWidget().desc,
+                getWidget().fieldSet.insertAfter(getWidget().desc,
                         getWidget().legend);
             }
         } else {
             getWidget().desc.setInnerHTML("");
             if (getWidget().desc.getParentElement() != null) {
-                getWidget().fieldSet
-                        .removeChild(getWidget().desc);
+                getWidget().fieldSet.removeChild(getWidget().desc);
             }
         }
 
@@ -124,16 +117,14 @@ public class FormConnector extends AbstractComponentContainerConnector implement
         if (getWidget().lo == null) {
             // Layout not rendered before
             getWidget().lo = newLayoutWidget;
-            getWidget().add(newLayoutWidget,
-                    getWidget().fieldContainer);
+            getWidget().add(newLayoutWidget, getWidget().fieldContainer);
         } else if (getWidget().lo != newLayoutWidget) {
             // Layout has changed
             client.unregisterPaintable(ConnectorMap.get(getConnection())
                     .getConnector(getWidget().lo));
             getWidget().remove(getWidget().lo);
             getWidget().lo = newLayoutWidget;
-            getWidget().add(newLayoutWidget,
-                    getWidget().fieldContainer);
+            getWidget().add(newLayoutWidget, getWidget().fieldContainer);
         }
         newLayout.updateFromUIDL(layoutUidl, client);
 
@@ -149,11 +140,9 @@ public class FormConnector extends AbstractComponentContainerConnector implement
                     getWidget().shortcutHandler = new ShortcutActionHandler(
                             getId(), client);
                     getWidget().keyDownRegistration = getWidget()
-                            .addDomHandler(getWidget(),
-                                    KeyDownEvent.getType());
+                            .addDomHandler(getWidget(), KeyDownEvent.getType());
                 }
-                getWidget().shortcutHandler
-                        .updateActionMap(childUidl);
+                getWidget().shortcutHandler.updateActionMap(childUidl);
             }
         } else if (getWidget().shortcutHandler != null) {
             getWidget().keyDownRegistration.removeHandler();
index df658aa2c0b9654ebf1bcf70e5b2dfbb3767e227..598c8023dede0d28fd5b10a9c25273ad465badc7 100644 (file)
@@ -6,8 +6,8 @@ package com.vaadin.terminal.gwt.client.ui;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.UIDL;
 
 public class FormLayoutConnector extends AbstractComponentContainerConnector {
     @Override
index f3b4ef4d6404219da3355acdff55acbf086088ab..d551552d246e9c5f2c461351ffca566c2915fa96 100644 (file)
@@ -13,12 +13,12 @@ import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.DirectionalManagedLayout;
 import com.vaadin.terminal.gwt.client.EventId;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.VCaption;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.VGridLayout.Cell;
 import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot;
 
@@ -127,8 +127,7 @@ public class GridLayoutConnector extends AbstractComponentContainerConnector
     public void updateCaption(ComponentConnector paintable, UIDL uidl) {
         VGridLayout layout = getWidget();
         if (VCaption.isNeeded(uidl, paintable.getState())) {
-            Cell cell = layout.widgetToCell.get(paintable
-                    .getWidget());
+            Cell cell = layout.widgetToCell.get(paintable.getWidget());
             VLayoutSlot layoutSlot = cell.slot;
             VCaption caption = layoutSlot.getCaption();
             if (caption == null) {
index 9e8dd14100c36f45f76736b8b63064f91f980c8a..1c6773a7da19dc931fc92c5ade916c27bb8bf2dd 100644 (file)
@@ -19,18 +19,15 @@ public class InlineDateFieldConnector extends AbstractDateFieldConnector {
     @SuppressWarnings("deprecation")
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
         super.updateFromUIDL(uidl, client);
-        getWidget().calendarPanel
-                .setShowISOWeekNumbers(getWidget()
-                        .isShowISOWeekNumbers());
-        getWidget().calendarPanel
-                .setDateTimeService(getWidget()
-                        .getDateTimeService());
-        getWidget().calendarPanel
-                .setResolution(getWidget().getCurrentResolution());
+        getWidget().calendarPanel.setShowISOWeekNumbers(getWidget()
+                .isShowISOWeekNumbers());
+        getWidget().calendarPanel.setDateTimeService(getWidget()
+                .getDateTimeService());
+        getWidget().calendarPanel.setResolution(getWidget()
+                .getCurrentResolution());
         Date currentDate = getWidget().getCurrentDate();
         if (currentDate != null) {
-            getWidget().calendarPanel.setDate(new Date(currentDate
-                    .getTime()));
+            getWidget().calendarPanel.setDate(new Date(currentDate.getTime()));
         } else {
             getWidget().calendarPanel.setDate(null);
         }
@@ -44,8 +41,8 @@ public class InlineDateFieldConnector extends AbstractDateFieldConnector {
                                 // date currently null, use the value from
                                 // calendarPanel
                                 // (~ client time at the init of the widget)
-                                d = (Date) getWidget().calendarPanel
-                                        .getDate().clone();
+                                d = (Date) getWidget().calendarPanel.getDate()
+                                        .clone();
                             }
                             d.setHours(hour);
                             d.setMinutes(min);
@@ -73,8 +70,7 @@ public class InlineDateFieldConnector extends AbstractDateFieldConnector {
                              */
                             date2.setYear(date.getYear());
                             date2.setMonth(date.getMonth());
-                            getWidget().calendarPanel
-                                    .setDate(date2);
+                            getWidget().calendarPanel.setDate(date2);
                             /*
                              * Then update the value from panel to server
                              */
index 8dcdcc766b394b656c5909c9f4d46927d13dbdaa..cfcbb510427d8515b23c5e7e0e3dc3846e8f58dc 100644 (file)
@@ -9,9 +9,9 @@ import java.util.Map;
 import com.google.gwt.dom.client.NativeEvent;
 import com.google.gwt.user.client.Element;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.MouseEventDetails;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
+import com.vaadin.terminal.gwt.client.MouseEventDetails;
 
 public abstract class LayoutClickEventHandler extends ClickEventHandler {
 
@@ -25,8 +25,8 @@ public abstract class LayoutClickEventHandler extends ClickEventHandler {
     @Override
     protected void fireClick(NativeEvent event) {
         ApplicationConnection client = getApplicationConnection();
-        String pid = ConnectorMap.get(getApplicationConnection()).getConnectorId(
-                paintable);
+        String pid = ConnectorMap.get(getApplicationConnection())
+                .getConnectorId(paintable);
 
         MouseEventDetails mouseDetails = new MouseEventDetails(event,
                 getRelativeToElement());
index 1cd70371bbe4f37ab994b67a9ba096a766efb132..9d23053a5bd813104a3ec0f75d342bee9670ca58 100644 (file)
@@ -34,14 +34,12 @@ public class LinkConnector extends AbstractComponentConnector {
 
         if (uidl.hasAttribute("name")) {
             getWidget().target = uidl.getStringAttribute("name");
-            getWidget().anchor.setAttribute("target",
-                    getWidget().target);
+            getWidget().anchor.setAttribute("target", getWidget().target);
         }
         if (uidl.hasAttribute("src")) {
             getWidget().src = client.translateVaadinUri(uidl
                     .getStringAttribute("src"));
-            getWidget().anchor.setAttribute("href",
-                    getWidget().src);
+            getWidget().anchor.setAttribute("href", getWidget().src);
         }
 
         if (uidl.hasAttribute("border")) {
@@ -54,41 +52,35 @@ public class LinkConnector extends AbstractComponentConnector {
             getWidget().borderStyle = VLink.BORDER_STYLE_DEFAULT;
         }
 
-        getWidget().targetHeight = uidl
-                .hasAttribute("targetHeight") ? uidl
+        getWidget().targetHeight = uidl.hasAttribute("targetHeight") ? uidl
                 .getIntAttribute("targetHeight") : -1;
         getWidget().targetWidth = uidl.hasAttribute("targetWidth") ? uidl
                 .getIntAttribute("targetWidth") : -1;
 
         // Set link caption
-        getWidget().captionElement.setInnerText(getState()
-                .getCaption());
+        getWidget().captionElement.setInnerText(getState().getCaption());
 
         // handle error
         if (uidl.hasAttribute("error")) {
             if (getWidget().errorIndicatorElement == null) {
                 getWidget().errorIndicatorElement = DOM.createDiv();
-                DOM.setElementProperty(
-                        getWidget().errorIndicatorElement,
+                DOM.setElementProperty(getWidget().errorIndicatorElement,
                         "className", "v-errorindicator");
             }
             DOM.insertChild(getWidget().getElement(),
                     getWidget().errorIndicatorElement, 0);
         } else if (getWidget().errorIndicatorElement != null) {
-            DOM.setStyleAttribute(
-                    getWidget().errorIndicatorElement, "display",
+            DOM.setStyleAttribute(getWidget().errorIndicatorElement, "display",
                     "none");
         }
 
         if (uidl.hasAttribute(ATTRIBUTE_ICON)) {
             if (getWidget().icon == null) {
                 getWidget().icon = new Icon(client);
-                getWidget().anchor.insertBefore(
-                        getWidget().icon.getElement(),
+                getWidget().anchor.insertBefore(getWidget().icon.getElement(),
                         getWidget().captionElement);
             }
-            getWidget().icon.setUri(uidl
-                    .getStringAttribute(ATTRIBUTE_ICON));
+            getWidget().icon.setUri(uidl.getStringAttribute(ATTRIBUTE_ICON));
         }
 
     }
index 873f99596200b733b782738cc6e16b30370b215c..3000445a88f096849da63ce0787ce2e1f2b3de49 100644 (file)
@@ -73,10 +73,8 @@ public class MenuBarConnector extends AbstractComponentConnector implements
             getWidget().moreItem.setHTML(itemHTML.toString());
             getWidget().moreItem.setCommand(VMenuBar.emptyCommand);
 
-            getWidget().collapsedRootItems = new VMenuBar(true,
-                    getWidget());
-            getWidget().moreItem
-                    .setSubMenu(getWidget().collapsedRootItems);
+            getWidget().collapsedRootItems = new VMenuBar(true, getWidget());
+            getWidget().moreItem.setSubMenu(getWidget().collapsedRootItems);
             getWidget().moreItem.addStyleName(VMenuBar.CLASSNAME
                     + "-more-menuitem");
         }
@@ -106,8 +104,7 @@ public class MenuBarConnector extends AbstractComponentConnector implements
                     // item's id-number
                     cmd = new Command() {
                         public void execute() {
-                            getWidget().hostReference
-                                    .onMenuClick(itemId);
+                            getWidget().hostReference.onMenuClick(itemId);
                         }
                     };
                 }
index 27f0f5adb00512545929019e670adeaf70c587ce..8673ffd93e9b2ea167509eee22ad04d7048a00af 100644 (file)
@@ -11,9 +11,9 @@ import com.google.gwt.event.shared.EventHandler;
 import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.LayoutManager;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 public class PanelConnector extends AbstractComponentContainerConnector
         implements SimpleManagedLayout, PostLayoutListener {
@@ -57,12 +57,10 @@ public class PanelConnector extends AbstractComponentContainerConnector
             // Affects size calculations
 
             // Restore default stylenames
-            getWidget().contentNode.setClassName(VPanel.CLASSNAME
-                    + "-content");
-            getWidget().bottomDecoration
-                    .setClassName(VPanel.CLASSNAME + "-deco");
-            getWidget().captionNode.setClassName(VPanel.CLASSNAME
-                    + "-caption");
+            getWidget().contentNode.setClassName(VPanel.CLASSNAME + "-content");
+            getWidget().bottomDecoration.setClassName(VPanel.CLASSNAME
+                    + "-deco");
+            getWidget().captionNode.setClassName(VPanel.CLASSNAME + "-caption");
             boolean hasCaption = false;
             if (getState().getCaption() != null
                     && !"".equals(getState().getCaption())) {
@@ -70,8 +68,8 @@ public class PanelConnector extends AbstractComponentContainerConnector
                 hasCaption = true;
             } else {
                 getWidget().setCaption("");
-                getWidget().captionNode
-                        .setClassName(VPanel.CLASSNAME + "-nocaption");
+                getWidget().captionNode.setClassName(VPanel.CLASSNAME
+                        + "-nocaption");
             }
 
             // Add proper stylenames for all elements. This way we can prevent
@@ -118,8 +116,7 @@ public class PanelConnector extends AbstractComponentContainerConnector
             if (getWidget().layout != null) {
                 client.unregisterPaintable(getWidget().layout);
             }
-            getWidget()
-                    .setWidget(newLayout.getWidget());
+            getWidget().setWidget(newLayout.getWidget());
             getWidget().layout = newLayout;
         }
         getWidget().layout.updateFromUIDL(layoutUidl, client);
@@ -134,8 +131,7 @@ public class PanelConnector extends AbstractComponentContainerConnector
                         getWidget().shortcutHandler = new ShortcutActionHandler(
                                 getId(), client);
                     }
-                    getWidget().shortcutHandler
-                            .updateActionMap(childUidl);
+                    getWidget().shortcutHandler.updateActionMap(childUidl);
                 }
             }
         }
@@ -156,8 +152,8 @@ public class PanelConnector extends AbstractComponentContainerConnector
 
         // And apply tab index
         if (uidl.hasVariable("tabindex")) {
-            getWidget().contentNode.setTabIndex(uidl
-                    .getIntVariable("tabindex"));
+            getWidget().contentNode
+                    .setTabIndex(uidl.getIntVariable("tabindex"));
         }
     }
 
index 9211f5072295f19b5a3a963387cf411109381b8d..328aa0aa6ddc5252ef3f3fd0325aa319766f2f02 100644 (file)
@@ -6,10 +6,10 @@ package com.vaadin.terminal.gwt.client.ui;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.VCaption;
 import com.vaadin.terminal.gwt.client.VCaptionWrapper;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 public class PopupViewConnector extends AbstractComponentContainerConnector {
 
@@ -67,9 +67,8 @@ public class PopupViewConnector extends AbstractComponentContainerConnector {
                 }
                 getWidget().popup.setStyleName(styleBuf.toString());
             } else {
-                getWidget().popup
-                        .setStyleName(getWidget().popup
-                                .getStylePrimaryName());
+                getWidget().popup.setStyleName(getWidget().popup
+                        .getStylePrimaryName());
             }
             getWidget().showPopup(getWidget().popup);
 
@@ -82,15 +81,12 @@ public class PopupViewConnector extends AbstractComponentContainerConnector {
     public void updateCaption(ComponentConnector component, UIDL uidl) {
         if (VCaption.isNeeded(uidl, component.getState())) {
             if (getWidget().popup.captionWrapper != null) {
-                getWidget().popup.captionWrapper
-                        .updateCaption(uidl);
+                getWidget().popup.captionWrapper.updateCaption(uidl);
             } else {
                 getWidget().popup.captionWrapper = new VCaptionWrapper(
                         component, getConnection());
-                getWidget().popup
-                        .setWidget(getWidget().popup.captionWrapper);
-                getWidget().popup.captionWrapper
-                        .updateCaption(uidl);
+                getWidget().popup.setWidget(getWidget().popup.captionWrapper);
+                getWidget().popup.captionWrapper.updateCaption(uidl);
             }
         } else {
             if (getWidget().popup.captionWrapper != null) {
index 1d48bf6017cb9343a586fab11ff5a3a2bb09138f..eda691e357614a5180e8bd0bc6cf82a04d46f6f2 100644 (file)
@@ -25,8 +25,7 @@ public class ProgressIndicatorConnector extends AbstractComponentConnector {
         // Save details
         getWidget().client = client;
 
-        getWidget().indeterminate = uidl
-                .getBooleanAttribute("indeterminate");
+        getWidget().indeterminate = uidl.getBooleanAttribute("indeterminate");
 
         if (getWidget().indeterminate) {
             String basename = VProgressIndicator.CLASSNAME + "-indeterminate";
@@ -41,17 +40,15 @@ public class ProgressIndicatorConnector extends AbstractComponentConnector {
                 final float f = Float.parseFloat(uidl
                         .getStringAttribute("state"));
                 final int size = Math.round(100 * f);
-                DOM.setStyleAttribute(getWidget().indicator,
-                        "width", size + "%");
+                DOM.setStyleAttribute(getWidget().indicator, "width", size
+                        + "%");
             } catch (final Exception e) {
             }
         }
 
         if (!getState().isDisabled()) {
-            getWidget().interval = uidl
-                    .getIntAttribute("pollinginterval");
-            getWidget().poller
-                    .scheduleRepeating(getWidget().interval);
+            getWidget().interval = uidl.getIntAttribute("pollinginterval");
+            getWidget().poller.scheduleRepeating(getWidget().interval);
         }
     }
 
index d2473cae21586a2c8b4d9b1c558bfa3673a112fa..37e9ab4a69953254578d31bd3dcff4d2464668b3 100644 (file)
@@ -17,9 +17,9 @@ import com.google.gwt.user.client.ui.KeyboardListener;
 import com.google.gwt.user.client.ui.KeyboardListenerCollection;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextArea;
 
 /**
@@ -49,9 +49,9 @@ public class ShortcutActionHandler {
     }
 
     /**
-     * A focusable {@link ComponentConnector} implementing this interface will be
-     * notified before shortcut actions are handled if it will be the target of
-     * the action (most commonly means it is the focused component during the
+     * A focusable {@link ComponentConnector} implementing this interface will
+     * be notified before shortcut actions are handled if it will be the target
+     * of the action (most commonly means it is the focused component during the
      * keyboard combination is triggered by the user).
      */
     public interface BeforeShortcutActionListener extends ComponentConnector {
index e8ab688db088d46d67b7607d0b035d85af2ffda4..9ccb29a7506a9e203ce2fb3552d8c789cb3d6c4b 100644 (file)
@@ -3,7 +3,6 @@
  */
 package com.vaadin.terminal.gwt.client.ui;
 
-
 public interface SimpleManagedLayout extends ManagedLayout {
     public void layout();
 }
index d1fac2ecbeb6b1dbdacc873afd4784fe6b751d10..b854aae818670c161304ad14f3cbd43a0bc9bc85 100644 (file)
@@ -34,18 +34,15 @@ public class SliderConnector extends AbstractComponentConnector {
         String style = getState().getStyle();
 
         if (getWidget().vertical) {
-            getWidget().addStyleName(
-                    VSlider.CLASSNAME + "-vertical");
+            getWidget().addStyleName(VSlider.CLASSNAME + "-vertical");
         } else {
-            getWidget().removeStyleName(
-                    VSlider.CLASSNAME + "-vertical");
+            getWidget().removeStyleName(VSlider.CLASSNAME + "-vertical");
         }
 
         getWidget().min = uidl.getDoubleAttribute("min");
         getWidget().max = uidl.getDoubleAttribute("max");
         getWidget().resolution = uidl.getIntAttribute("resolution");
-        getWidget().value = new Double(
-                uidl.getDoubleVariable("value"));
+        getWidget().value = new Double(uidl.getDoubleVariable("value"));
 
         getWidget().setFeedbackValue(getWidget().value);
 
@@ -56,14 +53,12 @@ public class SliderConnector extends AbstractComponentConnector {
             Scheduler.get().scheduleDeferred(new Command() {
                 public void execute() {
                     getWidget().buildHandle();
-                    getWidget().setValue(
-                            getWidget().value, false);
+                    getWidget().setValue(getWidget().value, false);
                 }
             });
         } else {
             getWidget().buildHandle();
-            getWidget().setValue(getWidget().value,
-                    false);
+            getWidget().setValue(getWidget().value, false);
         }
     }
 
index df762ef24e8094e38d7bb4d8f2b0db3d64f16ba5..1a5b535da3a503fdced71f35d36984e8b0baa207 100644 (file)
@@ -10,10 +10,10 @@ import com.google.gwt.user.client.Command;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.DirectionalManagedLayout;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 public class TableConnector extends AbstractComponentContainerConnector
         implements DirectionalManagedLayout {
@@ -44,12 +44,10 @@ public class TableConnector extends AbstractComponentContainerConnector
          * the space available.
          */
         if (uidl.hasAttribute("colfooters")) {
-            getWidget().showColFooters = uidl
-                    .getBooleanAttribute("colfooters");
+            getWidget().showColFooters = uidl.getBooleanAttribute("colfooters");
         }
 
-        getWidget().tFoot
-                .setVisible(getWidget().showColFooters);
+        getWidget().tFoot.setVisible(getWidget().showColFooters);
 
         super.updateFromUIDL(uidl, client);
         if (!isRealUpdate(uidl)) {
@@ -84,8 +82,7 @@ public class TableConnector extends AbstractComponentContainerConnector
         getWidget().updateSelectionProperties(uidl, getState());
 
         if (uidl.hasAttribute("alb")) {
-            getWidget().bodyActionKeys = uidl
-                    .getStringArrayAttribute("alb");
+            getWidget().bodyActionKeys = uidl.getStringArrayAttribute("alb");
         } else {
             // Need to clear the actions if the action handlers have been
             // removed
@@ -94,8 +91,7 @@ public class TableConnector extends AbstractComponentContainerConnector
 
         getWidget().setCacheRateFromUIDL(uidl);
 
-        getWidget().recalcWidths = uidl
-                .hasAttribute("recalcWidths");
+        getWidget().recalcWidths = uidl.hasAttribute("recalcWidths");
         if (getWidget().recalcWidths) {
             getWidget().tHead.clear();
             getWidget().tFoot.clear();
@@ -105,10 +101,8 @@ public class TableConnector extends AbstractComponentContainerConnector
 
         getWidget().updateFirstVisibleAndScrollIfNeeded(uidl);
 
-        getWidget().showRowHeaders = uidl
-                .getBooleanAttribute("rowheaders");
-        getWidget().showColHeaders = uidl
-                .getBooleanAttribute("colheaders");
+        getWidget().showRowHeaders = uidl.getBooleanAttribute("rowheaders");
+        getWidget().showColHeaders = uidl.getBooleanAttribute("colheaders");
 
         getWidget().updateSortingProperties(uidl);
 
@@ -152,10 +146,8 @@ public class TableConnector extends AbstractComponentContainerConnector
                             uidl.getIntAttribute("firstrow"),
                             uidl.getIntAttribute("rows"));
                     if (getWidget().headerChangedDuringUpdate) {
-                        getWidget().triggerLazyColumnAdjustment(
-                                true);
-                    } else if (!getWidget()
-                            .isScrollPositionVisible()
+                        getWidget().triggerLazyColumnAdjustment(true);
+                    } else if (!getWidget().isScrollPositionVisible()
                             || totalRowsChanged
                             || getWidget().lastRenderedHeight != getWidget().scrollBody
                                     .getOffsetHeight()) {
@@ -180,12 +172,11 @@ public class TableConnector extends AbstractComponentContainerConnector
         }
 
         if (!getWidget().isSelectable()) {
-            getWidget().scrollBody
-                    .addStyleName(VScrollTable.CLASSNAME + "-body-noselection");
+            getWidget().scrollBody.addStyleName(VScrollTable.CLASSNAME
+                    + "-body-noselection");
         } else {
-            getWidget().scrollBody
-                    .removeStyleName(VScrollTable.CLASSNAME
-                            + "-body-noselection");
+            getWidget().scrollBody.removeStyleName(VScrollTable.CLASSNAME
+                    + "-body-noselection");
         }
 
         getWidget().hideScrollPositionAnnotation();
index ae2b9253c1682313fe539f0f0aa1d828e0e36a1f..598bc05e197ca93a239393efbaf1f492760f57d7 100644 (file)
@@ -38,8 +38,8 @@ public class TextFieldConnector extends AbstractComponentConnector implements
 
         getWidget().immediate = getState().isImmediate();
 
-        getWidget().listenTextChangeEvents = client
-                .hasEventListeners(this, "ie");
+        getWidget().listenTextChangeEvents = client.hasEventListeners(this,
+                "ie");
         if (getWidget().listenTextChangeEvents) {
             getWidget().textChangeEventMode = uidl
                     .getStringAttribute(VTextField.ATTR_TEXTCHANGE_EVENTMODE);
@@ -56,8 +56,7 @@ public class TextFieldConnector extends AbstractComponentConnector implements
                 }
             }
             getWidget().sinkEvents(VTextField.TEXTCHANGE_EVENTS);
-            getWidget().attachCutEventListener(
-                    getWidget().getElement());
+            getWidget().attachCutEventListener(getWidget().getElement());
         }
 
         if (uidl.hasAttribute("cols")) {
index bb833dcaf5d98683f19524e84cfdf8083b39ce0a..40fb72a88be1f0203a98d72e90e639b8a05b6112 100644 (file)
@@ -22,8 +22,7 @@ public class TextualDateConnector extends AbstractDateFieldConnector {
             getWidget().formatStr = null;
         }
         if (uidl.hasAttribute("format")) {
-            getWidget().formatStr = uidl
-                    .getStringAttribute("format");
+            getWidget().formatStr = uidl.getStringAttribute("format");
         }
 
         getWidget().inputPrompt = uidl
@@ -34,8 +33,7 @@ public class TextualDateConnector extends AbstractDateFieldConnector {
         getWidget().buildDate();
         // not a FocusWidget -> needs own tabindex handling
         if (uidl.hasAttribute("tabindex")) {
-            getWidget().text.setTabIndex(uidl
-                    .getIntAttribute("tabindex"));
+            getWidget().text.setTabIndex(uidl.getIntAttribute("tabindex"));
         }
 
         if (getWidget().readonly) {
index 1b88c63b740e7adc504204e442845bf12c006b23..9b16e76a49b6d97792a0e30e8e44344946d5cf85 100644 (file)
@@ -53,8 +53,7 @@ public class TreeConnector extends AbstractComponentConnector {
                 .getBooleanAttribute("nullselect");
 
         if (uidl.hasAttribute("alb")) {
-            getWidget().bodyActionKeys = uidl
-                    .getStringArrayAttribute("alb");
+            getWidget().bodyActionKeys = uidl.getStringArrayAttribute("alb");
         }
 
         getWidget().body.clear();
@@ -91,21 +90,19 @@ public class TreeConnector extends AbstractComponentConnector {
                     .getIntAttribute("multiselectmode");
         }
 
-        getWidget().selectedIds = uidl
-                .getStringArrayVariableAsSet("selected");
+        getWidget().selectedIds = uidl.getStringArrayVariableAsSet("selected");
 
         // Update lastSelection and focusedNode to point to *actual* nodes again
         // after the old ones have been cleared from the body. This fixes focus
         // and keyboard navigation issues as described in #7057 and other
         // tickets.
         if (getWidget().lastSelection != null) {
-            getWidget().lastSelection = getWidget()
-                    .getNodeByKey(getWidget().lastSelection.key);
+            getWidget().lastSelection = getWidget().getNodeByKey(
+                    getWidget().lastSelection.key);
         }
         if (getWidget().focusedNode != null) {
             getWidget().setFocusedNode(
-                    getWidget().getNodeByKey(
-                            getWidget().focusedNode.key));
+                    getWidget().getNodeByKey(getWidget().focusedNode.key));
         }
 
         if (getWidget().lastSelection == null
@@ -113,8 +110,7 @@ public class TreeConnector extends AbstractComponentConnector {
                 && !getWidget().selectedIds.isEmpty()) {
             getWidget().setFocusedNode(
                     getWidget().getNodeByKey(
-                            getWidget().selectedIds.iterator()
-                                    .next()));
+                            getWidget().selectedIds.iterator().next()));
             getWidget().focusedNode.setFocused(false);
         }
 
index ae8ab7825257afb0197fa70714c130057e451388..3af42e95722addc590165ce1c924ed6d0d5e6349 100644 (file)
@@ -36,8 +36,7 @@ public class UnknownComponentConnector extends AbstractComponentConnector {
             getWidget().uidlTree.removeFromParent();
         }
 
-        getWidget().uidlTree = new VUIDLBrowser(uidl,
-                client.getConfiguration());
+        getWidget().uidlTree = new VUIDLBrowser(uidl, client.getConfiguration());
         getWidget().uidlTree.open(true);
         getWidget().uidlTree.setText("Unrendered UIDL");
         getWidget().panel.add(getWidget().uidlTree);
index 1a98c84c91a60c56fade2bbef3af289d89c8c8f5..db943875253fbd1ad19aa63a54101226782bfedc 100644 (file)
@@ -39,8 +39,7 @@ public class UploadConnector extends AbstractComponentConnector {
         } else {
             getWidget().submitButton.setVisible(false);
         }
-        getWidget().fu.setName(getWidget().paintableId
-                + "_file");
+        getWidget().fu.setName(getWidget().paintableId + "_file");
 
         if (getState().isDisabled() || getState().isReadOnly()) {
             getWidget().disableUpload();
index b8774ea9990df82c29e95fbf0051e88439660da8..48c6109f4480b3b558b222c02ccd71be8b6a5b51 100644 (file)
@@ -15,11 +15,11 @@ import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaption;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 public class VAbsoluteLayout extends ComplexPanel {
 
@@ -143,8 +143,7 @@ public class VAbsoluteLayout extends ComplexPanel {
                 // child may need relative size adjustment if wrapper details
                 // have changed this could be optimized (check if wrapper size
                 // has changed)
-                client.handleComponentRelativeSize(paintable
-                        .getWidget());
+                client.handleComponentRelativeSize(paintable.getWidget());
             }
         }
 
index 13886cd62136c7f1d1553dda45f52f5e89e06e44..e0c1510ae91116b9a8856bc244b7ce2b78e8e8d7 100644 (file)
@@ -15,12 +15,12 @@ import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.Widget;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.RenderInformation;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaption;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 public class VAccordion extends VTabsheetBase {
 
@@ -411,7 +411,8 @@ public class VAccordion extends VTabsheetBase {
         }
 
         public void setContent(UIDL contentUidl) {
-            final ComponentConnector newPntbl = client.getPaintable(contentUidl);
+            final ComponentConnector newPntbl = client
+                    .getPaintable(contentUidl);
             Widget newWidget = newPntbl.getWidget();
             if (getChildWidget() == null) {
                 add(newWidget, content);
@@ -425,8 +426,7 @@ public class VAccordion extends VTabsheetBase {
                  * The size of a cached, relative sized component must be
                  * updated to report correct size.
                  */
-                client.handleComponentRelativeSize(newPntbl
-                        .getWidget());
+                client.handleComponentRelativeSize(newPntbl.getWidget());
             }
             if (isOpen() && isDynamicHeight()) {
                 setHeightFromWidget();
index e46a74346b9095e637c54495afbd8d87cdf7cc55..692e13bd9407a651a8ea820d92e3ba84bfcf66f7 100644 (file)
@@ -44,8 +44,8 @@ public class VContextMenu extends VOverlay implements SubPartAware {
 
     private int top;
 
-    private VLazyExecutor delayedImageLoadExecutioner = new VLazyExecutor(
-            100, new ScheduledCommand() {
+    private VLazyExecutor delayedImageLoadExecutioner = new VLazyExecutor(100,
+            new ScheduledCommand() {
                 public void execute() {
                     imagesLoaded();
                 }
index f2693b8f25e46ced4f18c8f1033febb6e5990af4..9c9b2a7266c85be47942639aaf94f55b799c5bef 100644 (file)
@@ -17,13 +17,13 @@ import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.StyleConstants;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaption;
 import com.vaadin.terminal.gwt.client.VConsole;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ValueMap;
 
 public class VCssLayout extends SimplePanel {
index 5db07a1a549310739a0160e6d354d4b58b87de23..36d5fe98126bee9430dfc4abd93c7ebe7bad9fe8 100644 (file)
@@ -16,12 +16,12 @@ import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaption;
 import com.vaadin.terminal.gwt.client.VCaptionWrapper;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 /**
  * Custom Layout implements complex layout defined with HTML template.
index 813ef886367d1b841404dcf249e7aca794961223..779df5812b3da44d18b357b78feebded3bffec16 100644 (file)
@@ -23,14 +23,14 @@ import com.google.gwt.user.client.ui.Widget;
 import com.google.gwt.xhr.client.ReadyStateChangeHandler;
 import com.google.gwt.xhr.client.XMLHttpRequest;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.Connector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.MouseEventDetails;
 import com.vaadin.terminal.gwt.client.RenderInformation;
 import com.vaadin.terminal.gwt.client.RenderInformation.Size;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VConsole;
-import com.vaadin.terminal.gwt.client.Connector;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.VTooltip;
 import com.vaadin.terminal.gwt.client.ValueMap;
 import com.vaadin.terminal.gwt.client.ui.dd.DDUtil;
index 3233614076e7d12ba77a69c9c452c410d84ddadb..537d76f2ececd37c987c0e813321ef907cc0e659 100644 (file)
@@ -14,11 +14,11 @@ import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.HTML;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VConsole;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 public class VEmbedded extends HTML {
     public static String CLASSNAME = "v-embedded";
index 466e2fa10e31480d45318f9293160137bed9f99e..303b29fe8f2c6b27c91a7982026c1eeec27c7c99 100644 (file)
@@ -46,14 +46,14 @@ import com.google.gwt.user.client.ui.SuggestOracle.Suggestion;
 import com.google.gwt.user.client.ui.TextBox;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ComponentState;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.EventId;
 import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VConsole;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.VTooltip;
 
 /**
index be625713ef976d59c843df4ed488f0845a09e443..713a0ae55f8342eee868d52d46733789886855c3 100644 (file)
@@ -20,12 +20,12 @@ import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ComponentState;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.StyleConstants;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.VTooltip;
 
 /**
@@ -179,13 +179,11 @@ public class VFormLayout extends SimplePanel {
         }
 
         public void updateCaption(ComponentConnector paintable, UIDL uidl) {
-            final Caption c = widgetToCaption.get(paintable
-                    .getWidget());
+            final Caption c = widgetToCaption.get(paintable.getWidget());
             if (c != null) {
                 c.updateCaption(uidl, paintable.getState());
             }
-            final ErrorFlag e = widgetToError.get(paintable
-                    .getWidget());
+            final ErrorFlag e = widgetToError.get(paintable.getWidget());
             if (e != null) {
                 e.updateFromUIDL(uidl, paintable);
             }
@@ -234,7 +232,8 @@ public class VFormLayout extends SimplePanel {
          *            return null
          * @param client
          */
-        public Caption(ComponentConnector component, ApplicationConnection client) {
+        public Caption(ComponentConnector component,
+                ApplicationConnection client) {
             super();
             this.client = client;
             owner = component;
index dbffcc1f0bbcc0a21d2eafabec4c9f294b79127d..01e1b7c8dacbca6e1533d5dd9e5119d06d837289 100644 (file)
@@ -17,14 +17,14 @@ import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.LayoutManager;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaption;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
-import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot;
 import com.vaadin.terminal.gwt.client.ui.layout.ComponentConnectorLayoutSlot;
+import com.vaadin.terminal.gwt.client.ui.layout.VLayoutSlot;
 
 public class VGridLayout extends ComplexPanel {
 
@@ -554,7 +554,8 @@ public class VGridLayout extends ComplexPanel {
                 ComponentConnector paintable = client.getPaintable(childUidl);
 
                 if (slot == null || slot.getPaintable() != paintable) {
-                    slot = new ComponentConnectorLayoutSlot(CLASSNAME, paintable);
+                    slot = new ComponentConnectorLayoutSlot(CLASSNAME,
+                            paintable);
                     Element slotWrapper = slot.getWrapperElement();
                     getElement().appendChild(slotWrapper);
 
index d4a1670911e3624d78f35b40599646492c0bbb94..181abb449d9e56384fcc59642d1e76f823e52ac2 100644 (file)
@@ -13,9 +13,9 @@ import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.SimplePanel;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
 
 public class VPanel extends SimplePanel implements ShortcutActionHandlerOwner,
index ef5584861d4338299768e443f724856c25dc6316..93ffc5baf5f2a2c35d75d809ff59051a55662c01 100644 (file)
@@ -24,13 +24,13 @@ import com.google.gwt.user.client.ui.PopupPanel;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.Container;
 import com.vaadin.terminal.gwt.client.RenderInformation.Size;
 import com.vaadin.terminal.gwt.client.RenderSpace;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaptionWrapper;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.VTooltip;
 import com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextArea;
 
index 3eff5b38293f34f76a3893d72987b450ffa47945..fe4919d8ec31a78a730f68f616d548da08c7122a 100644 (file)
@@ -59,15 +59,15 @@ import com.google.gwt.user.client.ui.UIObject;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ComponentState;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.MouseEventDetails;
 import com.vaadin.terminal.gwt.client.TooltipInfo;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VConsole;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.VTooltip;
 import com.vaadin.terminal.gwt.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow;
 import com.vaadin.terminal.gwt.client.ui.dd.DDUtil;
@@ -1112,8 +1112,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
     void purgeUnregistryBag() {
         for (Iterator<Panel> iterator = lazyUnregistryBag.iterator(); iterator
                 .hasNext();) {
-            ConnectorMap.get(client)
-                    .unregisterChildConnectors(iterator.next());
+            ConnectorMap.get(client).unregisterChildConnectors(iterator.next());
         }
         lazyUnregistryBag.clear();
     }
@@ -2266,8 +2265,8 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
                     handleCaptionEvent(event);
                     boolean stopPropagation = true;
                     if (event.getTypeInt() == Event.ONCONTEXTMENU
-                            && !client.hasEventListeners(
-                                    VScrollTable.this, HEADER_CLICK_EVENT_ID)) {
+                            && !client.hasEventListeners(VScrollTable.this,
+                                    HEADER_CLICK_EVENT_ID)) {
                         // Prevent showing the browser's context menu only when
                         // there is a header click listener.
                         stopPropagation = false;
@@ -4128,8 +4127,8 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             final VScrollTableRow toBeRemoved = (VScrollTableRow) renderedRows
                     .get(index);
             // Unregister row tooltip
-            client.registerTooltip(VScrollTable.this,
-                    toBeRemoved.getElement(), null);
+            client.registerTooltip(VScrollTable.this, toBeRemoved.getElement(),
+                    null);
             for (int i = 0; i < toBeRemoved.getElement().getChildCount(); i++) {
                 // Unregister cell tooltips
                 Element td = toBeRemoved.getElement().getChild(i).cast();
@@ -4391,12 +4390,10 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
                 String rowDescription = uidl.getStringAttribute("rowdescr");
                 if (rowDescription != null && !rowDescription.equals("")) {
                     TooltipInfo info = new TooltipInfo(rowDescription);
-                    client.registerTooltip(VScrollTable.this, rowElement,
-                            info);
+                    client.registerTooltip(VScrollTable.this, rowElement, info);
                 } else {
                     // Remove possibly previously set tooltip
-                    client.registerTooltip(VScrollTable.this, rowElement,
-                            null);
+                    client.registerTooltip(VScrollTable.this, rowElement, null);
                 }
 
                 tHead.getColumnAlignments();
@@ -4477,8 +4474,8 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
                         final ComponentConnector cellContent = client
                                 .getPaintable((UIDL) cell);
 
-                        addCell(uidl, cellContent.getWidget(),
-                                aligns[col++], style, sorted);
+                        addCell(uidl, cellContent.getWidget(), aligns[col++],
+                                style, sorted);
                         paintComponent(cellContent, (UIDL) cell);
                     }
                 }
@@ -4761,21 +4758,19 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
                         if (ConnectorMap.get(client).getWidgetTooltipInfo(
                                 VScrollTable.this, target) != null) {
                             // Cell has description, use it
-                            client.handleTooltipEvent(event,
-                                    VScrollTable.this, target);
+                            client.handleTooltipEvent(event, VScrollTable.this,
+                                    target);
                         } else {
                             // Cell might have row description, use row
                             // description
-                            client.handleTooltipEvent(event,
-                                    VScrollTable.this,
+                            client.handleTooltipEvent(event, VScrollTable.this,
                                     target.getParentElement());
                         }
                     }
 
                 } else {
                     // Table row (tr)
-                    client.handleTooltipEvent(event, VScrollTable.this,
-                            target);
+                    client.handleTooltipEvent(event, VScrollTable.this, target);
                 }
             }
 
@@ -4791,8 +4786,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
                         showContextMenu(event);
                         if (enabled
                                 && (actionKeys != null || client
-                                        .hasEventListeners(
-                                                VScrollTable.this,
+                                        .hasEventListeners(VScrollTable.this,
                                                 ITEM_CLICK_EVENT_ID))) {
                             /*
                              * Prevent browser context menu only if there are
index d213a3826f97db8434507b3df29e7a8a7377e370..09cdcaf324c8b7d07f7ff2b1add49a7d7a603709 100644 (file)
@@ -13,7 +13,6 @@ import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
 import com.vaadin.terminal.gwt.client.ContainerResizedListener;
index 3b3f581a511aad3adda0ea0349669d10ddb95467..5e4b76f828b4a8d0e771e42b9982fdbe02f76972 100644 (file)
@@ -22,13 +22,13 @@ import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ComponentState;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.TooltipInfo;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaption;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.label.VLabel;
 
 public class VTabsheet extends VTabsheetBase {
@@ -205,8 +205,7 @@ public class VTabsheet extends VTabsheetBase {
                 if (uidl.hasAttribute(AbstractComponentConnector.ATTRIBUTE_ERROR)) {
                     tooltipInfo.setErrorUidl(uidl.getErrors());
                 }
-                client.registerTooltip(getTabsheet(), getElement(),
-                        tooltipInfo);
+                client.registerTooltip(getTabsheet(), getElement(), tooltipInfo);
             } else {
                 client.registerTooltip(getTabsheet(), getElement(), null);
             }
index f1002165bfc5a63529027ea6456baf59c6ef4b9d..910400e77956e3dd9240f47571f6f1d8c617c30f 100644 (file)
@@ -12,8 +12,8 @@ import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.UIDL;
 
 abstract class VTabsheetBase extends ComplexPanel {
 
index dac9665675652a08f2891092300d0be969d77374..01e5103c2ed38405128d81fdc3e0ad8df7be0801 100644 (file)
@@ -55,8 +55,8 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
                     setPrompting(false);
                 }
                 if (getClient() != null
-                        && getClient().hasEventListeners(
-                                VTextualDate.this, EventId.FOCUS)) {
+                        && getClient().hasEventListeners(VTextualDate.this,
+                                EventId.FOCUS)) {
                     getClient()
                             .updateVariable(getId(), EventId.FOCUS, "", true);
                 }
@@ -73,8 +73,8 @@ public class VTextualDate extends VDateField implements Field, ChangeHandler,
                     text.setText(readonly ? "" : inputPrompt);
                 }
                 if (getClient() != null
-                        && getClient().hasEventListeners(
-                                VTextualDate.this, EventId.BLUR)) {
+                        && getClient().hasEventListeners(VTextualDate.this,
+                                EventId.BLUR)) {
                     getClient().updateVariable(getId(), EventId.BLUR, "", true);
                 }
             }
index 7e2720c8ccf569e91bc95d003a5644d92ecae877..6641fe838ecd8a4d2d90f31f0b32b70fdb4fb272 100644 (file)
@@ -39,11 +39,11 @@ import com.google.gwt.user.client.ui.UIObject;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
+import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.MouseEventDetails;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.VTooltip;
 import com.vaadin.terminal.gwt.client.ui.dd.DDUtil;
 import com.vaadin.terminal.gwt.client.ui.dd.VAbstractDropHandler;
@@ -648,8 +648,8 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
             final boolean inCaption = target == nodeCaptionSpan
                     || (icon != null && target == icon.getElement());
             if (inCaption
-                    && client.hasEventListeners(VTree.this,
-                            ITEM_CLICK_EVENT_ID)
+                    && client
+                            .hasEventListeners(VTree.this, ITEM_CLICK_EVENT_ID)
 
                     && (type == Event.ONDBLCLICK || type == Event.ONMOUSEUP)) {
                 fireClick(event);
index b9ece35179ea3b5cb1d07ffe4118688e887e23f2..014a016410d13771d36413eca1a930e6c01a1753 100644 (file)
@@ -23,11 +23,11 @@ import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.SimplePanel;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VConsole;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
 
 /**
@@ -227,8 +227,7 @@ public class VView extends SimplePanel implements ResizeHandler,
                 public void execute() {
                     final ComponentConnector paintable = (ComponentConnector) uidl
                             .getPaintableAttribute("scrollTo", connection);
-                    paintable.getWidget().getElement()
-                            .scrollIntoView();
+                    paintable.getWidget().getElement().scrollIntoView();
                 }
             });
         }
index 48bcd4452b8c953d32804b107dd08975fe8b1569..4b6c7e54f410ad6b2373d74e42d290a41250d542 100644 (file)
@@ -28,11 +28,11 @@ import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.Console;
 import com.vaadin.terminal.gwt.client.EventId;
 import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
 
 /**
@@ -747,8 +747,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
         // Update child widget dimensions
         if (client != null) {
             client.handleComponentRelativeSize(layout.getWidget());
-            client.runDescendentsLayout((HasWidgets) layout
-                    .getWidget());
+            client.runDescendentsLayout((HasWidgets) layout.getWidget());
         }
 
         Util.runWebkitOverflowAutoFix(contentPanel.getElement());
index 4af4c0fc77299b54a67a07b5d113dab3fe9c6d8c..6751d62db0e5a880fd3a8f452c615d9142d33216 100644 (file)
@@ -13,9 +13,9 @@ import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.Frame;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.BeforeShortcutActionListener;
 
 public class WindowConnector extends AbstractComponentContainerConnector
@@ -46,8 +46,8 @@ public class WindowConnector extends AbstractComponentContainerConnector
 
         // Workaround needed for Testing Tools (GWT generates window DOM
         // slightly different in different browsers).
-        DOM.setElementProperty(getWidget().closeBox, "id",
-                getWidget().id + "_window_close");
+        DOM.setElementProperty(getWidget().closeBox, "id", getWidget().id
+                + "_window_close");
 
         if (uidl.hasAttribute("invisible")) {
             getWidget().hide();
@@ -56,23 +56,19 @@ public class WindowConnector extends AbstractComponentContainerConnector
 
         if (isRealUpdate(uidl)) {
             if (uidl.getBooleanAttribute("modal") != getWidget().vaadinModality) {
-                getWidget().setVaadinModality(
-                        !getWidget().vaadinModality);
+                getWidget().setVaadinModality(!getWidget().vaadinModality);
             }
             if (!getWidget().isAttached()) {
                 getWidget().setVisible(false); // hide until
-                                                           // possible centering
+                                               // possible centering
                 getWidget().show();
             }
             if (uidl.getBooleanAttribute("resizable") != getWidget().resizable) {
-                getWidget().setResizable(
-                        !getWidget().resizable);
+                getWidget().setResizable(!getWidget().resizable);
             }
-            getWidget().resizeLazy = uidl
-                    .hasAttribute(VView.RESIZE_LAZY);
+            getWidget().resizeLazy = uidl.hasAttribute(VView.RESIZE_LAZY);
 
-            getWidget().setDraggable(
-                    !uidl.hasAttribute("fixedposition"));
+            getWidget().setDraggable(!uidl.hasAttribute("fixedposition"));
 
             // Caption must be set before required header size is measured. If
             // the caption attribute is missing the caption should be cleared.
@@ -136,19 +132,15 @@ public class WindowConnector extends AbstractComponentContainerConnector
             if (getWidget().layout != lo) {
                 // remove old
                 client.unregisterPaintable(getWidget().layout);
-                getWidget().contentPanel
-                        .remove(getWidget().layout
-                                .getWidget());
+                getWidget().contentPanel.remove(getWidget().layout.getWidget());
                 // add new
                 if (!showingUrl) {
-                    getWidget().contentPanel.setWidget(lo
-                            .getWidget());
+                    getWidget().contentPanel.setWidget(lo.getWidget());
                 }
                 getWidget().layout = lo;
             }
         } else if (!showingUrl) {
-            getWidget().contentPanel.setWidget(lo
-                    .getWidget());
+            getWidget().contentPanel.setWidget(lo.getWidget());
             getWidget().layout = lo;
         }
 
@@ -160,8 +152,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
         getWidget().layoutRelativeHeight = uidl
                 .hasAttribute("layoutRelativeHeight");
 
-        if (getWidget().dynamicWidth
-                && getWidget().layoutRelativeWidth) {
+        if (getWidget().dynamicWidth && getWidget().layoutRelativeWidth) {
             /*
              * Relative layout width, fix window width before rendering (width
              * according to caption)
@@ -170,8 +161,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
         }
 
         getWidget().layout.updateFromUIDL(childUidl, client);
-        if (!getWidget().dynamicHeight
-                && getWidget().layoutRelativeWidth) {
+        if (!getWidget().dynamicHeight && getWidget().layoutRelativeWidth) {
             /*
              * Relative layout width, and fixed height. Must update the size to
              * be able to take scrollbars into account (layout gets narrower
@@ -184,13 +174,11 @@ public class WindowConnector extends AbstractComponentContainerConnector
          * No explicit width is set and the layout does not have relative width
          * so fix the size according to the layout.
          */
-        if (getWidget().dynamicWidth
-                && !getWidget().layoutRelativeWidth) {
+        if (getWidget().dynamicWidth && !getWidget().layoutRelativeWidth) {
             getWidget().setNaturalWidth();
         }
 
-        if (getWidget().dynamicHeight
-                && getWidget().layoutRelativeHeight) {
+        if (getWidget().dynamicHeight && getWidget().layoutRelativeHeight) {
             // Prevent resizing until height has been fixed
             getWidget().resizable = false;
         }
@@ -205,8 +193,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
                         getWidget().shortcutHandler = new ShortcutActionHandler(
                                 getId(), client);
                     }
-                    getWidget().shortcutHandler
-                            .updateActionMap(childUidl);
+                    getWidget().shortcutHandler.updateActionMap(childUidl);
                 }
             }
 
@@ -238,14 +225,12 @@ public class WindowConnector extends AbstractComponentContainerConnector
             getWidget().setWidth(Window.getClientWidth() + "px");
             sizeReduced = true;
         }
-        if (getWidget().getOffsetHeight() > Window
-                .getClientHeight()) {
+        if (getWidget().getOffsetHeight() > Window.getClientHeight()) {
             getWidget().setHeight(Window.getClientHeight() + "px");
             sizeReduced = true;
         }
 
-        if (getWidget().dynamicHeight
-                && getWidget().layoutRelativeHeight) {
+        if (getWidget().dynamicHeight && getWidget().layoutRelativeHeight) {
             /*
              * Window height is undefined, layout is 100% high so the layout
              * should define the initial window height but on resize the layout
@@ -267,8 +252,7 @@ public class WindowConnector extends AbstractComponentContainerConnector
             client.runDescendentsLayout(getWidget());
         }
 
-        Util.runWebkitOverflowAutoFix(getWidget().contentPanel
-                .getElement());
+        Util.runWebkitOverflowAutoFix(getWidget().contentPanel.getElement());
 
         client.getView().getWidget().scrollIntoView(uidl);
 
index 8ee1a721d134e0cf11d2b772a1ff72ca51cb1269..f76f04b501ab51f088f0db61734e8779594be679 100644 (file)
@@ -23,10 +23,10 @@ import com.google.gwt.user.client.Timer;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.MouseEventDetails;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ValueMap;
 
 /**
@@ -544,8 +544,7 @@ public class VDragAndDropManager {
     }
 
     private void removeActiveDragSourceStyleName(ComponentConnector dragSource) {
-        dragSource.getWidget().removeStyleName(
-                ACTIVE_DRAG_SOURCE_STYLENAME);
+        dragSource.getWidget().removeStyleName(ACTIVE_DRAG_SOURCE_STYLENAME);
     }
 
     private void clearDragElement() {
index 22b8054c77c16e20d1aae7b493280577bba578cb..aabbf58b24b941b78fdf2fbdf73b4941d7158ccc 100644 (file)
@@ -3,9 +3,9 @@
  */
 package com.vaadin.terminal.gwt.client.ui.dd;
 
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 /**
  * TODO Javadoc!
@@ -17,7 +17,8 @@ final public class VDragSourceIs extends VAcceptCriterion {
     @Override
     protected boolean accept(VDragEvent drag, UIDL configuration) {
         try {
-            ComponentConnector component = drag.getTransferable().getDragSource();
+            ComponentConnector component = drag.getTransferable()
+                    .getDragSource();
             int c = configuration.getIntAttribute("c");
             for (int i = 0; i < c; i++) {
                 String requiredPid = configuration
index 3a52daf63d5e5e74e165ecc9c56e2b9188f18180..7938016f50f328aad2773387203dbce421225a49 100644 (file)
@@ -6,9 +6,9 @@
  */
 package com.vaadin.terminal.gwt.client.ui.dd;
 
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 final public class VIsOverId extends VAcceptCriterion {
 
index adf1859013bea4628833db474187e440b10c05a8..de9988c4ac09558ecb23a448d29779be1844c13d 100644 (file)
@@ -6,9 +6,9 @@
  */
 package com.vaadin.terminal.gwt.client.ui.dd;
 
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ConnectorMap;
 import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 
 final public class VItemIdIs extends VAcceptCriterion {
 
@@ -21,8 +21,8 @@ final public class VItemIdIs extends VAcceptCriterion {
             VDropHandler currentDropHandler = VDragAndDropManager.get()
                     .getCurrentDropHandler();
             String pid2 = ConnectorMap.get(
-                    currentDropHandler.getApplicationConnection()).getConnectorId(
-                    dragSource);
+                    currentDropHandler.getApplicationConnection())
+                    .getConnectorId(dragSource);
             if (pid2.equals(pid)) {
                 Object searchedId = drag.getTransferable().getData("itemId");
                 String[] stringArrayAttribute = configuration
index 0882d1431d2ca74269454f8acce49b6a0caad996..0fc5f6c7e2bfcde6c0528598efcbe5ca7f75263e 100644 (file)
@@ -14,8 +14,8 @@ final public class VSourceIsTarget extends VAcceptCriterion {
     @Override
     protected boolean accept(VDragEvent drag, UIDL configuration) {
         ComponentConnector dragSource = drag.getTransferable().getDragSource();
-        ComponentConnector paintable = VDragAndDropManager.get().getCurrentDropHandler()
-                .getPaintable();
+        ComponentConnector paintable = VDragAndDropManager.get()
+                .getCurrentDropHandler().getPaintable();
 
         return paintable == dragSource;
     }
index bc2e27db0b4ce62f9b63db4e698df9a070e32c33..f47b8437b752604bcfab22ce5115eecb123a0360 100644 (file)
@@ -16,7 +16,7 @@ public class VLabel extends HTML {
 
     public static final String CLASSNAME = "v-label";
     private static final String CLASSNAME_UNDEFINED_WIDTH = "v-label-undef-w";
-    
+
     private ApplicationConnection connection;
 
     public VLabel() {
index 33210b69f812c5f50415508fb04a7b951cf9c291..5df2eb748854ef0138a1b250e2a1c6a0f7a4e256 100644 (file)
@@ -3,9 +3,9 @@
  */
 package com.vaadin.terminal.gwt.client.ui.layout;
 
+import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.LayoutManager;
 import com.vaadin.terminal.gwt.client.VCaption;
-import com.vaadin.terminal.gwt.client.ComponentConnector;
 import com.vaadin.terminal.gwt.client.ui.ManagedLayout;
 
 public class ComponentConnectorLayoutSlot extends VLayoutSlot {
@@ -13,7 +13,8 @@ public class ComponentConnectorLayoutSlot extends VLayoutSlot {
     final ComponentConnector paintable;
     private LayoutManager layoutManager;
 
-    public ComponentConnectorLayoutSlot(String baseClassName, ComponentConnector paintable) {
+    public ComponentConnectorLayoutSlot(String baseClassName,
+            ComponentConnector paintable) {
         super(baseClassName, paintable.getWidget());
         this.paintable = paintable;
         layoutManager = paintable.getLayoutManager();
@@ -55,14 +56,12 @@ public class ComponentConnectorLayoutSlot extends VLayoutSlot {
 
     @Override
     public int getWidgetHeight() {
-        return layoutManager.getOuterHeight(paintable.getWidget()
-                .getElement());
+        return layoutManager.getOuterHeight(paintable.getWidget().getElement());
     }
 
     @Override
     public int getWidgetWidth() {
-        return layoutManager.getOuterWidth(paintable.getWidget()
-                .getElement());
+        return layoutManager.getOuterWidth(paintable.getWidget().getElement());
     }
 
     @Override
index 56f3ca42f98e3c87f1009163d1aafd1dafae6311..eb062a3799e2e7bf078afbdbf7b321fe3de1ebce 100644 (file)
@@ -26,8 +26,8 @@ import com.google.gwt.user.client.ui.RichTextArea;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
-import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.ConnectorMap;
+import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.ui.Field;
 import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler;
 import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
index 9ce2dfd6be214e9bd819f0a655ee13aeffda084c..c52b6fad6a1b759d5a6a92c13ad939568266d6e6 100644 (file)
@@ -78,8 +78,8 @@ import com.vaadin.ui.Root;
  * A server side component sends its state to the client in a paint request (see
  * {@link Paintable} and {@link PaintTarget} on the server side). The client
  * widget receives these paint requests as calls to
- * {@link com.vaadin.terminal.gwt.client.ComponentConnector#updateFromUIDL()}. The
- * client component communicates back to the server by sending a list of
+ * {@link com.vaadin.terminal.gwt.client.ComponentConnector#updateFromUIDL()}.
+ * The client component communicates back to the server by sending a list of
  * variable changes (see {@link ApplicationConnection#updateVariable()} and
  * {@link VariableOwner#changeVariables(Object, Map)}).
  * 
index 5c5ae10b1ad945b78d843100854c9b3deaa205a0..bec4e415ee65d0dad160940ffa87b68d9b770490 100644 (file)
@@ -18,17 +18,17 @@ import com.google.gwt.core.ext.typeinfo.TypeOracle;
 import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
 import com.google.gwt.user.rebind.SourceWriter;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.client.communication.MethodInvocation;
 import com.vaadin.terminal.gwt.client.communication.ServerRpc;
 import com.vaadin.terminal.gwt.client.communication.ServerRpc.InitializableClientToServerRpc;
-import com.vaadin.terminal.gwt.client.communication.MethodInvocation;
 
 /**
  * GWT generator that creates client side proxy classes for making RPC calls
  * from the client to the server.
  * 
- * GWT.create() calls for interfaces extending {@link ServerRpc} are
- * affected, and a proxy implementation is created. Note that the init(...)
- * method of the proxy must be called before the proxy is used.
+ * GWT.create() calls for interfaces extending {@link ServerRpc} are affected,
+ * and a proxy implementation is created. Note that the init(...) method of the
+ * proxy must be called before the proxy is used.
  * 
  * @since 7.0
  */
index d06c4ce28e6fb5a2df4614450d3517fb018ea718..109c20290957716445dbeedb58d171f8ccaed126 100644 (file)
@@ -179,8 +179,8 @@ public abstract class AbstractField<T> extends AbstractComponent implements
 
         // Hide the error indicator if needed
         if (shouldHideErrors()) {
-            target.addAttribute(AbstractComponentConnector.ATTRIBUTE_HIDEERRORS,
-                    true);
+            target.addAttribute(
+                    AbstractComponentConnector.ATTRIBUTE_HIDEERRORS, true);
         }
     }
 
index fc3ef5056ddb33e060ee8b51f742843b5bc69406..8bba9fc46d67f0f6e0aa4009739b9716fe566976 100644 (file)
@@ -54,7 +54,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
     @Override
     public void addComponent(Component c) {
         // Add to components before calling super.addComponent
-        // so that it is available to AttachListeners 
+        // so that it is available to AttachListeners
         components.add(c);
         try {
             super.addComponent(c);
@@ -75,7 +75,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
     public void addComponentAsFirst(Component c) {
         // If c is already in this, we must remove it before proceeding
         // see ticket #7668
-        if(c.getParent() == this) {
+        if (c.getParent() == this) {
             removeComponent(c);
         }
         components.addFirst(c);
@@ -100,9 +100,9 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements
     public void addComponent(Component c, int index) {
         // If c is already in this, we must remove it before proceeding
         // see ticket #7668
-        if(c.getParent() == this) {
+        if (c.getParent() == this) {
             // When c is removed, all components after it are shifted down
-            if(index > getComponentIndex(c)) {
+            if (index > getComponentIndex(c)) {
                 index--;
             }
             removeComponent(c);
index f06995486966d02a3c9832b4a51a91b03f10b396..47f132aa77f3b1105482ce99263dd148d12020ed 100644 (file)
@@ -35,7 +35,6 @@ import com.vaadin.terminal.Resource;
 import com.vaadin.terminal.gwt.client.ui.dd.VIsOverId;
 import com.vaadin.terminal.gwt.client.ui.dd.VItemIdIs;
 import com.vaadin.terminal.gwt.client.ui.dd.VerticalDropLocation;
-import com.vaadin.ui.AbstractSelect.ItemCaptionMode;
 
 /**
  * <p>
index 1289b57bd98dd3a62c41f8853ef00b41c6842043..7de94f6696caf79cd9445028f20a5062bfec8966 100644 (file)
@@ -648,8 +648,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable,
      * Notifies the component that it is detached from the application.
      * 
      * <p>
-     * The {@link #getApplication()} and {@link #getRoot()} methods might
-     * return <code>null</code> after this method is called.
+     * The {@link #getApplication()} and {@link #getRoot()} methods might return
+     * <code>null</code> after this method is called.
      * </p>
      * 
      * <p>
index 6cc11daf089746cbe8585196d5470002358beb79..3a66db47b0f754a05eb31471604861534f565082 100644 (file)
@@ -10,6 +10,7 @@ import com.vaadin.ui.Component.Focusable;
 
 /**
  * TODO document
+ * 
  * @author Vaadin Ltd.
  * 
  * @param T