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: Filter in TableView
Date Wed, 31 Aug 2011 14:24:41 GMT
I imagine you'd want to do something like this:

<ScrollPane>    
    <view>
        <TableView bxml:id="tableView">
        ...
        </TableView>
    </view>
    
    <columnHeader>
        <BoxPane orientation="vertical" styles="{fill:true}">
            <TableViewHeader tableView="$tableView"/>
            <TableView bxml:id="tableViewFilter" columnSource="$tableView"/>
        </BoxPane>
    </columnHeader>
</ScrollPane>


On Aug 31, 2011, at 10:08 AM, prophe wrote:

> I've done something like that... In my bxml I've added:
> 
>            <columnHeader>
>                <TableViewHeader tableView="$tableView"/>
>   				<BoxPane orientation="vertical" styles="{fill:true}">
>      				<TableViewHeader tableView="$tableView"/>
>           			 <TableView bxml:id="tableViewFilter">
>                		<columns>
>                    		<TableView.Column name="nation" width="180"/>
>                    		<TableView.Column name="gold" width="60" />
>                    		<TableView.Column name="silver" width="60"/>
>                    		<TableView.Column name="bronze" width="60"/>
>                    		<TableView.Column name="total" width="60"/>
>                		</columns>
>                		<collections:HashMap nation="" gold="" silver="" bronze=""
> total=""/>
>            		</TableView>
>    			</BoxPane> 
>            </columnHeader>
> 
> My main tableView have id="tableView" and in my class:
> 
>> Setting the "columnSource" property of this table view to your main table
> will keep the table structures in sync: when you resize a column in the main
> table, the corresponding column in the header will also be resized.
> 
> 	@BXML(id="tableView") private TableView tableView;
> 	@BXML(id="tableViewFilter") private TableView filter;
>          .....
>        	@Override
> 	public void initialize(Map&lt;String, Object&gt; namespace, URL location,
> Resources resources) {
>        ......
>         filter.setColumnSource(tableView.getColumnSource());
>        }
> Is it right? Or I don't understand you? Because width of columns isn't in
> sync.
> 
> -----
> Thank you!
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3298453.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message