pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: TablePane concept...
Date Thu, 25 Jun 2009 14:03:00 GMT
It does.

On Jun 25, 2009 8:56 PM, "Greg Brown" <gkbrown@mac.com> wrote:

TablePane has a "columns" collection and a "rows" collection. In WTKX, you
might define a table pane as follows:

       <TablePane.Column width="120"/>
       <TablePane.Column width="240"/>
       <TablePane.Row height="80">
           <ImageView image="a.png"/>
           <ImageView image="b.png"/>
       <TablePane.Row height="160">
           <ImageView image="c.png"/>
           <ImageView image="d.png"/>

This table pane would contain 4 ImageView cells, with column widths and row
heights as specified. It is analogous to defining a table in HTML, only we
require you to define your columns up front (so we don't have to infer them)
and we don't require the equivalent of <td> tags (any component can be a

In Java, it would look like this:

TablePane tablePane = new TablePane();
tablePane.getColumns().add(new TablePane.Column(120));
tablePane.getColumns().add(new TablePane.Column(240));

TablePane.Row row1 = new TablePane.Row(80);
row1.add(new ImageView(Image.load(getClass().getResource("a.png"))));
row1.add(new ImageView(Image.load(getClass().getResource("b.png"))));

TablePane.Row row2 = new TablePane.Row(160);
row2.add(new ImageView(Image.load(getClass().getResource("c.png"))));
row2.add(new ImageView(Image.load(getClass().getResource("d.png"))));

Hope this helps.

On Jun 25, 2009, at 6:17 AM, Niclas Hedhman wrote: > (Sorry for posting
here, but I am currently...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message