pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Another TablePane Question
Date Fri, 24 Jun 2011 16:43:53 GMT
If you know that the cell contains a Label, can you just cast the return value of getCellComponent()
to a Label and call setText() on it?

On Jun 24, 2011, at 12:39 PM, noobmike wrote:

> Hey Guys, 
> So everything up until now is working, thanks to your suggestions. As for
> the gridPane stuff that 
> you suggested Greg, I think Im too far in to switch everything over to a
> gridPane, and like I said 
> the tablePane tutorial is helping me a lot. 
> However, I am stuck on one part. 
> As shown, I have a dynamically sized tablePane. In each cell is a blank
> Label. I want to set the text
> of the labels without having N x M bxml:id's. I can set the background
> colour like this: 
> CWBase.getCellComponent(firstClickR, i).getStyles().put("backgroundColor",
> colour);
> and I know that the text isnt part of the styles of a Label. Any idea on how
> to do this? 
> Worse comes to worst I could always delete the whole row or column with the
> labels 
> set accordingly, but there has to be a better way. 
> Thanks in advace, 
> Mike. 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Another-TablePane-Question-tp3100547p3105066.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message