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:04:17 GMT
Or do you mean test if a row at a particular Y coordinate contains
data?  i.e. Is there data in the TableView row under the mouse?

http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/TableView.html#getRowAt(int)

On 19 October 2011 13:01, Chris Bartlett <cbartlett.x@gmail.com> wrote:
> 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