pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: Hi, I had a doubt regarding TableView
Date Wed, 19 Oct 2011 06:01:10 GMT
A TableView's rows are simply the contents of a
org.apache.pivot.collections.List.

So you just pull the relevant element out of the List by its index (if
the element exists) and perform whatever kind of check you need.

Something like this

TableView tableView = ....
List<?> tableData = tableView.getTableData();
int rowIndex = ...;
// Check if the row 'has data'
// Here just checking for null, but your requirements may differ
if (tableData.get(rowIndex) == null) {
  // Do something
}

On 19 October 2011 11:55, V SANTOSH PAVAN RAJU BS
<pavanraju.mca@gmail.com> wrote:
> Can any one tell me how to test whether a row in a TableView contains data
> or not.
>
> --
> Thanks & Regards
> B.S.V.S.Pavan Raju.
> Skype: skype_pavan1
> Hyderabad.
>

Mime
View raw message