From: Henrik Paul Date: Fri, 24 Oct 2014 12:26:28 +0000 (+0300) Subject: Adds hints to related methods in GridStaticSection (#13334) X-Git-Tag: 7.4.0.beta1~9^2~126 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3ae0eeed07413fd641fc0992d6ec92c6d0c57914;p=vaadin-framework.git Adds hints to related methods in GridStaticSection (#13334) Change-Id: If10a99a16368d9d5711ab4c8a5dd12ac984294a8 --- 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> * * @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> * 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> * 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> * * @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> * * @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> * * @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> * * @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> * 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> * 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> * * @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();