diff options
author | Henrik Paul <henrik@vaadin.com> | 2014-10-24 15:26:28 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-10-28 11:34:01 +0000 |
commit | 3ae0eeed07413fd641fc0992d6ec92c6d0c57914 (patch) | |
tree | d4f592f7e93a78c2dc589185c34d83fa62f48524 | |
parent | 910f00d22208da68d3c327b35d93c4893df7e90d (diff) | |
download | vaadin-framework-3ae0eeed07413fd641fc0992d6ec92c6d0c57914.tar.gz vaadin-framework-3ae0eeed07413fd641fc0992d6ec92c6d0c57914.zip |
Adds hints to related methods in GridStaticSection (#13334)
Change-Id: If10a99a16368d9d5711ab4c8a5dd12ac984294a8
-rw-r--r-- | client/src/com/vaadin/client/ui/grid/GridStaticSection.java | 20 | ||||
-rw-r--r-- | server/src/com/vaadin/ui/components/grid/GridStaticSection.java | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/GridStaticSection.java b/client/src/com/vaadin/client/ui/grid/GridStaticSection.java index 05b809e156..01248f12d6 100644 --- a/client/src/com/vaadin/client/ui/grid/GridStaticSection.java +++ b/client/src/com/vaadin/client/ui/grid/GridStaticSection.java @@ -418,6 +418,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * * @throws IndexOutOfBoundsException * if the index is out of bounds + * @see #appendRow() + * @see #prependRow() + * @see #removeRow(int) + * @see #removeRow(StaticRow) */ public ROWTYPE addRow(int index) { ROWTYPE row = createRow(); @@ -435,6 +439,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * Adds a new row at the top of this section. * * @return the new row + * @see #appendRow() + * @see #addRow(int) + * @see #removeRow(int) + * @see #removeRow(StaticRow) */ public ROWTYPE prependRow() { return addRow(0); @@ -444,6 +452,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * Adds a new row at the bottom of this section. * * @return the new row + * @see #prependRow() + * @see #addRow(int) + * @see #removeRow(int) + * @see #removeRow(StaticRow) */ public ROWTYPE appendRow() { return addRow(rows.size()); @@ -457,6 +469,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * * @throws IndexOutOfBoundsException * if the index is out of bounds + * @see #addRow(int) + * @see #appendRow() + * @see #prependRow() + * @see #removeRow(StaticRow) */ public void removeRow(int index) { rows.remove(index); @@ -471,6 +487,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * * @throws IllegalArgumentException * if the row does not exist in this section + * @see #addRow(int) + * @see #appendRow() + * @see #prependRow() + * @see #removeRow(int) */ public void removeRow(ROWTYPE row) { try { diff --git a/server/src/com/vaadin/ui/components/grid/GridStaticSection.java b/server/src/com/vaadin/ui/components/grid/GridStaticSection.java index 4f5a28ec5c..74acc2b781 100644 --- a/server/src/com/vaadin/ui/components/grid/GridStaticSection.java +++ b/server/src/com/vaadin/ui/components/grid/GridStaticSection.java @@ -355,6 +355,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * * @throws IndexOutOfBoundsException * if the index is out of bounds + * @see #removeRow(StaticRow) + * @see #addRowAt(int) + * @see #appendRow() + * @see #prependRow() */ public ROWTYPE removeRow(int rowIndex) { ROWTYPE row = rows.remove(rowIndex); @@ -372,6 +376,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * * @throws IllegalArgumentException * if the row does not exist in this section + * @see #removeRow(int) + * @see #addRowAt(int) + * @see #appendRow() + * @see #prependRow() */ public void removeRow(ROWTYPE row) { try { @@ -397,6 +405,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * Adds a new row at the top of this section. * * @return the new row + * @see #appendRow() + * @see #addRowAt(int) + * @see #removeRow(StaticRow) + * @see #removeRow(int) */ public ROWTYPE prependRow() { return addRowAt(0); @@ -406,6 +418,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * Adds a new row at the bottom of this section. * * @return the new row + * @see #prependRow() + * @see #addRowAt(int) + * @see #removeRow(StaticRow) + * @see #removeRow(int) */ public ROWTYPE appendRow() { return addRowAt(rows.size()); @@ -420,6 +436,10 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> * * @throws IndexOutOfBoundsException * if the index is out of bounds + * @see #appendRow() + * @see #prependRow() + * @see #removeRow(StaticRow) + * @see #removeRow(int) */ public ROWTYPE addRowAt(int index) { ROWTYPE row = createRow(); |