You should have access to it if you have been added to the pivot- developers group, so I'm guessing that you have not. Unfortunately, this is not something I have permission to manage. Niclas/Martijn, please remind me - what is the correct way to request that Noel be added to this group? Do I submit a JIRA request to the Infrastructure project, or is there another way? Do either of you have permission to make this change?

Thanks,
Greg


On Jun 25, 2009, at 11:05 AM, Noel Grandin wrote:


When I see these kinds of emails bouncing back and forth, I start
thinking maybe we need an equivalent of the Swing Tutorial for Pivot.
I know that I spent an awful lot of time in there when I was learning swing.

http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

Creating something similar in the Pivot wiki by cut'n'pasting from the
mailing list would be a good way to start.

Ah, I see we have one already. I was going to add Greg's reply to the
wiki at
 http://cwiki.apache.org/confluence/display/PIVOT/Table+Panes
but my newly created account does not seem to have permission (username:
grandinj)

Can someone grant me edit access to the Pivot wiki?

Thanks, Noel.


Niclas Hedhman wrote:
It does.
Thanks.

On Jun 25, 2009 8:56 PM, "Greg Brown" <[email protected]> wrote:

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

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

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
cell).

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.getRows().add(row1);

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"))));
tablePane.getRows().add(row2);

Hope this helps.

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




Reply via email to