You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Mathias Versichele <ma...@gmail.com> on 2010/03/01 11:26:25 UTC

Horizontal TableView

Is it possible to have a TableView which follows a horizontal layout ? By
this I mean that it uses a header column instead of a header row. This seems
more suited to a table showing property-value mappings, which I need in my
application.

-- 
Mathias Versichele
Bio-ir milieutechnologie / Msc. geografie
Oudburgstraat 16
9240 Zele
0485/16.07.08

Re: Horizontal TableView

Posted by Greg Brown <gk...@mac.com>.
OK. If you are using a Map to store your name/value pairs, another option would be to wrap it in a MapList and use that as the table model.

On Mar 1, 2010, at 9:22 AM, Mathias Versichele wrote:

> Thanks, but I'm using a TablePane now.
> 
> 2010/3/1 Todd Volkert <tv...@gmail.com>
> Keep in mind that that example is much more complex than it'd be if you *didn't* have a column header.  If you have both a column header and a row header, than this example is great.
> 
> -T
> 
> 
> On Mon, Mar 1, 2010 at 7:46 AM, Greg Brown <gk...@mac.com> wrote:
> There is an example of this here:
> 
> http://pivot.apache.org/demos/fixed-column-table.html
> 
> Source code is here:
> 
> http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/tables/
> 
> On Mar 1, 2010, at 7:34 AM, Todd Volkert wrote:
> 
>> Yep - you give the ScrollPane (that contains the table view) a rowHeader instead of a columnHeader.  For the rowHeader, you can use a TableView whose data has the same number of entries as the main table data (note: you can actually use the main table data twice).
>> 
>> -T
>> 
>> On Mon, Mar 1, 2010 at 5:26 AM, Mathias Versichele <ma...@gmail.com> wrote:
>> Is it possible to have a TableView which follows a horizontal layout ? By this I mean that it uses a header column instead of a header row. This seems more suited to a table showing property-value mappings, which I need in my application.
>> 
>> -- 
>> Mathias Versichele
>> Bio-ir milieutechnologie / Msc. geografie
>> Oudburgstraat 16
>> 9240 Zele
>> 0485/16.07.08
>> 
> 
> 
> 
> 
> 
> -- 
> Mathias Versichele
> Bio-ir milieutechnologie / Msc. geografie
> Oudburgstraat 16
> 9240 Zele
> 0485/16.07.08


Re: Horizontal TableView

Posted by Mathias Versichele <ma...@gmail.com>.
Thanks, but I'm using a TablePane now.

2010/3/1 Todd Volkert <tv...@gmail.com>

> Keep in mind that that example is much more complex than it'd be if you
> *didn't* have a column header.  If you have both a column header and a row
> header, than this example is great.
>
> -T
>
>
> On Mon, Mar 1, 2010 at 7:46 AM, Greg Brown <gk...@mac.com> wrote:
>
>> There is an example of this here:
>>
>> http://pivot.apache.org/demos/fixed-column-table.html
>>
>> Source code is here:
>>
>>
>> http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/tables/
>>
>> On Mar 1, 2010, at 7:34 AM, Todd Volkert wrote:
>>
>> Yep - you give the ScrollPane (that contains the table view) a rowHeader
>> instead of a columnHeader.  For the rowHeader, you can use a TableView whose
>> data has the same number of entries as the main table data (note: you can
>> actually use the main table data twice).
>>
>> -T
>>
>> On Mon, Mar 1, 2010 at 5:26 AM, Mathias Versichele <
>> mathias.versichele@gmail.com> wrote:
>>
>>> Is it possible to have a TableView which follows a horizontal layout ? By
>>> this I mean that it uses a header column instead of a header row. This seems
>>> more suited to a table showing property-value mappings, which I need in my
>>> application.
>>>
>>> --
>>> Mathias Versichele
>>> Bio-ir milieutechnologie / Msc. geografie
>>> Oudburgstraat 16
>>> 9240 Zele
>>> 0485/16.07.08
>>>
>>
>>
>>
>


-- 
Mathias Versichele
Bio-ir milieutechnologie / Msc. geografie
Oudburgstraat 16
9240 Zele
0485/16.07.08

Re: Horizontal TableView

Posted by Todd Volkert <tv...@gmail.com>.
Keep in mind that that example is much more complex than it'd be if you
*didn't* have a column header.  If you have both a column header and a row
header, than this example is great.

-T

On Mon, Mar 1, 2010 at 7:46 AM, Greg Brown <gk...@mac.com> wrote:

> There is an example of this here:
>
> http://pivot.apache.org/demos/fixed-column-table.html
>
> Source code is here:
>
>
> http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/tables/
>
> On Mar 1, 2010, at 7:34 AM, Todd Volkert wrote:
>
> Yep - you give the ScrollPane (that contains the table view) a rowHeader
> instead of a columnHeader.  For the rowHeader, you can use a TableView whose
> data has the same number of entries as the main table data (note: you can
> actually use the main table data twice).
>
> -T
>
> On Mon, Mar 1, 2010 at 5:26 AM, Mathias Versichele <
> mathias.versichele@gmail.com> wrote:
>
>> Is it possible to have a TableView which follows a horizontal layout ? By
>> this I mean that it uses a header column instead of a header row. This seems
>> more suited to a table showing property-value mappings, which I need in my
>> application.
>>
>> --
>> Mathias Versichele
>> Bio-ir milieutechnologie / Msc. geografie
>> Oudburgstraat 16
>> 9240 Zele
>> 0485/16.07.08
>>
>
>
>

Re: Horizontal TableView

Posted by Greg Brown <gk...@mac.com>.
There is an example of this here:

http://pivot.apache.org/demos/fixed-column-table.html

Source code is here:

http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/tables/

On Mar 1, 2010, at 7:34 AM, Todd Volkert wrote:

> Yep - you give the ScrollPane (that contains the table view) a rowHeader instead of a columnHeader.  For the rowHeader, you can use a TableView whose data has the same number of entries as the main table data (note: you can actually use the main table data twice).
> 
> -T
> 
> On Mon, Mar 1, 2010 at 5:26 AM, Mathias Versichele <ma...@gmail.com> wrote:
> Is it possible to have a TableView which follows a horizontal layout ? By this I mean that it uses a header column instead of a header row. This seems more suited to a table showing property-value mappings, which I need in my application.
> 
> -- 
> Mathias Versichele
> Bio-ir milieutechnologie / Msc. geografie
> Oudburgstraat 16
> 9240 Zele
> 0485/16.07.08
> 


Re: Horizontal TableView

Posted by Todd Volkert <tv...@gmail.com>.
Yep - you give the ScrollPane (that contains the table view) a rowHeader
instead of a columnHeader.  For the rowHeader, you can use a TableView whose
data has the same number of entries as the main table data (note: you can
actually use the main table data twice).

-T

On Mon, Mar 1, 2010 at 5:26 AM, Mathias Versichele <
mathias.versichele@gmail.com> wrote:

> Is it possible to have a TableView which follows a horizontal layout ? By
> this I mean that it uses a header column instead of a header row. This seems
> more suited to a table showing property-value mappings, which I need in my
> application.
>
> --
> Mathias Versichele
> Bio-ir milieutechnologie / Msc. geografie
> Oudburgstraat 16
> 9240 Zele
> 0485/16.07.08
>