aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Ackermann <raphael.ackermann@gmail.com>2015-04-04 19:12:40 +0200
committerMarkus Koivisto <markus@vaadin.com>2015-04-15 11:36:04 +0300
commit8256a3a7c15a87b734bee6de18ee5a61bacca1f0 (patch)
tree621f13d79560e485e1fb281c3876369aad627481
parent9a940720e234ad9f52af3620c676a6af3fcbe03c (diff)
downloadvaadin-framework-8256a3a7c15a87b734bee6de18ee5a61bacca1f0.tar.gz
vaadin-framework-8256a3a7c15a87b734bee6de18ee5a61bacca1f0.zip
Fixed typos in javadoc (#17384)
Change-Id: Ic74c269031e0131e2db55dace81ae51869308f12
-rw-r--r--server/src/com/vaadin/ui/Component.java13
-rw-r--r--server/src/com/vaadin/ui/Table.java38
2 files changed, 26 insertions, 25 deletions
diff --git a/server/src/com/vaadin/ui/Component.java b/server/src/com/vaadin/ui/Component.java
index 9e0816a398..adef4b69c5 100644
--- a/server/src/com/vaadin/ui/Component.java
+++ b/server/src/com/vaadin/ui/Component.java
@@ -149,8 +149,8 @@ public interface Component extends ClientConnector, Sizeable, Serializable {
*
* <p>
* Each style name will occur in two versions: one as specified and one that
- * is prefixed wil the style name of the component. For example, if you have
- * a {@code Button} component and give it "{@code mystyle}" style, the
+ * is prefixed with the style name of the component. For example, if you
+ * have a {@code Button} component and give it "{@code mystyle}" style, the
* component will have both "{@code mystyle}" and "{@code v-button-mystyle}"
* styles. You could then style the component either with:
* </p>
@@ -253,9 +253,10 @@ public interface Component extends ClientConnector, Sizeable, Serializable {
public boolean isEnabled();
/**
- * Enables or disables the component. The user can not interact disabled
- * components, which are shown with a style that indicates the status,
- * usually shaded in light gray color. Components are enabled by default.
+ * Enables or disables the component. The user can not interact with
+ * disabled components, which are shown with a style that indicates the
+ * status, usually shaded in light gray color. Components are enabled by
+ * default.
*
* <pre>
* Button enabled = new Button(&quot;Enabled&quot;);
@@ -909,7 +910,7 @@ public interface Component extends ClientConnector, Sizeable, Serializable {
* </pre>
*
* @param event
- * the event that has occured.
+ * the event that has occurred.
*/
public void componentEvent(Component.Event event);
}
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java
index 4fefd8b9e8..6822756beb 100644
--- a/server/src/com/vaadin/ui/Table.java
+++ b/server/src/com/vaadin/ui/Table.java
@@ -699,7 +699,7 @@ public class Table extends AbstractSelect implements Action.Container,
* Gets the headers of the columns.
*
* <p>
- * The headers match the property id:s given my the set visible column
+ * The headers match the property id:s given by the set visible column
* headers. The table must be set in either
* {@link #COLUMN_HEADER_MODE_EXPLICIT} or
* {@link #COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID} mode to show the
@@ -726,7 +726,7 @@ public class Table extends AbstractSelect implements Action.Container,
* Sets the headers of the columns.
*
* <p>
- * The headers match the property id:s given my the set visible column
+ * The headers match the property id:s given by the set visible column
* headers. The table must be set in either
* {@link #COLUMN_HEADER_MODE_EXPLICIT} or
* {@link #COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID} mode to show the
@@ -759,7 +759,7 @@ public class Table extends AbstractSelect implements Action.Container,
* Gets the icons of the columns.
*
* <p>
- * The icons in headers match the property id:s given my the set visible
+ * The icons in headers match the property id:s given by the set visible
* column headers. The table must be set in either
* {@link #COLUMN_HEADER_MODE_EXPLICIT} or
* {@link #COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID} mode to show the headers
@@ -786,7 +786,7 @@ public class Table extends AbstractSelect implements Action.Container,
* Sets the icons of the columns.
*
* <p>
- * The icons in headers match the property id:s given my the set visible
+ * The icons in headers match the property id:s given by the set visible
* column headers. The table must be set in either
* {@link #COLUMN_HEADER_MODE_EXPLICIT} or
* {@link #COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID} mode to show the headers
@@ -886,7 +886,7 @@ public class Table extends AbstractSelect implements Action.Container,
}
/**
- * Sets columns width (in pixels). Theme may not necessary respect very
+ * Sets columns width (in pixels). Theme may not necessarily respect very
* small or very big values. Setting width to -1 (default) means that theme
* will make decision of width.
*
@@ -895,9 +895,9 @@ public class Table extends AbstractSelect implements Action.Container,
* is used. See @link {@link #setColumnExpandRatio(Object, float)}.
*
* @param propertyId
- * colunmns property id
+ * columns property id
* @param width
- * width to be reserved for colunmns content
+ * width to be reserved for columns content
* @since 4.0.3
*/
public void setColumnWidth(Object propertyId, int width) {
@@ -974,7 +974,7 @@ public class Table extends AbstractSelect implements Action.Container,
}
/**
- * Gets the column expand ratio for a columnd. See
+ * Gets the column expand ratio for a column. See
* {@link #setColumnExpandRatio(Object, float)}
*
* @param propertyId
@@ -1090,7 +1090,7 @@ public class Table extends AbstractSelect implements Action.Container,
*/
public Object getCurrentPageFirstItemId() {
- // Priorise index over id if indexes are supported
+ // Prioritise index over id if indexes are supported
if (items instanceof Container.Indexed) {
final int index = getCurrentPageFirstItemIndex();
Object id = null;
@@ -1192,7 +1192,7 @@ public class Table extends AbstractSelect implements Action.Container,
* Gets the icon Resource for the specified column.
*
* @param propertyId
- * the propertyId indentifying the column.
+ * the propertyId identifying the column.
* @return the icon for the specified column; null if the column has no icon
* set, or if the column is not visible.
*/
@@ -2591,7 +2591,7 @@ public class Table extends AbstractSelect implements Action.Container,
* types.
* @param itemId
* the Id the new row. If null, a new id is automatically
- * assigned. If given, the table cant already have a item with
+ * assigned. If given, the table cannot already have a item with
* given id.
* @return Returns item id for the new row. Returns null if operation fails.
*/
@@ -4319,7 +4319,7 @@ public class Table extends AbstractSelect implements Action.Container,
* Adds a new property to the table and show it as a visible column.
*
* @param propertyId
- * the Id of the proprty.
+ * the Id of the property.
* @param type
* the class of the property.
* @param defaultValue
@@ -4354,7 +4354,7 @@ public class Table extends AbstractSelect implements Action.Container,
* Adds a new property to the table and show it as a visible column.
*
* @param propertyId
- * the Id of the proprty
+ * the Id of the property
* @param type
* the class of the property
* @param defaultValue
@@ -4564,7 +4564,7 @@ public class Table extends AbstractSelect implements Action.Container,
disableContentRefreshing();
super.containerPropertySetChange(event);
- // sanitetize visibleColumns. note that we are not adding previously
+ // sanitize visibleColumns. note that we are not adding previously
// non-existing properties as columns
Collection<?> containerPropertyIds = getContainerDataSource()
.getContainerPropertyIds();
@@ -4750,11 +4750,11 @@ public class Table extends AbstractSelect implements Action.Container,
* If table is editable a editor of type Field is created for each table
* cell. The assigned FieldFactory is used to create the instances.
*
- * To provide custom editors for table cells create a class implementins the
+ * To provide custom editors for table cells create a class implementing the
* FieldFactory interface, and assign it to table, and set the editable
* property to true.
*
- * @return true if table is editable, false oterwise.
+ * @return true if table is editable, false otherwise.
* @see Field
* @see FieldFactory
*
@@ -4769,7 +4769,7 @@ public class Table extends AbstractSelect implements Action.Container,
* If table is editable a editor of type Field is created for each table
* cell. The assigned FieldFactory is used to create the instances.
*
- * To provide custom editors for table cells create a class implementins the
+ * To provide custom editors for table cells create a class implementing the
* FieldFactory interface, and assign it to table, and set the editable
* property to true.
*
@@ -5339,7 +5339,7 @@ public class Table extends AbstractSelect implements Action.Container,
/**
* Gets the property id of the column which header was pressed
*
- * @return The column propety id
+ * @return The column property id
*/
public Object getPropertyId() {
return columnPropertyId;
@@ -5389,7 +5389,7 @@ public class Table extends AbstractSelect implements Action.Container,
/**
* Gets the property id of the column which header was pressed
*
- * @return The column propety id
+ * @return The column property id
*/
public Object getPropertyId() {
return columnPropertyId;