title: How to get row number of a widget inside a flextable?
body: <p>I found this code on internet but not sure it is the optimum solution</p>
  
  <pre><code>public int getWidgetRow(Widget widget, FlexTable table) {
  
          for (int row = 0; row &lt; table.getRowCount(); row++) {
            for (int col = 0; col &lt; table.getCellCount(row); col++) {
              Widget w = table.getWidget(row, col);
              if (w == widget) {
                return row;
              }
            }
          }
  
          return -1;
    }
  </code></pre>
  
  <p>Why FlexTable does not have a function to get a row no of a widget inside it?</p>
  
  <p>Any other better solution ?</p>