Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: wtk
    • Labels:
      None

      Description

      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.

      1. grid_view_component_explorer.png
        38 kB
        Chris Bartlett
      2. grid_view_component_explorer.patch
        4 kB
        Chris Bartlett
      3. GridView.patch
        114 kB
        Edvin Syse

        Issue Links

          Activity

          Greg Brown created issue -
          Greg Brown made changes -
          Field Original Value New Value
          Summary Create a GridView component Add a GridView component
          Greg Brown made changes -
          Link This issue blocks PIVOT-219 [ PIVOT-219 ]
          Greg Brown made changes -
          Fix Version/s 2.1 [ 12314825 ]
          Fix Version/s 1.5 [ 12314033 ]
          Edvin Syse made changes -
          Attachment GridView.patch [ 12486355 ]
          Edvin Syse made changes -
          Attachment GridView.patch [ 12486355 ]
          Edvin Syse made changes -
          Attachment GridView.patch [ 12486356 ]
          Chris Bartlett made changes -
          Attachment grid_view_component_explorer.png [ 12489997 ]
          Attachment grid_view_component_explorer.patch [ 12489998 ]
          Edvin Syse made changes -
          Attachment GridView.patch [ 12490269 ]
          Edvin Syse made changes -
          Attachment GridView.patch [ 12486356 ]
          Chris Bartlett made changes -
          Comment [ The current patch contains an easily fixed error on lines 1606 & 1607

           Replace
           <bad>
           -import org.apache.pivot.wtk.
           ;
           </bad>

           with
           <good>
           -import org.apache.pivot.wtk.ListView;
           </good> ]
          Edvin Syse made changes -
          Attachment GridView.patch [ 12490291 ]
          Edvin Syse made changes -
          Attachment GridView.patch [ 12490269 ]
          Roger Whitcomb made changes -
          Assignee Edvin Syse [ edvin ]
          Gavin made changes -
          Link This issue blocks PIVOT-219 [ PIVOT-219 ]
          Gavin made changes -
          Link This issue is depended upon by PIVOT-219 [ PIVOT-219 ]

            People

            • Assignee:
              Edvin Syse
              Reporter:
              Greg Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development