]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix typos (#10124)
authorAhmed Ashour <asashour@yahoo.com>
Wed, 4 Oct 2017 08:29:34 +0000 (10:29 +0200)
committerHenri Sara <henri.sara@gmail.com>
Wed, 4 Oct 2017 08:29:34 +0000 (11:29 +0300)
56 files changed:
client/src/main/java/com/vaadin/client/communication/XhrConnectionError.java
client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java
client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java
client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java
compatibility-client/src/main/java/com/vaadin/v7/client/ui/VOptionGroup.java
compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java
compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/schedule/CalendarEvent.java
compatibility-server/src/main/java/com/vaadin/v7/data/util/HierarchicalContainer.java
compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java
documentation/articles/ComponentAddonProjectSetupHOWTO.asciidoc
documentation/articles/ConfigureInputFieldsToGuideDataEntry.asciidoc
documentation/articles/CreatingASimpleComponentContainer.asciidoc
documentation/articles/CreatingAThemeUsingSass.asciidoc
documentation/articles/EnableAndDisableButtonsToIndicateState.asciidoc
documentation/articles/FindingTheCurrentUIAndPageAndVaadinSession.asciidoc
documentation/articles/IIInjectionAndScopes.asciidoc
documentation/articles/IntegrationExperiences.asciidoc
documentation/articles/LoadTestingWithGatling.asciidoc
documentation/articles/MVCBasicsInITMillToolkit.asciidoc
documentation/articles/OptimizingSluggishUI.asciidoc
documentation/articles/ReadOnlyVsDisabledFields.asciidoc
documentation/articles/SettingAndReadingCookies.asciidoc
documentation/articles/SettingAndReadingSessionAttributes.asciidoc
documentation/articles/UsingFontIcons.asciidoc
documentation/articles/UsingVaadinInIBMDomino.asciidoc
documentation/articles/Vaadin7SpringSecurityBaseAuthentification.asciidoc
documentation/articles/VaadinCDI.asciidoc
documentation/articles/VaadinOnGrailsDatabaseAccess.asciidoc
server/src/main/java/com/vaadin/data/Binder.java
server/src/main/java/com/vaadin/event/MouseEvents.java
server/src/main/java/com/vaadin/server/SessionExpiredHandler.java
server/src/main/java/com/vaadin/server/VaadinService.java
server/src/main/java/com/vaadin/ui/Button.java
server/src/main/java/com/vaadin/ui/Upload.java
server/src/main/java/com/vaadin/util/TimeZoneUtil.java
server/src/test/java/com/vaadin/tests/server/ClassesSerializableTest.java
shared/src/main/java/com/vaadin/shared/ui/grid/GridDropTargetRpc.java
uitest/eclipse-run-selected-test.properties
uitest/src/main/java/com/vaadin/tests/CustomLayoutDemo.java
uitest/src/main/java/com/vaadin/tests/TestBench.java
uitest/src/main/java/com/vaadin/tests/TestCaptionWrapper.java
uitest/src/main/java/com/vaadin/tests/TreeFilesystemContainer.java
uitest/src/main/java/com/vaadin/tests/components/button/ButtonClick.java
uitest/src/main/java/com/vaadin/tests/components/draganddropwrapper/SingleUseDragAndDropUpload.java
uitest/src/main/java/com/vaadin/tests/components/grid/basics/GridBasics.java
uitest/src/main/java/com/vaadin/tests/components/orderedlayout/VaadinTunesLayout.java
uitest/src/main/java/com/vaadin/tests/components/tree/TreeBasicFeatures.java
uitest/src/test/java/com/vaadin/tests/components/grid/GridSelectAllTest.java
uitest/src/test/java/com/vaadin/tests/components/grid/GridSelectionTest.java
uitest/src/test/java/com/vaadin/tests/components/grid/basics/GridEditorBufferedTest.java
uitest/src/test/java/com/vaadin/tests/components/grid/basics/GridEditorUnbufferedTest.java
uitest/src/test/java/com/vaadin/tests/components/table/MemoryLeakTableTest.java
uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridEditorBufferedTest.java
uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridEditorTest.java
uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridEditorUnbufferedTest.java
uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridStructureTest.java

index 2823865d5a936b25e3d421dac39d18f3c2db47f0..a4e398c2ddc9ad8130515a2a3c76a7c35366de8b 100644 (file)
@@ -21,8 +21,8 @@ import com.google.gwt.http.client.Response;
 import elemental.json.JsonObject;
 
 /**
- * XhrConnectionError provides detail about an error which occured during an XHR
- * request to the server.
+ * XhrConnectionError provides detail about an error which occurred during
+ * an XHR request to the server.
  *
  * @since 7.6
  * @author Vaadin Ltd
index bdd50934b96272bc549d4ae0a54afa57ca34cbb0..238e8e9284d4eb6f2279f888bedbb84df305da83 100644 (file)
@@ -579,7 +579,7 @@ public abstract class VAbstractSplitPanel extends ComplexPanel {
         if (WidgetUtil.isTouchEvent(event) || !resized) {
             super.onBrowserEvent(event);
         } else if (DOM.eventGetType(event) == Event.ONMOUSEUP) {
-            // Reset the resized flag after a mouseup has occured so the next
+            // Reset the resized flag after a mouseup has occurred so the next
             // mousedown/mouseup can be interpreted as a click.
             resized = false;
         }
index 690ea6b378ef4f8f39f0b5c165000085f7906464..4cd697c4a512c5b6e10f5af7b5b62ec75f9e44d2 100644 (file)
@@ -83,7 +83,7 @@ public interface VDropHandler {
 
     /**
      * Returns the application connection to which this {@link VDropHandler}
-     * belongs to. DragAndDropManager uses this fucction to send Transferable to
+     * belongs to. DragAndDropManager uses this function to send Transferable to
      * server side.
      */
     public ApplicationConnection getApplicationConnection();
index 0d430f8c7fbea578ba83a700ff9278bd0895edd0..d1f7882dff5080d35da1959ca3509639340f950e 100644 (file)
@@ -35,7 +35,7 @@ import com.vaadin.client.ui.FocusableFlowPanel;
 
 /**
  * Focusable flow panel which fires focus/blur events if it or any of its child
- * is focused/blured, but doesn't fire events if it happens between its content
+ * is focused/blurred, but doesn't fire events if it happens between its content
  * (child) elements.
  *
  * @author Vaadin Ltd
@@ -46,33 +46,33 @@ public class ChildFocusAwareFlowPanel extends FocusableFlowPanel
 
     private class FocusBlurHandler implements BlurHandler, FocusHandler {
 
-        private boolean blurOccured;
+        private boolean blurOccurred;
 
         @Override
         public void onBlur(BlurEvent event) {
-            blurOccured = true;
+            blurOccurred = true;
             Scheduler.get().scheduleDeferred(() -> fireBlurEvent(event));
         }
 
         @Override
         public void onFocus(FocusEvent event) {
-            if (!blurOccured) {
-                // no blur occured before this focus event
+            if (!blurOccurred) {
+                // no blur occurred before this focus event
                 eventBus.fireEvent(event);
             } else {
-                // blur occured before this focus event
+                // blur occurred before this focus event
                 // another component inside the panel was
-                // blurred => do not fire the focus and set blurOccured to
+                // blurred => do not fire the focus and set blurOccurred to
                 // false, so
                 // blur will not be fired, too
-                blurOccured = false;
+                blurOccurred = false;
             }
         }
 
         private void fireBlurEvent(BlurEvent event) {
-            if (blurOccured) {
+            if (blurOccurred) {
                 eventBus.fireEvent(event);
-                blurOccured = false;
+                blurOccurred = false;
             }
         }
     }
index 4abcc75f4deb0de076d56c26bd5432ea9f5ac019..dcca730f3679df66546724b27a672687bb351b39 100644 (file)
@@ -83,9 +83,9 @@ public class VOptionGroup extends VOptionGroupBase
      * optiongroup: if a control inside this optiongroup gains focus right after
      * blur of another control inside this optiongroup (meaning: if onFocus
      * fires after onBlur has fired), the blur and focus won't be sent to the
-     * server side as only a focus change inside this optiongroup occured
+     * server side as only a focus change inside this optiongroup occurred
      */
-    private boolean blurOccured = false;
+    private boolean blurOccurred = false;
 
     /** For internal use only. May be removed or replaced in the future. */
     public boolean htmlContentAllowed = false;
@@ -276,35 +276,36 @@ public class VOptionGroup extends VOptionGroupBase
 
     @Override
     public void onFocus(FocusEvent arg0) {
-        if (!blurOccured) {
-            // no blur occured before this focus event
+        if (!blurOccurred) {
+            // no blur occurred before this focus event
             // panel was blurred => fire the event to the server side if
             // requested by server side
             if (sendFocusEvents) {
                 client.updateVariable(paintableId, EventId.FOCUS, "", true);
             }
         } else {
-            // blur occured before this focus event
+            // blur occurred before this focus event
             // another control inside the panel (checkbox / radio box) was
-            // blurred => do not fire the focus and set blurOccured to false, so
+            // blurred => do not fire the focus and set blurOccurred to false,
+            // so
             // blur will not be fired, too
-            blurOccured = false;
+            blurOccurred = false;
         }
     }
 
     @Override
     public void onBlur(BlurEvent arg0) {
-        blurOccured = true;
+        blurOccurred = true;
         if (sendBlurEvents) {
             Scheduler.get().scheduleDeferred(new Command() {
                 @Override
                 public void execute() {
-                    // check whether blurOccured still is true and then send the
-                    // event out to the server
-                    if (blurOccured) {
+                    // check whether blurOccurred still is true and then send
+                    // the event out to the server
+                    if (blurOccurred) {
                         client.updateVariable(paintableId, EventId.BLUR, "",
                                 true);
-                        blurOccured = false;
+                        blurOccurred = false;
                     }
                 }
             });
index 751f7cb3fe4ecf0a193ec418f2df5cb9b2c89ef9..af7b78b271603030cddbeb61599c37d3d77e3c72 100644 (file)
@@ -1375,7 +1375,7 @@ public class VScrollTable extends FlowPanel
     /** For internal use only. May be removed or replaced in the future. */
     public void resizeSortedColumnForSortIndicator() {
         // Force recalculation of the captionContainer element inside the header
-        // cell to accomodate for the size of the sort arrow.
+        // cell to accommodate for the size of the sort arrow.
         HeaderCell sortedHeader = tHead.getHeaderCell(sortColumn);
         if (sortedHeader != null) {
             // Mark header as sorted now. Any earlier marking would lead to
@@ -3679,7 +3679,7 @@ public class VScrollTable extends FlowPanel
 
                 }
                 if (col.hasAttribute("width") && !c.isResizing) {
-                    // Make sure to accomodate for the sort indicator if
+                    // Make sure to accommodate for the sort indicator if
                     // necessary.
                     int width = col.getIntAttribute("width");
                     int widthWithoutAddedIndent = width;
index d60aa7f6dedfe737d17e6291909d24a0cdfc57f8..bc08421d4cc2146b18bd549f041b15c70fecd9bc 100644 (file)
@@ -186,7 +186,7 @@ public class CalendarEvent {
 
     /**
      * Get the description of the event. The description is the text displayed
-     * when hoovering over the event with the mouse
+     * when hovering over the event with the mouse
      *
      * @return
      */
@@ -196,7 +196,7 @@ public class CalendarEvent {
 
     /**
      * Set the description of the event. The description is the text displayed
-     * when hoovering over the event with the mouse
+     * when hovering over the event with the mouse
      *
      * @param description
      */
index ad995fa20a6e70b3b75d650b50932e6030b5be6f..c5ecee9e77058fc5d7b9d16b2f8517bea1b3f19c 100644 (file)
@@ -622,7 +622,7 @@ public class HierarchicalContainer extends IndexedContainer
                 }
             }
         }
-        // remove the root of subtree if children where succesfully removed
+        // remove the root of subtree if children where successfully removed
         if (success) {
             success = container.removeItem(itemId);
         }
index df95453a6479044971c900546ff1d6519d949679..b66531df2434af3743267c740a1bacc29bf04ae3 100644 (file)
@@ -614,10 +614,10 @@ public class Upload extends AbstractLegacyComponent
     public interface SucceededListener extends Serializable {
 
         /**
-         * Upload successfull..
+         * Upload successful.
          *
          * @param event
-         *            the Upload successfull event.
+         *            the Upload successful event.
          */
         public void uploadSucceeded(SucceededEvent event);
     }
index a0730f45bd39ccb85f854472cf905d9aa4f3400d..e8d063e27c76e6a695ab17b4a1a49048e1dd876f 100644 (file)
@@ -96,7 +96,7 @@ src directory from Navigator view and select Team -> Add to Index. Then
 add the rest of the files (.settings, .project, .classpath and target)
 to .gitignore with Team -> Ignore. Finally, just do Team -> Commit.
 
-At this point - or later whenevery you are ready for it - you can
+At this point - or later whenever you are ready for it - you can
 publish the project to GitHub. Just go to github.com and create a new
 repository. Use MyList as the name for the repository. Then follow the
 instructions on the screen. In my case, I executed the following command
@@ -123,12 +123,12 @@ for Maven run configuration for "jetty:run". Now when you make any
 changes to server-side code - for example to `WidgetTestApplication.java`
 - hit save and reload the browser pointing to
 http://localhost:8080/mylist/?restartApplication, the changes are
-appliead immediately. Even better - you can start the project with Debug
+applied immediately. Even better - you can start the project with Debug
 As and add break points to the application.
 
 Client-side changes are more tricky as they are compiled from Java to
 JavaScript by GWT. To make those changes immediately you, must be
-running a GWT Devepment Mode. This is done by running Maven goal gwt:run
+running a GWT Development Mode. This is done by running Maven goal gwt:run
 instead of just pointing your web browser to the running application.
 Note that must be running both jetty:run and gwt:run concurrently.
 gwt:run starts application called "GWT Development Mode". From there you
index 8c32561ab142e8fa33db32fc401a736d3dcb65db..cb08a169519dfbd98964f78bf7f3d844b2c196dc 100644 (file)
@@ -22,7 +22,7 @@ image:img/form1.png[Basic form]
 The shape, size and layout of these fields don’t really correspond to
 the kinds of values expected to be entered in them, or to the relations
 between different fields. For instance, while the homepage url is
-probably between 25 and 55 characters long, european postal codes are
+probably between 25 and 55 characters long, European postal codes are
 only about 6 digits long, and age maxes out at three digits. By setting
 the widths of these fields to be approximately proportional to the
 lengths of expected values, the fields become easier to identify, and
index 5e25aa21443d9b3eb5c204cc1a57d140d6aee025..7a94c85ec8d634ff3efd888da6a66b9f76e06e5e 100644 (file)
@@ -13,7 +13,7 @@ and `ComponentContainer`{empty}s. ComponentContainers are Components in
 themselves which can also contain other components. If you are about to
 implement a component that contains other components, then you'll get a
 headstart by extending Vaadin's `ComponentContainer`. The biggest feature
-is in tranferring the list of server side components from your component
+is in transferring the list of server side components from your component
 to the client. Here's how you do it.
 
 [[server-side]]
index 4e3ca2c77c37ed9b6fba38328185aff02e57b9ca..0b1babae769eee92d888523e1d1204a928d8274c 100644 (file)
@@ -135,7 +135,7 @@ that the name matches your themename, or your styles will not be
 applied._
 
 Some of the nice features you get with Sass include variables, selector
-nesting, mixins (optionally with paramaters), selector inheritance. For
+nesting, mixins (optionally with parameters), selector inheritance. For
 more information of what you can do with Sass, you should refer to the
 official documentation at http://sass-lang.com
 
index c963d8533a7605decca825713ea59327aa6cbe75..4acc90440be7cc83ac9c38d2af5b1974297d23cb 100644 (file)
@@ -59,7 +59,7 @@ spared the trouble of attempting in vain to perform the action, and the
 nuisance of an error message.
 
 image:img/potus2.png[Save and Revert actions disabled when they cannot be
-succesfully
+successfully
 performed.]
 
 [[disablingenabling-actions-to-indicate-state]]
index 6be26d18d90b58aab7e81fcc3b2aa05ec24f9e84..ad2c3b7a7b64cbf6a30f84625bc5ccbb5bf13750 100644 (file)
@@ -47,7 +47,7 @@ public void buttonClick(ClickEvent event) {
 }
 ....
 
-And finally similiarly for `Page`. For instance adding a browser window
+And finally similarly for `Page`. For instance adding a browser window
 resize listener can be added like this:
 
 [source,java]
index cbf843ebde9d1d159dbbb0f448ce8f7baa465b17..f8aa692bd83444e98828840aa5f7a18eef0f9acd 100644 (file)
@@ -147,7 +147,7 @@ public class UserInfo implements Serializable {
 ....
 
 We'll inject that to the UI and assign the user some name during
-initalization (for now)
+initialization (for now)
 
 [source,java]
 ....
index 8680a690f09fbaaed44c7f3b220933b4913d8030..2ae8ab3f4392bd7372670471c31b795d28c5e1ab 100644 (file)
@@ -96,7 +96,7 @@ with hierarchical table aka treetable. Another simple but important
 widget was multilingual text field. It acts just like normal textfield
 but when opened, you get the java field opened with multiple locale
 instances, it has nice UI too including user friendly flags. Great for
-handling i18n based data in your UI. We got multiple customercases that
+handling i18n based data in your UI. We got multiple customer cases that
 enjoy these new widgets. -*Jani Laakso*
 ===============================
 
@@ -259,7 +259,7 @@ business logic inside UI logic, there's no need to. This way the UI can
 be replaced in the future and also when updating old systems to use
 Vaadin (e.g. SWING applications that are written this way) it has been a
 breeze when the only thing that needs to be rewritten is the UI. Another
-very imporant factor is security, trust your data layer, do not trust
+very important factor is security, trust your data layer, do not trust
 your clients, using enterprise beans with JNDI helps you. Scalability
 and high-availability are also easier to cope with. Scale up with
 multiple cheap Tomcat machines acting as Vaadin clients, few powerful
index c13b84098c5d41b08317a1d9d98ff1ef76c23df8..a76a579066dd536b6d6b79545031b403c689ee79 100644 (file)
@@ -30,7 +30,7 @@ properly.
 The communication that Vaadin's "thin client" in browser does with the
 server side has couple of checks that it does to improve robustness and
 security. One can simulate these with Gatling as well, by e.g.
-https://github.com/mstahv/v-quiz/blob/master/src/test/scala/loadtest/WebSocketVaadinSimulation.scala#L84[reading the XSRF preventation key into a variable] and passing the value
+https://github.com/mstahv/v-quiz/blob/master/src/test/scala/loadtest/WebSocketVaadinSimulation.scala#L84[reading the XSRF prevention key into a variable] and passing the value
 https://github.com/mstahv/v-quiz/blob/master/src/test/scala/loadtest/WebSocketVaadinSimulation.scala#L95[in
 each response]. However, these setting can be disabled during load
 testing to make it easier to write and maintain your application. The
@@ -43,7 +43,7 @@ separate maven profile and inject different parameters with it.
 Disabling XSRF presentation key
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-The XSRF preventation can be disabled with following servlet parameter
+The XSRF prevention can be disabled with following servlet parameter
 (or similar servlet 3 style parameter). NOTE, do not leave this for
 public apps in production.
 
@@ -117,7 +117,7 @@ communication channel, WebSockets, you can do that with Gatling as well.
 Using the recorder in this case doesn't work, but handcrafting the test
 case isn't that hard once you get started. The example app has a branch
 with WebSocket test case. With WebSocket communication it might also be
-handy to disable xsrf preventation and the so called "syncid".
+handy to disable xsrf prevention and the so called "syncid".
 
 First two request are just normal http requests. The first gets the
 "host page" and also the initial state request is done with normal XHR.
@@ -161,7 +161,7 @@ message that the server sends when you connect to it. 
 
 Check out this script for
 https://github.com/mstahv/v-quiz/blob/master/src/test/scala/loadtest/WebSocketVaadinSimulation.scala[an
-example using WebSocket] communication. It also saves XSRF preventation
+example using WebSocket] communication. It also saves XSRF prevention
 key to variable, so it don't need it to be disabled from the server.
 
 [[configuring-gatling-to-the-web-app-build]]
index 78b2f4848b2701fc26cbd17a808eb048b69dde20..3f4f24d318c8636c402556d64963430ee3bff28b 100644 (file)
@@ -13,7 +13,7 @@ The Goal
 
 image:img/moduleDesign.jpg[1]
 
-We want to create a simple UI following the MVC pattern using the IT Mill Toolkit. The project components need to have low coupling and follow an enterprise design. In our example we also want to retrieve information from a database and display it in the view. The different parts of the UI need also to be able to communicate with eachother.
+We want to create a simple UI following the MVC pattern using the IT Mill Toolkit. The project components need to have low coupling and follow an enterprise design. In our example we also want to retrieve information from a database and display it in the view. The different parts of the UI need also to be able to communicate with each other.
 
 We have divided the project in two layers; A UI layer, which purpose is to display information to the user, and a Data layer which has no knowledge of the Toolkit and which is only responsible for retrieving and storing data. The reason for dividing the project up in these layers is so that, if we choose, we can easily use multiple servers.
 
index a3a7ffae6614274bccf9cc2d746160a7e7df695d..4f4d98e60c442fb24597f97b8428fb3bed69a69a 100644 (file)
@@ -94,8 +94,8 @@ http://uilder.virtuallypreinstalled.com/run/deepcomponenttrees/?restartApplicati
 layouts when possible
 * Do you need to extend CustomComponent in your server side composition
 or could you just extend some layout? This will result having one
-component less in the component tree. You might sometimes be argueing
-against this because of architectual reasons (CustomComponent has a
+component less in the component tree. You might sometimes be arguing
+against this because of architectural reasons (CustomComponent has a
 fewer methods than VerticalLayout), but on the other hand Java has
 interfaces to deal the issue in a cleaner manner.
 * Maybe you have an  extra layout inside your Panel or Window (see
index 80f054f531f07b6d78e4579e40f126abdc0966d1..3d9ae230fb45412002b0b5616ae0940c35b41dca 100644 (file)
@@ -96,7 +96,7 @@ one might expect. Doing the same with _disabled does_, though.)
 One caveat regarding read-only fields is that if the text is longer than
 the field, it will be clipped, as opposed to a Label, which instead will
 wrap the text to a new line. Thus, in certain situations, switching to
-Labels may be preferrable.
+Labels may be preferable.
 
 It’s probably best to mention here that *setReadOnly(true)* also has a
 certain side-effect in Vaadin that *setEnabled(false)* does not: You
index 3a310e7d968bbb8214a98bc1dba5b33926c31325..1027c60bbbee7e2c6065dc292860a643d8ffd66a 100644 (file)
@@ -13,7 +13,7 @@ http://en.wikipedia.org/wiki/HTTP_cookie[cookies] from both the server
 and the client side in Vaadin, with one caveat: Cookies are not possible
 if you enable Push using WebSocket (see tickets
 http://dev.vaadin.com/ticket/11808[11808] and
-http://dev.vaadin.com/ticket/12518[12518]). Begining in Vaadin 7.6,
+http://dev.vaadin.com/ticket/12518[12518]). Beginning in Vaadin 7.6,
 cookies can be used with the WEBSOCKET_XHR transport type.
 
 The
index 4d96c47e5c1377631fd718c445402edc06b03456..72db6bef110a6d403e60d1bf5afa65ad0b001954 100644 (file)
@@ -14,7 +14,7 @@ data, e.g. how long it should be kept around and what parts of the code
 should have access to it.
 
 1.  Store the data as a field in your UI subclass. The data is easily
-accesible from components belonging to that UI instance and the data
+accessible from components belonging to that UI instance and the data
 will be gone when the UI is closed.
 2.  Store data in the `VaadinServiceSession`. The data is easily
 accessible from any UI belonging to the same VaadinServlet or
index 37411631563b781bb0dfa4880f77ba96a7d4c6b7..7713f48c7443524eb460c781ec880a3afd0358e2 100644 (file)
@@ -54,7 +54,7 @@ Making a custom set of icons
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 There are many tools for making icons, and icon fonts. One of our
-favourite tools is http://icomoon.io/app[IcoMoon], which is an excellent
+favorite tools is http://icomoon.io/app[IcoMoon], which is an excellent
 online application where you can pick icons from a vast library of
 ready-made icon fonts, to compose your own set of icons. When you’re
 done, you can download a zip that contains your font files - just copy
@@ -67,7 +67,7 @@ automatically)
 4.  Mark the icons you want in your font
 5.  _Download_ the font
 
-In IcoMoon you can also produce a customised version of FontAwesome, if
+In IcoMoon you can also produce a customized version of FontAwesome, if
 you for instance want to remove unused icons, or swap individual icons.
 You can also re-upload your custom icon font, if you want to make
 changes or additions to it later. 
index 25a28bd7ad6b2859c9bdfaf61799058d4fd12dfe..35ffcbc8d41df1a8bc5b463555cda0730dca8478 100644 (file)
@@ -286,7 +286,7 @@ image:img/domino15.png[15]
 com.paulwithers.helloVaadinFeature.
 image:img/domino16.png[16]
 
-27. Click Next and initialise from the com.paulwithers.helloVaadin
+27. Click Next and initialize from the com.paulwithers.helloVaadin
 plugin.
 
 28. Select *File* > *New* > *Update Site Project*. Call it
index 4881d35c2d29a0a6d65227365048dee228341083..43502745397144cf3d80a3b98194d6a030d05f5f 100644 (file)
@@ -11,7 +11,7 @@ Vaadin 7 + Spring Security (base authentication)
 Vaadin 7 is easy to integrate with Spring Security. You should configure only
 2 files. First - web.xml and second one spring-security.xml (user
 credentials and security settings). This is a small example on how to use
-base form for authentification.
+base form for authentication.
 
 [[web.xml-configuration]]
 web.xml Configuration
index 99b1efd16ded70a4708e91422c72e3bcecd62e0b..16d4cbc323bc16a333342fb858faa3d41fa36bcb 100644 (file)
@@ -55,7 +55,7 @@ necessary and might in some cases even cause conflicts. +
 * *Objects must be injected* and managed by the CDI implementation in
 order to use CDI features.
 ** *Use @Inject on an instance field* to make the CDI implementation
-inject a managed intstance of the corresponding type.
+inject a managed instance of the corresponding type.
 ** *Annotate your UI class with @CDIUI("")* to let Vaadin CDI know that
 it should inject and use instances of that class when the application is
 opened in the browser.
index fdf6ffab0e58b9616db80608ab602396dc4caab6..0b3f847773f351fccca6febb10aeb5fe5e8ee389 100644 (file)
@@ -145,7 +145,7 @@ Database connection
 +++++++++++++++++++
 
 As we have covered big part of normal work when developing an
-application, created the persistance layer, maybe next questions are
+application, created the persistence layer, maybe next questions are
 coming. Where are the data stored? What database is used and how to
 change it?
 
index 2d1f6851816861019ae645def343e685c1c0e3ec..7a2ed319c9bd088aa3d38d7457db172e360199ab 100644 (file)
@@ -423,9 +423,11 @@ public class Binder<BEAN> implements Serializable {
                 TARGET nullRepresentation) {
             return withConverter(
                     fieldValue -> Objects.equals(fieldValue, nullRepresentation)
-                            ? null : fieldValue,
+                            ? null
+                            : fieldValue,
                     modelValue -> Objects.isNull(modelValue)
-                            ? nullRepresentation : modelValue);
+                            ? nullRepresentation
+                            : modelValue);
         }
 
         /**
@@ -1516,7 +1518,7 @@ public class Binder<BEAN> implements Serializable {
                 restoreBeanState(bean, oldValues);
             } else if (getBean() == null || bean.equals(getBean())) {
                 /*
-                 * Changes have been succesfully saved. The set is only cleared
+                 * Changes have been successfully saved. The set is only cleared
                  * if using readBean/writeBean or when the changes are stored in
                  * the currently set bean.
                  *
@@ -2158,7 +2160,8 @@ public class Binder<BEAN> implements Serializable {
         Converter<FIELDVALUE, FIELDVALUE> nullRepresentationConverter = Converter
                 .from(fieldValue -> fieldValue,
                         modelValue -> Objects.isNull(modelValue)
-                                ? field.getEmptyValue() : modelValue,
+                                ? field.getEmptyValue()
+                                : modelValue,
                         exception -> exception.getMessage());
         ConverterDelegate<FIELDVALUE> converter = new ConverterDelegate<>(
                 nullRepresentationConverter);
index 34456f2498a213122a28ac9d4a274a96d287afb7..b4b25b9683c5cfa35b2d37413a6ed120284b6673 100644 (file)
@@ -134,7 +134,7 @@ public interface MouseEvents {
         /**
          * Checks if the Alt key was down when the mouse event took place.
          *
-         * @return true if Alt was down when the event occured, false otherwise
+         * @return true if Alt was down when the event occurred, false otherwise
          */
         public boolean isAltKey() {
             return details.isAltKey();
@@ -143,7 +143,7 @@ public interface MouseEvents {
         /**
          * Checks if the Ctrl key was down when the mouse event took place.
          *
-         * @return true if Ctrl was pressed when the event occured, false
+         * @return true if Ctrl was pressed when the event occurred, false
          *         otherwise
          */
         public boolean isCtrlKey() {
@@ -153,7 +153,7 @@ public interface MouseEvents {
         /**
          * Checks if the Meta key was down when the mouse event took place.
          *
-         * @return true if Meta was pressed when the event occured, false
+         * @return true if Meta was pressed when the event occurred, false
          *         otherwise
          */
         public boolean isMetaKey() {
@@ -163,7 +163,7 @@ public interface MouseEvents {
         /**
          * Checks if the Shift key was down when the mouse event took place.
          *
-         * @return true if Shift was pressed when the event occured, false
+         * @return true if Shift was pressed when the event occurred, false
          *         otherwise
          */
         public boolean isShiftKey() {
index 5d8c2e13b87d9b8c9cd8fd8a882bf65099c7084a..cb0b4cdbc354daaee9d11302a546a5ccf303e1fd 100644 (file)
@@ -27,9 +27,9 @@ import java.io.IOException;
 public interface SessionExpiredHandler extends RequestHandler {
 
     /**
-     * Called when the a session expiration has occured and a notification needs
-     * to be sent to the user. If a response is written, this method should
-     * return <code>true</code> to indicate that no more
+     * Called when the a session expiration has occurred and a notification
+     * needs to be sent to the user. If a response is written, this method
+     * should return <code>true</code> to indicate that no more
      * {@link SessionExpiredHandler} handlers should be invoked for the request.
      *
      * @param request
index b65ae5ad9d8c7c405c64766ef8119d004fbf7246..d086b68a125216b914dc7c1224e9438d5cf616c2 100644 (file)
@@ -1629,7 +1629,7 @@ public abstract class VaadinService implements Serializable {
                                     ci.getInternalErrorMessage(), null,
                                     ci.getInternalErrorURL()));
                 } catch (IOException e) {
-                    // An exception occured while writing the response. Log
+                    // An exception occurred while writing the response. Log
                     // it and continue handling only the original error.
                     getLogger().log(Level.WARNING,
                             "Failed to write critical notification response to the client",
@@ -1657,7 +1657,7 @@ public abstract class VaadinService implements Serializable {
      * @param reponseString
      *            The actual response
      * @throws IOException
-     *             If an error occured while writing the response
+     *             If an error occurred while writing the response
      */
     public void writeStringResponse(VaadinResponse response, String contentType,
             String reponseString) throws IOException {
index e23509725116e45293dc010a75dd4128d87d62c5..c759a3a44075dc8dc107ea60cd6160334936dc96 100644 (file)
@@ -241,7 +241,7 @@ public class Button extends AbstractFocusable
         /**
          * Checks if the Alt key was down when the mouse event took place.
          *
-         * @return true if Alt was down when the event occured, false otherwise
+         * @return true if Alt was down when the event occurred, false otherwise
          *         or if unknown
          */
         public boolean isAltKey() {
@@ -255,7 +255,7 @@ public class Button extends AbstractFocusable
         /**
          * Checks if the Ctrl key was down when the mouse event took place.
          *
-         * @return true if Ctrl was pressed when the event occured, false
+         * @return true if Ctrl was pressed when the event occurred, false
          *         otherwise or if unknown
          */
         public boolean isCtrlKey() {
@@ -269,7 +269,7 @@ public class Button extends AbstractFocusable
         /**
          * Checks if the Meta key was down when the mouse event took place.
          *
-         * @return true if Meta was pressed when the event occured, false
+         * @return true if Meta was pressed when the event occurred, false
          *         otherwise or if unknown
          */
         public boolean isMetaKey() {
@@ -283,7 +283,7 @@ public class Button extends AbstractFocusable
         /**
          * Checks if the Shift key was down when the mouse event took place.
          *
-         * @return true if Shift was pressed when the event occured, false
+         * @return true if Shift was pressed when the event occurred, false
          *         otherwise or if unknown
          */
         public boolean isShiftKey() {
index a23e273e09e6f95b5978ac2bb725e26b4bdd0c2d..9096d8bc4038c36884d00bce364f5f8b1e893ad6 100644 (file)
@@ -605,10 +605,10 @@ public class Upload extends AbstractComponent
     public interface SucceededListener extends Serializable {
 
         /**
-         * Upload successfull..
+         * Upload successful.
          *
          * @param event
-         *            the Upload successfull event.
+         *            the Upload successful event.
          */
         public void uploadSucceeded(SucceededEvent event);
     }
index ec3d28e7304822d02409f5b81c27c59c81af7901..c3c25b21e45209b4b308f9ff9680ecea33774726 100644 (file)
@@ -93,11 +93,11 @@ public final class TimeZoneUtil implements Serializable {
                     if (i.toLocalDate().getYear() != year) {
                         break;
                     }
-                    long epocHours = Duration
+                    long epochHours = Duration
                             .ofSeconds(t.getInstant().getEpochSecond())
                             .toHours();
                     long duration = Math.max(t.getDuration().toMinutes(), 0);
-                    transitionsList.add(epocHours);
+                    transitionsList.add(epochHours);
                     transitionsList.add(duration);
                 }
             }
index d85c23b5f827ee9bdd53262db2e21f7dd925810a..0b6d67f7a72df1c5b60831864d5145ef94cd43f8 100644 (file)
@@ -130,7 +130,7 @@ public class ClassesSerializableTest {
             }
 
             // report fields that use lambda types that won't be serializable
-            // (also in syntehtic classes)
+            // (also in synthetic classes)
             Stream.of(cls.getDeclaredFields())
                     .filter(field -> isFunctionalType(field.getGenericType()))
                     .forEach(nonSerializableFunctionFields::add);
index 8309608ca6ef3335bf5216dd8fa68ba8092ae860..f89f2ab626100e294bda32c6e7996a3e78a66961 100644 (file)
@@ -34,21 +34,22 @@ public interface GridDropTargetRpc extends ServerRpc {
      * Called when drop event happens on client side.
      *
      * @param types
-     *         List of data types from {@code DataTransfer.types} object.
+     *            List of data types from {@code DataTransfer.types} object.
      * @param data
-     *         Map containing all types and corresponding data from the {@code
+     *            Map containing all types and corresponding data from the
+     *            {@code
      *         DataTransfer} object.
      * @param dropEffect
-     *         the desired drop effect
+     *            the desired drop effect
      * @param rowKey
-     *         Key of the row on which the drop event occured.
+     *            Key of the row on which the drop event occurred.
      * @param dropLocation
-     *         Location of the drop within the row.
+     *            Location of the drop within the row.
      * @param mouseEventDetails
-     *         Mouse event details object containing information about the drop
-     *         event
+     *            Mouse event details object containing information about the
+     *            drop event
      */
     public void drop(List<String> types, Map<String, String> data,
-            String dropEffect, String rowKey,
-            DropLocation dropLocation, MouseEventDetails mouseEventDetails);
+            String dropEffect, String rowKey, DropLocation dropLocation,
+            MouseEventDetails mouseEventDetails);
 }
index e0f93bfc7caa02199636122bf4f6f204fad8f50a..355fe6b50153f655b03c0248ace79d38682b2d64 100644 (file)
@@ -56,7 +56,7 @@ com.vaadin.testbench.screenshot.cursor=true
 ; Uncomment to limit to certain browsers or override in launch configuration
 ; browsers=winxp-opera10
 
-; Claim that the server has started succesfully. Needed for TB2 tests to be executed
+; Claim that the server has started successfully. Needed for TB2 tests to be executed
 server.start.succeeded=1
 
 ; Directory where temporary Java classes are created
index 2cf1154943fb6ffae368d947680f0f958394619a..ff0bbf7acb65233e7b1ce0867811366883ed9c0e 100644 (file)
@@ -153,7 +153,7 @@ public class CustomLayoutDemo extends com.vaadin.server.LegacyApplication
      */
     @Override
     public void componentEvent(Event event) {
-        // Check if event occured at fsTree component
+        // Check if event occurred at fsTree component
         if (event.getSource() == menu) {
             // Check if event is about changing value
             if (event.getClass() == Field.ValueChangeEvent.class) {
index 56c5dc986a0bca34b36d5c1833ccedeafc918ff8..c29e46e9d3edcecafd0ea4913e500922e038a73c 100644 (file)
@@ -175,7 +175,7 @@ public class TestBench extends com.vaadin.server.LegacyApplication
                                 }
                             }
 
-                            // just partly mach lowercase
+                            // just partly match lowercase
                             for (Object next : menu.getItemIds()) {
                                 if (next instanceof Class) {
                                     Class<?> c = (Class<?>) next;
index 6cde5ad294552dd44b6c47f0f33ead1f55612680..9a63d7a82317cdb38092fb2541a408aaacb288c5 100644 (file)
@@ -55,7 +55,7 @@ public class TestCaptionWrapper extends CustomComponent implements Listener {
 
     final String eventListenerString = "Component.Listener feedback: ";
     Label eventListenerFeedback = new Label(
-            eventListenerString + " <no events occured>");
+            eventListenerString + " <no events occurred>");
     int count = 0;
 
     public TestCaptionWrapper() {
@@ -120,7 +120,8 @@ public class TestCaptionWrapper extends CustomComponent implements Listener {
         test(layout, button);
         button.addListener(this);
 
-        final AbstractDateField<?, ?> df = new TestDateField("DateField " + count++);
+        final AbstractDateField<?, ?> df = new TestDateField(
+                "DateField " + count++);
         test(layout, df);
 
         final CheckBox cb = new CheckBox("Checkbox " + count++);
index 1ce2f389e2b7dab1ea4feee42a5f602c19dd5b60..3f281a14c83327dbf722ade366fc379253240e28 100644 (file)
@@ -104,7 +104,7 @@ public class TreeFilesystemContainer extends com.vaadin.server.LegacyApplication
      */
     @Override
     public void componentEvent(Event event) {
-        // Check if event occured at fsTree component
+        // Check if event occurred at fsTree component
         if (event.getSource() == filesystem) {
             // Check if event is about changing value
             if (event.getClass() == Field.ValueChangeEvent.class) {
index 667c0e80ce7337e7c989f4ed4a22d17422b5ebfc..9e4701f40b059ebae52b11be72905ed821495272 100644 (file)
@@ -26,7 +26,7 @@ import com.vaadin.ui.VerticalLayout;
 
 public class ButtonClick extends AbstractReindeerTestUI {
 
-    public static final String SUCCESS_TEXT = "Click received succesfully!";
+    public static final String SUCCESS_TEXT = "Click received successfully!";
     public static final String WRONG_BUTTON_TEXT = "Wrong button clicked.";
 
     @Override
index cd4b180d6331d4ac158e406a123ea87274b517bd..bf315cecffbff0cb294b47142e9cf59b0c4223dd 100644 (file)
@@ -59,7 +59,7 @@ public class SingleUseDragAndDropUpload extends AbstractTestUIWithLog {
             @Override
             public void drop(DragAndDropEvent event) {
                 Transferable transferable = event.getTransferable();
-                log("Drop occured");
+                log("Drop occurred");
                 if (transferable instanceof WrapperTransferable) {
                     WrapperTransferable wTransferable = (WrapperTransferable) transferable;
                     Html5File[] files = wTransferable.getFiles();
index 21eb8b502ad9826a43f56a017cbf74c0f8e4a7ac..56d970308db78286a679570d46d16c2e1bc48e07 100644 (file)
@@ -256,7 +256,8 @@ public class GridBasics extends AbstractTestUIWithLog {
     private void onSingleSelect(SingleSelectionEvent<DataObject> event) {
         log("SingleSelectionEvent: Selected: "
                 + (event.getSelectedItem().isPresent()
-                        ? event.getSelectedItem().get().toString() : "none"));
+                        ? event.getSelectedItem().get().toString()
+                        : "none"));
     }
 
     private void onMultiSelect(MultiSelectionEvent<DataObject> event) {
@@ -267,13 +268,14 @@ public class GridBasics extends AbstractTestUIWithLog {
         String addedRow = firstAdded.isPresent() ? firstAdded.get().toString()
                 : "none";
         String removedRow = firstRemoved.isPresent()
-                ? firstRemoved.get().toString() : "none";
+                ? firstRemoved.get().toString()
+                : "none";
         log("SelectionEvent: Added " + addedRow + ", Removed " + removedRow);
     }
 
     private Component createMenu() {
         MenuBar menu = new MenuBar();
-        menu.setErrorHandler(error -> log("Exception occured, "
+        menu.setErrorHandler(error -> log("Exception occurred, "
                 + error.getThrowable().getClass().getName() + ": "
                 + error.getThrowable().getMessage()));
         MenuItem componentMenu = menu.addItem("Component", null);
@@ -361,9 +363,11 @@ public class GridBasics extends AbstractTestUIWithLog {
         }
         columnsMenu.addItem("Clear sort", item -> grid.clearSortOrder());
 
-        columnsMenu.addItem("Simple resize mode",
-                item -> grid.setColumnResizeMode(item.isChecked()
-                        ? ColumnResizeMode.SIMPLE : ColumnResizeMode.ANIMATED))
+        columnsMenu
+                .addItem("Simple resize mode",
+                        item -> grid.setColumnResizeMode(
+                                item.isChecked() ? ColumnResizeMode.SIMPLE
+                                        : ColumnResizeMode.ANIMATED))
                 .setCheckable(true);
     }
 
@@ -406,13 +410,12 @@ public class GridBasics extends AbstractTestUIWithLog {
                         ? t -> "Row tooltip for row " + t.getRowNumber()
                         : null))
                 .setCheckable(true);
-        stateMenu
-                .addItem("Cell description generator", item -> grid.getColumns()
-                        .stream().findFirst()
-                        .ifPresent(c -> c.setDescriptionGenerator(
-                                item.isChecked() ? t -> "Cell tooltip for row "
+        stateMenu.addItem("Cell description generator",
+                item -> grid.getColumns().stream().findFirst().ifPresent(
+                        c -> c.setDescriptionGenerator(item.isChecked()
+                                ? t -> "Cell tooltip for row "
                                         + t.getRowNumber() + ", Column 0"
-                                        : null)))
+                                : null)))
                 .setCheckable(true);
         stateMenu.addItem("Item click listener", new Command() {
 
index 8ffe3abadd561707feddd64d10d0d58bdf187a44..2599ed55ff88041343f00301d5239715fb5bf28c 100644 (file)
@@ -172,7 +172,7 @@ public class VaadinTunesLayout extends AbstractReindeerTestUI {
         rootLayout.addComponent(bottom);
 
         // The splitpanel is by default 100% x 100%, but we'll need to adjust
-        // our main window layout to accomodate the height
+        // our main window layout to accommodate the height
         rootLayout.setExpandRatio(bottom, 1.0F);
 
         // Give the sidebar less space than the listing
@@ -245,27 +245,26 @@ public class VaadinTunesLayout extends AbstractReindeerTestUI {
                 new NativeSelect());
 
         // Lets populate the table with random data
-        String[] tracks = { "Red Flag", "Millstone", "Not The Sun",
-                "Breath", "Here We Are", "Deep Heaven", "Her Voice Resides",
+        String[] tracks = { "Red Flag", "Millstone", "Not The Sun", "Breath",
+                "Here We Are", "Deep Heaven", "Her Voice Resides",
                 "Natural Tan", "End It All", "Kings", "Daylight Slaving",
                 "Mad Man", "Resolve", "Teargas", "African Air",
                 "Passing Bird" };
-        String[] times = { "4:12", "6:03", "5:43", "4:32", "3:42",
-                "4:45", "2:56", "9:34", "2:10", "3:44", "5:49", "6:30", "5:18",
-                "7:42", "3:13", "2:52" };
-        String[] artists = { "Billy Talent", "Brand New",
-                "Breaking Benjamin", "Becoming The Archetype",
-                "Bullet For My Valentine", "Chasing Victory", "Chimaira",
-                "Danko Jones", "Deadlock", "Deftones", "From Autumn To Ashes",
-                "Haste The Day", "Four Year Strong", "In Flames", "Kemopetrol",
-                "John Legend" };
+        String[] times = { "4:12", "6:03", "5:43", "4:32", "3:42", "4:45",
+                "2:56", "9:34", "2:10", "3:44", "5:49", "6:30", "5:18", "7:42",
+                "3:13", "2:52" };
+        String[] artists = { "Billy Talent", "Brand New", "Breaking Benjamin",
+                "Becoming The Archetype", "Bullet For My Valentine",
+                "Chasing Victory", "Chimaira", "Danko Jones", "Deadlock",
+                "Deftones", "From Autumn To Ashes", "Haste The Day",
+                "Four Year Strong", "In Flames", "Kemopetrol", "John Legend" };
         String[] albums = { "Once Again", "The Caitiff Choir",
                 "The Devil And God", "Light Grenades", "Dicthonomy",
                 "Back In Black", "Dreamer", "Come Clarity", "Year Zero",
                 "Frames", "Fortress", "Phobia", "The Poison", "Manifesto",
                 "White Pony", "The Big Dirty" };
-        String[] genres = { "Rock", "Metal", "Hardcore", "Indie",
-                "Pop", "Alternative", "Blues", "Jazz", "Hip Hop", "Electronica",
+        String[] genres = { "Rock", "Metal", "Hardcore", "Indie", "Pop",
+                "Alternative", "Blues", "Jazz", "Hip Hop", "Electronica",
                 "Punk", "Hard Rock", "Dance", "R'n'B", "Gospel", "Country" };
         for (int i = 0; i < 1000; i++) {
             NativeSelect s = new NativeSelect();
index 8796e724bedfee6d516044812150bc6d56e0f282..fd1528f8d47aa577941064aba7796901fdc79ea4 100644 (file)
@@ -67,7 +67,7 @@ public class TreeBasicFeatures extends AbstractTestUIWithLog {
 
     private Component createMenu() {
         MenuBar menu = new MenuBar();
-        menu.setErrorHandler(error -> log("Exception occured, "
+        menu.setErrorHandler(error -> log("Exception occurred, "
                 + error.getThrowable().getClass().getName() + ": "
                 + error.getThrowable().getMessage()));
         MenuItem componentMenu = menu.addItem("Component", null);
@@ -111,7 +111,8 @@ public class TreeBasicFeatures extends AbstractTestUIWithLog {
         componentMenu
                 .addItem("Style Generator",
                         menuItem -> tree.setStyleGenerator(menuItem.isChecked()
-                                ? t -> "level" + t.getDepth() : t -> null))
+                                ? t -> "level" + t.getDepth()
+                                : t -> null))
                 .setCheckable(true);
 
         return menu;
index f58e0db6b46e1b5a2663dd51e222de156b9c709d..1900ea2447f6ad87aa81b4a8fa7aee7d59b522d1 100644 (file)
@@ -45,8 +45,8 @@ public class GridSelectAllTest extends GridBasicsTest {
         selectionBox.click();
         selectionBox.click();
 
-        assertFalse("Exception occured on row reselection.", logContainsText(
-                "Exception occured, java.lang.IllegalStateException: No item id for key 101 found."));
+        assertFalse("Exception occurred on row reselection.", logContainsText(
+                "Exception occurred, java.lang.IllegalStateException: No item id for key 101 found."));
     }
 
     @Test
index 93575e26accf8d5b1b672ae62bc9a446a65c2966..7a11b3375e6a7553201b75b9150843566da854e8 100644 (file)
@@ -267,7 +267,7 @@ public class GridSelectionTest extends GridBasicsTest {
         assertFalse(
                 "Unexpected NullPointerException when removing selected rows",
                 logContainsText(
-                        "Exception occured, java.lang.NullPointerException: null"));
+                        "Exception occurred, java.lang.NullPointerException: null"));
     }
 
     @Test
index 288000ff22d27c7a47a5e9807ef7553633fc9095..9722f0e80ecd3329eb35f5ecd6ed9e2a8b4c125f 100644 (file)
@@ -177,7 +177,7 @@ public class GridEditorBufferedTest extends GridEditorTest {
     private void makeInvalidEdition() {
         editRow(5);
         assertFalse(logContainsText(
-                "Exception occured, java.lang.IllegalStateException"));
+                "Exception occurred, java.lang.IllegalStateException"));
 
         GridEditorElement editor = getGridElement().getEditor();
 
index 9eacb3832e5e3e546e31b5294214a9b1073759d4..9a751a70b54bfb7932fe872a27619e9ec7c59d93 100644 (file)
@@ -32,10 +32,10 @@ import com.vaadin.testbench.elements.GridElement.GridCellElement;
 
 public class GridEditorUnbufferedTest extends GridEditorTest {
 
-    private static final String[] TOGGLE_EDITOR_BUFFERED = {
-            "Component", "Editor", "Buffered mode" };
-    private static final String[] CANCEL_EDIT = { "Component",
-            "Editor", "Cancel edit" };
+    private static final String[] TOGGLE_EDITOR_BUFFERED = { "Component",
+            "Editor", "Buffered mode" };
+    private static final String[] CANCEL_EDIT = { "Component", "Editor",
+            "Cancel edit" };
 
     @Override
     @Before
@@ -63,7 +63,7 @@ public class GridEditorUnbufferedTest extends GridEditorTest {
         assertEditorOpen();
         selectMenuPath(TOGGLE_EDITOR_BUFFERED);
         boolean thrown = logContainsText(
-                "Exception occured, java.lang.IllegalStateException");
+                "Exception occurred, java.lang.IllegalStateException");
         assertTrue("IllegalStateException was not thrown", thrown);
     }
 
index 7db4ec13700f60d0a662c59a85bd87ad8d0c3c32..9cb5dd00379a5233e2de8db19f4db8b39131dc5c 100644 (file)
@@ -54,7 +54,7 @@ public class MemoryLeakTableTest extends MultiBrowserTest {
     @Test
     @Ignore
     public void memoryTest() throws IOException {
-        // Set breakoint and look memory consuption in Profiler
+        // Set breakpoint and look memory consumption in Profiler
         // Mozilla Firefox doesn't provide memory usage profiler, use chrome.
 
         openTestURL();
@@ -75,7 +75,7 @@ public class MemoryLeakTableTest extends MultiBrowserTest {
             }
             btnDel.click();
         }
-        // Set breakoint and look memory consuption in Profiler
+        // Set breakpoint and look memory consumption in Profiler
         btnAdd = $(ButtonElement.class).get(0);
     }
 
index b408308f7b3dee6fafad0c04f4fc4117e5cbc147..0e73d689265b7af5ad3f2469a5040c88ecb7c030 100644 (file)
@@ -174,7 +174,7 @@ public class GridEditorBufferedTest extends GridEditorTest {
     private void makeInvalidEdition() {
         selectMenuPath(EDIT_ITEM_5);
         assertFalse(logContainsText(
-                "Exception occured, java.lang.IllegalStateException"));
+                "Exception occurred, java.lang.IllegalStateException"));
 
         GridEditorElement editor = getGridElement().getEditor();
 
@@ -316,7 +316,7 @@ public class GridEditorBufferedTest extends GridEditorTest {
 
         selectMenuPath(EDIT_ITEM_100);
         boolean thrown = logContainsText(
-                "Exception occured, java.lang.IllegalStateException");
+                "Exception occurred, java.lang.IllegalStateException");
         assertTrue("IllegalStateException thrown", thrown);
 
         assertEditorOpen();
index f751e60c2c0c75cabbf87854e477e24c2f31cc42..7c982dabdbe094a2210c50de8a1d4af96133cca9 100644 (file)
@@ -42,12 +42,12 @@ public abstract class GridEditorTest extends GridBasicFeaturesTest {
             .className("v-grid-editor-cancel");
     protected static final By BY_EDITOR_SAVE = By
             .className("v-grid-editor-save");
-    protected static final String[] EDIT_ITEM_5 = { "Component",
-            "Editor", "Edit item 5" };
-    protected static final String[] EDIT_ITEM_100 = { "Component",
-            "Editor", "Edit item 100" };
-    protected static final String[] TOGGLE_EDIT_ENABLED = {
-            "Component", "Editor", "Enabled" };
+    protected static final String[] EDIT_ITEM_5 = { "Component", "Editor",
+            "Edit item 5" };
+    protected static final String[] EDIT_ITEM_100 = { "Component", "Editor",
+            "Edit item 100" };
+    protected static final String[] TOGGLE_EDIT_ENABLED = { "Component",
+            "Editor", "Enabled" };
 
     @Before
     public void setUp() {
@@ -71,7 +71,7 @@ public abstract class GridEditorTest extends GridBasicFeaturesTest {
         selectMenuPath(EDIT_ITEM_5);
         assertEditorClosed();
         boolean thrown = logContainsText(
-                "Exception occured, java.lang.IllegalStateException");
+                "Exception occurred, java.lang.IllegalStateException");
         assertTrue("IllegalStateException thrown", thrown);
     }
 
@@ -81,7 +81,7 @@ public abstract class GridEditorTest extends GridBasicFeaturesTest {
         selectMenuPath(TOGGLE_EDIT_ENABLED);
         assertEditorOpen();
         boolean thrown = logContainsText(
-                "Exception occured, java.lang.IllegalStateException");
+                "Exception occurred, java.lang.IllegalStateException");
         assertTrue("IllegalStateException thrown", thrown);
     }
 
index 74cf478291eb59dce192281d9dceb15b3e73beda..a4a715d9985b45295e353ca1b927b2d2d3389ddc 100644 (file)
@@ -31,10 +31,10 @@ import com.vaadin.testbench.elements.GridElement.GridCellElement;
 
 public class GridEditorUnbufferedTest extends GridEditorTest {
 
-    private static final String[] TOGGLE_EDITOR_BUFFERED = {
-            "Component", "Editor", "Buffered mode" };
-    private static final String[] CANCEL_EDIT = { "Component",
-            "Editor", "Cancel edit" };
+    private static final String[] TOGGLE_EDITOR_BUFFERED = { "Component",
+            "Editor", "Buffered mode" };
+    private static final String[] CANCEL_EDIT = { "Component", "Editor",
+            "Cancel edit" };
 
     @Override
     @Before
@@ -62,7 +62,7 @@ public class GridEditorUnbufferedTest extends GridEditorTest {
         assertEditorOpen();
         selectMenuPath(TOGGLE_EDITOR_BUFFERED);
         boolean thrown = logContainsText(
-                "Exception occured, java.lang.IllegalStateException");
+                "Exception occurred, java.lang.IllegalStateException");
         assertTrue("IllegalStateException thrown", thrown);
     }
 
index c23ec16232d7eed28faa2c36b4d67337cb1f9a93..53a229a4c076fcd8570acc13954f647a7b343998 100644 (file)
@@ -512,7 +512,7 @@ public class GridStructureTest extends GridBasicFeaturesTest {
     public void testAddThirdRowToGrid() {
         openTestURL();
         selectMenuPath("Component", "Body rows", "Add third row");
-        assertFalse(logContainsText("Exception occured"));
+        assertFalse(logContainsText("Exception occurred"));
     }
 
     @Test