You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by marianciu <ma...@rocketmail.com> on 2013/01/26 18:43:09 UTC

Re: Layout container inside cells in Table View

Hi

I would like create table with one columns and many rows. This cells
describe information about persons.

For example, one row should by looks like this:
<http://apache-pivot-users.399431.n3.nabble.com/file/n4022396/cell.png> 

Could you take me some example how use table and layout inside this cell?



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Layout-container-inside-cells-in-Table-View-tp4022326p4022396.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

RE: Layout container inside cells in Table View

Posted by marianciu <ma...@rocketmail.com>.
Hi

I interhit my class from TableViewCellRenderer. It's work!

Thanks a lot.
Marcin



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Layout-container-inside-cells-in-Table-View-tp4022326p4022564.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

RE: Layout container inside cells in Table View

Posted by "Roger L. Whitcomb" <Ro...@actian.com>.
Sounds like you will need to implement a custom renderer.  If you
inherit your custom renderer from TableViewCellRenderer it uses a Label
internally to display the text, so you can do whatever you need to in
order to set the label font, color, etc. either in the constructor or
the "render" method.

~Roger

RE: Layout container inside cells in Table View

Posted by marianciu <ma...@rocketmail.com>.
Hi Roger

I wanted prepare view as is presenting four post before (this is present one
cell - there is specific arrangement). If I used container BoxPane, I would
arrangement object on this container.

Now I've changed conception. I would like display only text in column. But
plain text is not enough, I need change font, size and colour of text. This
is possible in Label, but I don't know defined column for Label data.

Sorry for changed question.

Br
Marcin



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Layout-container-inside-cells-in-Table-View-tp4022326p4022545.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

RE: Layout container inside cells in Table View

Posted by "Roger L. Whitcomb" <Ro...@actian.com>.
Hi Marcin,
   What you've coded is support for the "mylayout" column of your data
being an Image.  But, it sounds like you want a composite object in that
column instead.  Is that correct?  BoxPane by itself has no content --
it is a container to arrange other objects.  So, what exactly is the
data you want to display in that column?  That would help us to know how
to answer your question.

Thanks for using Pivot!

~Roger Whitcomb


Re: Layout container inside cells in Table View

Posted by marianciu <ma...@rocketmail.com>.
Hi

I have tried put some layout (for example BoxPane) inside row for table, but
without success. 
I describe table as:
<TableView bxml:id="tableVisit">
	<columns>
		<TableView.Column name="mylayout" width="20">
			<cellRenderer>
				<content:TableViewImageCellRenderer />
			</cellRenderer>
		</TableView.Column>
		<TableView.Column name="date" width="1*"
			headerData="Data" />

	</columns>
</TableView>

but i suppose type *<content:TableViewImageCellRenderer />* is wrong,
because this is reference for image. Which type of content will be
appropriate for BoxPane?

Thank in advance
Marcin



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Layout-container-inside-cells-in-Table-View-tp4022326p4022543.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.