diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-20 10:15:43 +0200 |
---|---|---|
committer | Péter Török <31210544+torok-peter@users.noreply.github.com> | 2017-10-20 11:15:43 +0300 |
commit | 69ac68e064efb91ab21cf5aa4fd7533ae07b6089 (patch) | |
tree | 293acecc2055b5d19aa4c3a6c5158ff28d0d5600 /client | |
parent | df2157ab9f39f7170675c8540a589cdc101d9456 (diff) | |
download | vaadin-framework-69ac68e064efb91ab21cf5aa4fd7533ae07b6089.tar.gz vaadin-framework-69ac68e064efb91ab21cf5aa4fd7533ae07b6089.zip |
Fix typos (#10213)
* Fix typos
* Fix
Diffstat (limited to 'client')
16 files changed, 28 insertions, 28 deletions
diff --git a/client/src/main/java/com/vaadin/client/ApplicationConfiguration.java b/client/src/main/java/com/vaadin/client/ApplicationConfiguration.java index f36a181dd2..af0ca05b65 100644 --- a/client/src/main/java/com/vaadin/client/ApplicationConfiguration.java +++ b/client/src/main/java/com/vaadin/client/ApplicationConfiguration.java @@ -95,7 +95,7 @@ public class ApplicationConfiguration implements EntryPoint { * * @param name * name of the configuration parameter - * @return boolean value of the configuration paramter, or + * @return boolean value of the configuration parameter, or * <code>null</code> if no value is defined */ private native Boolean getConfigBoolean(String name) @@ -116,7 +116,7 @@ public class ApplicationConfiguration implements EntryPoint { * * @param name * name of the configuration parameter - * @return integer value of the configuration paramter, or + * @return integer value of the configuration parameter, or * <code>null</code> if no value is defined */ private native Integer getConfigInteger(String name) diff --git a/client/src/main/java/com/vaadin/client/ComponentDetail.java b/client/src/main/java/com/vaadin/client/ComponentDetail.java index a6621ac178..d5dfce955f 100644 --- a/client/src/main/java/com/vaadin/client/ComponentDetail.java +++ b/client/src/main/java/com/vaadin/client/ComponentDetail.java @@ -29,7 +29,7 @@ class ComponentDetail { } /** - * Returns a TooltipInfo assosiated with Component. If element is given, + * Returns a TooltipInfo associated with Component. If element is given, * returns an additional TooltipInfo. * * @param key diff --git a/client/src/main/java/com/vaadin/client/ComputedStyle.java b/client/src/main/java/com/vaadin/client/ComputedStyle.java index b54ee64ed4..8b21a006fe 100644 --- a/client/src/main/java/com/vaadin/client/ComputedStyle.java +++ b/client/src/main/java/com/vaadin/client/ComputedStyle.java @@ -263,7 +263,7 @@ public class ComputedStyle { * * @param String * a value starting with a number - * @return int the value from the string before any non-numeric characters. + * @return the value from the string before any non-numeric characters. * If the value cannot be parsed to a number, returns 0. */ private static native int parseIntNative(final String value) diff --git a/client/src/main/java/com/vaadin/client/WidgetUtil.java b/client/src/main/java/com/vaadin/client/WidgetUtil.java index e6304343aa..d9061321ca 100644 --- a/client/src/main/java/com/vaadin/client/WidgetUtil.java +++ b/client/src/main/java/com/vaadin/client/WidgetUtil.java @@ -1428,7 +1428,7 @@ public class WidgetUtil { /** * Wrap a css size value and its unit and translate back and forth to the * string representation.<br/> - * Eg. 50%, 123px, ... + * E.g. 50%, 123px, ... * * @since 7.2.6 * @author Vaadin Ltd diff --git a/client/src/main/java/com/vaadin/client/componentlocator/VaadinFinderLocatorStrategy.java b/client/src/main/java/com/vaadin/client/componentlocator/VaadinFinderLocatorStrategy.java index 2c2ff5707c..8a79ad9f35 100644 --- a/client/src/main/java/com/vaadin/client/componentlocator/VaadinFinderLocatorStrategy.java +++ b/client/src/main/java/com/vaadin/client/componentlocator/VaadinFinderLocatorStrategy.java @@ -185,7 +185,7 @@ public class VaadinFinderLocatorStrategy implements LocatorStrategy { List<String> paths = new ArrayList<>(); int compIdx = 0; String basePath = components.get(compIdx).replace("com.vaadin.ui.", ""); - // Add a basic search for the first element (eg. //Button) + // Add a basic search for the first element (e.g. //Button) paths.add((components.size() == 1 ? "/" : "//") + basePath); while (++compIdx < components.size()) { // Loop through the remaining components diff --git a/client/src/main/java/com/vaadin/client/ui/ShortcutActionHandler.java b/client/src/main/java/com/vaadin/client/ui/ShortcutActionHandler.java index 01a0146280..133d195f48 100644 --- a/client/src/main/java/com/vaadin/client/ui/ShortcutActionHandler.java +++ b/client/src/main/java/com/vaadin/client/ui/ShortcutActionHandler.java @@ -32,9 +32,9 @@ import com.vaadin.client.UIDL; import com.vaadin.client.Util; /** - * A helper class to implement keyboard shorcut handling. Keeps a list of owners - * actions and fires actions to server. User class needs to delegate keyboard - * events to handleKeyboardEvents function. + * A helper class to implement keyboard shortcut handling. Keeps a list of + * owners actions and fires actions to server. User class needs to delegate + * keyboard events to handleKeyboardEvents function. * * @author Vaadin Ltd */ diff --git a/client/src/main/java/com/vaadin/client/ui/SimpleFocusablePanel.java b/client/src/main/java/com/vaadin/client/ui/SimpleFocusablePanel.java index 6539103c63..e08a9be18d 100644 --- a/client/src/main/java/com/vaadin/client/ui/SimpleFocusablePanel.java +++ b/client/src/main/java/com/vaadin/client/ui/SimpleFocusablePanel.java @@ -35,8 +35,8 @@ import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.impl.FocusImpl; /** - * Compared to FocusPanel in GWT this panel does not support eg. accesskeys, but - * is simpler by its dom hierarchy nor supports focusing via java api. + * Compared to FocusPanel in GWT this panel does not support e.g. accesskeys, + * but is simpler by its dom hierarchy nor supports focusing via java api. */ public class SimpleFocusablePanel extends SimplePanel implements HasFocusHandlers, HasBlurHandlers, HasKeyDownHandlers, diff --git a/client/src/main/java/com/vaadin/client/ui/VAbstractCalendarPanel.java b/client/src/main/java/com/vaadin/client/ui/VAbstractCalendarPanel.java index b250d1bb53..62bc4e28f8 100644 --- a/client/src/main/java/com/vaadin/client/ui/VAbstractCalendarPanel.java +++ b/client/src/main/java/com/vaadin/client/ui/VAbstractCalendarPanel.java @@ -76,12 +76,12 @@ public abstract class VAbstractCalendarPanel<R extends Enum<R>> /** * Called when calendar user triggers a submitting operation in calendar - * panel. Eg. clicking on day or hitting enter. + * panel. E.g. clicking on day or hitting enter. */ void onSubmit(); /** - * On eg. ESC key. + * On e.g. ESC key. */ void onCancel(); } diff --git a/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java b/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java index 238e8e9284..e2863c449c 100644 --- a/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java +++ b/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java @@ -852,7 +852,7 @@ public abstract class VAbstractSplitPanel extends ComplexPanel { } /** - * Ensures the panels are scrollable eg. after style name changes + * Ensures the panels are scrollable e.g. after style name changes * <p> * For internal use only. May be removed or replaced in the future. */ diff --git a/client/src/main/java/com/vaadin/client/ui/VDragAndDropWrapper.java b/client/src/main/java/com/vaadin/client/ui/VDragAndDropWrapper.java index 0ef910ac96..abf6bd9164 100644 --- a/client/src/main/java/com/vaadin/client/ui/VDragAndDropWrapper.java +++ b/client/src/main/java/com/vaadin/client/ui/VDragAndDropWrapper.java @@ -123,7 +123,7 @@ public class VDragAndDropWrapper extends VCustomComponent if (getConnector().isEnabled() && startDrag(event.getNativeEvent())) { /* - * Dont let eg. panel start scrolling. + * Don't let e.g. panel start scrolling. */ event.stopPropagation(); } @@ -467,11 +467,11 @@ public class VDragAndDropWrapper extends VCustomComponent public final native void postFile(VHtml5File file) /*-{ - + this.setRequestHeader('Content-Type', 'multipart/form-data'); // Seems like IE10 will loose the file if we don't keep a reference to it... this.fileBeingUploaded = file; - + this.send(file); }-*/; @@ -627,19 +627,19 @@ public class VDragAndDropWrapper extends VCustomComponent protected native void hookHtml5Events(com.google.gwt.user.client.Element el) /*-{ var me = this; - + el.addEventListener("dragenter", $entry(function(ev) { return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragEnter(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); }), false); - + el.addEventListener("dragleave", $entry(function(ev) { return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragLeave(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); }), false); - + el.addEventListener("dragover", $entry(function(ev) { return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragOver(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); }), false); - + el.addEventListener("drop", $entry(function(ev) { return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragDrop(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); }), false); diff --git a/client/src/main/java/com/vaadin/client/ui/VOverlay.java b/client/src/main/java/com/vaadin/client/ui/VOverlay.java index 2a74025204..7b6dc85f80 100644 --- a/client/src/main/java/com/vaadin/client/ui/VOverlay.java +++ b/client/src/main/java/com/vaadin/client/ui/VOverlay.java @@ -129,7 +129,7 @@ public class VOverlay extends Overlay { public static com.google.gwt.user.client.Element getOverlayContainer( ApplicationConnection ac) { String id = ac.getConfiguration().getRootPanelId(); - id = id += "-overlays"; + id += "-overlays"; Element container = DOM.getElementById(id); if (container == null) { container = DOM.createDiv(); diff --git a/client/src/main/java/com/vaadin/client/ui/VPanel.java b/client/src/main/java/com/vaadin/client/ui/VPanel.java index 06c5697a0b..28daf1e6ac 100644 --- a/client/src/main/java/com/vaadin/client/ui/VPanel.java +++ b/client/src/main/java/com/vaadin/client/ui/VPanel.java @@ -175,7 +175,7 @@ public class VPanel extends SimplePanel implements ShortcutActionHandlerOwner, } /** - * Ensures the panel is scrollable eg. after style name changes. + * Ensures the panel is scrollable e.g. after style name changes. * <p> * For internal use only. May be removed or replaced in the future. */ diff --git a/client/src/main/java/com/vaadin/client/ui/VUI.java b/client/src/main/java/com/vaadin/client/ui/VUI.java index 8fa0308df4..6e3ffd716f 100644 --- a/client/src/main/java/com/vaadin/client/ui/VUI.java +++ b/client/src/main/java/com/vaadin/client/ui/VUI.java @@ -354,7 +354,7 @@ public class VUI extends SimplePanel implements ResizeHandler, } /** - * Ensures the widget is scrollable eg. after style name changes. + * Ensures the widget is scrollable e.g. after style name changes. * <p> * For internal use only. May be removed or replaced in the future. */ diff --git a/client/src/main/java/com/vaadin/client/ui/VUpload.java b/client/src/main/java/com/vaadin/client/ui/VUpload.java index 5d78a68011..ef66f07467 100644 --- a/client/src/main/java/com/vaadin/client/ui/VUpload.java +++ b/client/src/main/java/com/vaadin/client/ui/VUpload.java @@ -147,7 +147,7 @@ public class VUpload extends SimplePanel { @Override public void onClick(ClickEvent event) { if (isImmediateMode()) { - // fire click on upload (eg. focused button and hit space) + // fire click on upload (e.g. focused button and hit space) fireNativeClick(fu.getElement()); } else { submit(); diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java b/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java index 6f3ca4495a..c0cdeb06b8 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java @@ -37,7 +37,7 @@ public class VTransferable { private final Map<String, Object> variables = new HashMap<>(); /** - * Returns the component from which the transferable is created (eg. a tree + * Returns the component from which the transferable is created (e.g. a tree * which node is dragged). * * @return the component @@ -48,7 +48,7 @@ public class VTransferable { /** * Sets the component currently being dragged or from which the transferable - * is created (eg. a tree which node is dragged). + * is created (e.g. a tree which node is dragged). * <p> * The server side counterpart of the component may implement * {@link DragSource} interface if it wants to translate or complement the diff --git a/client/src/main/java/com/vaadin/client/ui/ui/UIConnector.java b/client/src/main/java/com/vaadin/client/ui/ui/UIConnector.java index b502b89135..35055a746e 100644 --- a/client/src/main/java/com/vaadin/client/ui/ui/UIConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/ui/UIConnector.java @@ -186,7 +186,7 @@ public class UIConnector extends AbstractSingleComponentContainerConnector @Override public void uiClosed(final boolean sessionExpired) { Scheduler.get().scheduleDeferred(() -> { - // Only notify user if we're still running and not eg. + // Only notify user if we're still running and not e.g. // navigating away (#12298) if (getConnection().isApplicationRunning()) { if (sessionExpired) { |