You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Chris Bartlett (JIRA)" <ji...@apache.org> on 2010/08/25 15:25:16 UTC

[jira] Created: (PIVOT-609) Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader

Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader
-------------------------------------------------------------------------------------------

                 Key: PIVOT-609
                 URL: https://issues.apache.org/jira/browse/PIVOT-609
             Project: Pivot
          Issue Type: Improvement
          Components: wtk, wtk-terra
         Environment: n/a
            Reporter: Chris Bartlett
            Priority: Minor
             Fix For: 2.1


TerraTableViewHeaderSkin does not allow relative width sized columns to be resized.
It would be useful for users to be able resize all columns regardless of how their widths were initially specified.

Perhaps add a new style property (allColumnsResizable / relativeColumnsResizable) which would mean that the skin allows all of columns to be resized.
Relative sized columns which have been resized should then be converted into fixed size columns for the duration of the life of the TableView instance.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-609) Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902548#action_12902548 ] 

Greg Brown commented on PIVOT-609:
----------------------------------

This is actually by design. We intentionally don't let users resize relative-sized columns because it would potentially invalidate the designer's intent.

I'm not entirely sure what the use case would be, anyway. The application designer has control over the initial column widths (and hence their relationship to each other), so can achieve the same initial relative sizing using absolute widths.




> Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader
> -------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-609
>                 URL: https://issues.apache.org/jira/browse/PIVOT-609
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk, wtk-terra
>         Environment: n/a
>            Reporter: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.1
>
>
> TerraTableViewHeaderSkin does not allow relative width sized columns to be resized.
> It would be useful for users to be able resize all columns regardless of how their widths were initially specified.
> Perhaps add a new style property (allColumnsResizable / relativeColumnsResizable) which would mean that the skin allows all of columns to be resized.
> Relative sized columns which have been resized should then be converted into fixed size columns for the duration of the life of the TableView instance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-609) Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902721#action_12902721 ] 

Greg Brown commented on PIVOT-609:
----------------------------------

Good points, but the use cases are slightly different. Generally, you'll display a table with one or more relative-width columns in a scroll pane with a horizontal scroll bar policy of "fill", whereas you'll put a table with fixed-width columns in a scroll pane with a horizontal policy of "auto". 

OTOH, you could use "fill to capacity" to accomplish what you describe, and there probably are valid use cases for this. Maybe adding a "resizable" property to TableView.Column would be a good approach.


> Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader
> -------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-609
>                 URL: https://issues.apache.org/jira/browse/PIVOT-609
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk, wtk-terra
>         Environment: n/a
>            Reporter: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.1
>
>
> TerraTableViewHeaderSkin does not allow relative width sized columns to be resized.
> It would be useful for users to be able resize all columns regardless of how their widths were initially specified.
> Perhaps add a new style property (allColumnsResizable / relativeColumnsResizable) which would mean that the skin allows all of columns to be resized.
> Relative sized columns which have been resized should then be converted into fixed size columns for the duration of the life of the TableView instance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-609) Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902580#action_12902580 ] 

Chris Bartlett commented on PIVOT-609:
--------------------------------------

With regard to 'potentially invalidat[ing] the designer's intent', if new style was added as suggested, the designer would be able to set it if they wished in order to allow the user full control over the column widths.  
The designer would still be able to enforce the current logic by simply not setting the style, but a new style would allow the 'best of both worlds'.  

As a user, I want to be able to resize the columns in a TableView in order to best utilize what may be limited screen 'real estate'.  Conversely a TableView with only a few relative sized columns, might be set to fit to the available width of its (wide) parent container, and then become hard to read as the columns are spaced apart.

The designer may also not know about the data which will be displayed in the TableView.  For example, a database admin tool might allow a user to type in and execute a SQL query, and then display the result set in a TableView.  In this scenario, in order to allow the user to resize any & all columns as they wish, the TableView columns would have to be set to absolute widths.


> Allow relative sized TableView.Columns to be resized using the mouse with a TableViewHeader
> -------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-609
>                 URL: https://issues.apache.org/jira/browse/PIVOT-609
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk, wtk-terra
>         Environment: n/a
>            Reporter: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.1
>
>
> TerraTableViewHeaderSkin does not allow relative width sized columns to be resized.
> It would be useful for users to be able resize all columns regardless of how their widths were initially specified.
> Perhaps add a new style property (allColumnsResizable / relativeColumnsResizable) which would mean that the skin allows all of columns to be resized.
> Relative sized columns which have been resized should then be converted into fixed size columns for the duration of the life of the TableView instance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.