diff options
author | Raphael Ackermann <raphael.ackermann@gmail.com> | 2015-04-04 19:12:40 +0200 |
---|---|---|
committer | Raphael Ackermann <raphael.ackermann@gmail.com> | 2015-04-04 19:12:40 +0200 |
commit | cd0b326851630d762b9e71631ef26c0385d4c850 (patch) | |
tree | 3cb51d5c8865178626b4eb1e58d8785de77f3095 /server/src/com | |
parent | dad7ac2309a550de6b02614c3a9be93d84e843e0 (diff) | |
download | vaadin-framework-cd0b326851630d762b9e71631ef26c0385d4c850.tar.gz vaadin-framework-cd0b326851630d762b9e71631ef26c0385d4c850.zip |
Fixed typos in javadoc (#17384)
Change-Id: Ic74c269031e0131e2db55dace81ae51869308f12
Diffstat (limited to 'server/src/com')
-rw-r--r-- | server/src/com/vaadin/ui/Component.java | 13 | ||||
-rw-r--r-- | server/src/com/vaadin/ui/Table.java | 38 |
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("Enabled"); @@ -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 316564c7e3..347bb8fbff 100644 --- a/server/src/com/vaadin/ui/Table.java +++ b/server/src/com/vaadin/ui/Table.java @@ -700,7 +700,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 @@ -727,7 +727,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 @@ -760,7 +760,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 @@ -787,7 +787,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 @@ -887,7 +887,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. * @@ -896,9 +896,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) { @@ -975,7 +975,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 @@ -1091,7 +1091,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; @@ -1193,7 +1193,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. */ @@ -2598,7 +2598,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. */ @@ -4326,7 +4326,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 @@ -4361,7 +4361,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 @@ -4571,7 +4571,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(); @@ -4757,11 +4757,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 * @@ -4776,7 +4776,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. * @@ -5346,7 +5346,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; @@ -5396,7 +5396,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; |