[ 
https://issues.apache.org/jira/browse/PIVOT-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12776440#action_12776440
 ] 

Greg Brown commented on PIVOT-276:
----------------------------------

That was actually the original idea. However, I think it will be simpler to 
implement as a separate component. It will also have parity with the planned 
GridPane class.

We have overlap in other places in the API as well. ListView and TableView are 
also conceptually similar, but we implemented them as individual components for 
the sake of clarity and simplicity. BoxPane and FlowPane are similar (and even 
TablePane shares some features in common), but it would complicate the 
implementations of all of them to attempt to get everything into one class. So 
I think a dedicated GridView is the better alternative.



> Add a GridView component
> ------------------------
>
>                 Key: PIVOT-276
>                 URL: https://issues.apache.org/jira/browse/PIVOT-276
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>             Fix For: 1.5
>
>
> GridView would be a data-driven component like ListView or TableView, but 
> would arrange items in a 2-dimensional grid instead of in rows (similar to 
> "icon view" in Windows Explorer or Mac OS X Finder). It would provide an 
> orientation property that would dictate which way items would be laid out: a 
> horizontal grid view would arrange items left to right, and a vertical grid 
> view would arrange them top to bottom.
> GridView would assume a fixed renderer size, and would report preferred size 
> based on orientation: e.g. the preferred size of a horizontal grid view would 
> be (n * renderer width) x (renderer height). Constraining the preferred width 
> of a horizontal grid view would cause the items to wrap at the end of each 
> row; constraining the preferred height of a grid view would cause items to 
> wrap at the end of each column.

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

Reply via email to