Changeset 12114

Show
Ignore:
Timestamp:
01/21/08 15:43:30 (12 months ago)
Author:
BryanForbes
Message:

First shot at reorganization. !strict

  • Moved css and images to resources.
  • Re-namespaced dojox.Grid* and dojox.VirtualGrid? to dojox.grid.
Location:
dojox/branches/grid-reorganize/grid
Files:
32 modified
4 moved

Legend:

Unmodified
Added
Removed
  • dojox/branches/grid-reorganize/grid/Grid.js

    r11983 r12114  
    44dojo.require("dojox.grid._data.editors"); 
    55 
    6 dojo.declare('dojox.Grid', dojox.VirtualGrid, { 
     6dojo.declare('dojox.grid.Grid', dojox.grid.VirtualGrid, { 
    77        //      summary: 
    88        //              A grid widget with virtual scrolling, cell editing, complex rows, 
     
    2626        //      | 
    2727        //      |       <div id="grid" model="model" structure="structure"  
    28         //      |               dojoType="dojox.VirtualGrid"></div> 
     28        //      |               dojoType="dojox.grid.VirtualGrid"></div> 
    2929        //       
    3030 
  • dojox/branches/grid-reorganize/grid/tests/support/testtbl.sql

    • Property svn:eol-style set to native
  • dojox/branches/grid-reorganize/grid/tests/test_change_structure.html

    r11257 r12114  
    22<html> 
    33<head> 
    4         <title>dojox.Grid Change Structure Example</title> 
     4        <title>dojox.grid.Grid Change Structure Example</title> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    66        <style type="text/css"> 
    7                 @import "../_grid/Grid.css"; 
     7                @import "../resources/Grid.css"; 
    88                body { 
    99                        font-size: 0.9em; 
     
    4242                 
    4343                // a special view providing selection feedback 
    44                 var rowBar = {type: 'dojox.GridRowView', width: '20px' }; 
     44                var rowBar = {type: 'dojox.grid.GridRowView', width: '20px' }; 
    4545                 
    4646                // a view without scrollbars 
     
    116116</head> 
    117117<body> 
    118 <div class="heading">dojox.VirtualGrid Change Structure Example</div> 
     118<div class="heading">dojox.grid.VirtualGrid Change Structure Example</div> 
    119119<p> 
    120120        <button onclick="toggleStructure()">Change Structure</button> 
    121121</p>     
    122 <div id="grid" dojoType="dojox.VirtualGrid" structure="structure" rowCount="100000" elasticView="2"></div> 
     122<div id="grid" dojoType="dojox.grid.VirtualGrid" structure="structure" rowCount="100000" elasticView="2"></div> 
    123123 
    124124</body> 
  • dojox/branches/grid-reorganize/grid/tests/test_custom_sort.html

    r11458 r12114  
    22<html> 
    33<head> 
    4         <title>Custom Sort Test - dojox.Grid</title> 
     4        <title>Custom Sort Test - dojox.grid.Grid</title> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    66        <style type="text/css"> 
    7                 @import "../_grid/Grid.css"; 
     7                @import "../resources/Grid.css"; 
    88                body { 
    99                        font-size: 0.9em; 
     
    7979</head> 
    8080<body> 
    81 <div class="heading">dojox.Grid Custom Sort Test</div> 
     81<div class="heading">dojox.grid.Grid Custom Sort Test</div> 
    8282<br /> 
    8383<b>Column 3</b>'s data field has a custom sorter that sorts by the 2nd letter in the string. 
    8484<br /><br /> 
    85 <div id="grid" dojoType="dojox.Grid" model="model" structure="layout"></div> 
     85<div id="grid" dojoType="dojox.grid.Grid" model="model" structure="layout"></div> 
    8686</body> 
    8787</html> 
  • dojox/branches/grid-reorganize/grid/tests/test_dojo_data.html

    r11318 r12114  
    22<html> 
    33<head> 
    4         <title>dojox.Grid with Dojo.Data via binding</title> 
     4        <title>dojox.grid.Grid with Dojo.Data via binding</title> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    66        <style type="text/css"> 
    7                 @import "../_grid/Grid.css"; 
     7                @import "../resources/Grid.css"; 
    88                body { 
    99                        font-size: 1em; 
     
    9595         
    9696        var layout2 = [ 
    97                 { type: 'dojox.GridRowView', width: '20px' }, 
     97                { type: 'dojox.grid.GridRowView', width: '20px' }, 
    9898                { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
    9999                { cells: [[ 
     
    133133</head> 
    134134<body> 
    135 <h5>dojox.Grid using Dojo.Data stores via simple binding</h5> 
    136 <div jsId="grid" dojoType="dojox.Grid"  
     135<h5>dojox.grid.Grid using Dojo.Data stores via simple binding</h5> 
     136<div jsId="grid" dojoType="dojox.grid.Grid"  
    137137        elasticView="2" structure="layout2"></div> 
    138138</body> 
  • dojox/branches/grid-reorganize/grid/tests/test_dojo_data_model.html

    r11347 r12114  
    22<html> 
    33<head> 
    4         <title>dojox.Grid with Dojo.Data via binding</title> 
     4        <title>dojox.grid.Grid with Dojo.Data via binding</title> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    66        <style type="text/css"> 
    77                @import "../../../dojo/resources/dojo.css"; 
    8                 @import "../_grid/tundraGrid.css"; 
     8                @import "../resources/tundraGrid.css"; 
    99                 
    1010                #grid, #grid2 { 
     
    3030                var layoutMovies = [ 
    3131                        // view 0 
    32                         { type: 'dojox.GridRowView', width: '20px' }, 
     32                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    3333                        // view 1 
    3434                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    4343                var layoutCountries = [ 
    4444                        // view 0 
    45                         { type: 'dojox.GridRowView', width: '20px' }, 
     45                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    4646                        // view 1 
    4747                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    5555</head> 
    5656<body class="tundra"> 
    57         <h5>dojox.Grid using Dojo.Data stores via simple binding</h5> 
     57        <h5>dojox.grid.Grid using Dojo.Data stores via simple binding</h5> 
    5858        <span dojoType="dojox.data.CsvStore"  
    5959                jsId="csvStore" url="support/movies.csv"> 
     
    6666                clientSort="true"> 
    6767        </span> 
    68         <div id="grid" dojoType="dojox.Grid" elasticView="2"  
     68        <div id="grid" dojoType="dojox.grid.Grid" elasticView="2"  
    6969                model="dataModel" structure="layoutMovies"> 
    7070        </div> 
     
    7979                query="{ name : '*' }"> 
    8080        </span> 
    81         <div id="grid2" dojoType="dojox.Grid" elasticView="2"  
     81        <div id="grid2" dojoType="dojox.grid.Grid" elasticView="2"  
    8282                model="dataModel2" structure="layoutCountries"> 
    8383        </div> 
  • dojox/branches/grid-reorganize/grid/tests/test_dojo_data_model_multiStores.html

    r12038 r12114  
    22<html> 
    33<head> 
    4         <title>dojox.Grid with Dojo.Data via binding.  Multiple Store implementations.</title> 
     4        <title>dojox.grid.Grid with Dojo.Data via binding.  Multiple Store implementations.</title> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    66        <style type="text/css"> 
     
    88                @import "../../../dojo/resources/dojo.css"; 
    99                @import "../../../dijit/tests/css/dijitTests.css"; 
    10                 @import "../_grid/tundraGrid.css"; 
     10                @import "../resources/tundraGrid.css"; 
    1111                 
    1212                #grid, #grid2, #grid3, #grid4, #grid5, #grid6{ 
     
    4747                var layoutMovies = [ 
    4848                        // view 0 
    49                         { type: 'dojox.GridRowView', width: '20px' }, 
     49                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    5050                        // view 1 
    5151                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    6060                var layoutCountries = [ 
    6161                        // view 0 
    62                         { type: 'dojox.GridRowView', width: '20px' }, 
     62                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    6363                        // view 1 
    6464                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    7272                var layoutBooks = [ 
    7373                        // view 0 
    74                         { type: 'dojox.GridRowView', width: '20px' }, 
     74                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    7575                        // view 1 
    7676                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    8686                var layoutFlickrData = [ 
    8787                        // view 0 
    88                         { type: 'dojox.GridRowView', width: '20px' }, 
     88                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    8989                        // view 1 
    9090                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    9898                var layoutOpmlData = [ 
    9999                        // view 0 
    100                         { type: 'dojox.GridRowView', width: '20px' }, 
     100                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    101101                        // view 1 
    102102                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    110110                var layoutHtmlTable = [ 
    111111                        // view 0 
    112                         { type: 'dojox.GridRowView', width: '20px' }, 
     112                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    113113                        // view 1 
    114114                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    124124</head> 
    125125<body class="tundra"> 
    126         <h1>dojox.Grid using Dojo.Data stores via simple binding with multiple store implementations.</h1> 
     126        <h1>dojox.grid.Grid using Dojo.Data stores via simple binding with multiple store implementations.</h1> 
    127127        <p> 
    128128                This page demonstrates the Grid can display data accessed by dojo.data implementing Datastores.   
     
    160160                query="{ name : '*' }"> 
    161161        </span> 
    162         <div id="grid" dojoType="dojox.Grid" elasticView="2"  
     162        <div id="grid" dojoType="dojox.grid.Grid" elasticView="2"  
    163163                model="dataModel" structure="layoutCountries"> 
    164164        </div> 
     
    177177                clientSort="true"> 
    178178        </span> 
    179         <div id="grid2" dojoType="dojox.Grid" elasticView="2"  
     179        <div id="grid2" dojoType="dojox.grid.Grid" elasticView="2"  
    180180                model="dataModel2" structure="layoutMovies"> 
    181181 
     
    193193                query="{ title : '*' }"> 
    194194        </span> 
    195         <div id="grid3" dojoType="dojox.Grid" elasticView="2"  
     195        <div id="grid3" dojoType="dojox.grid.Grid" elasticView="2"  
    196196                model="dataModel3" structure="layoutBooks"> 
    197197        </div> 
     
    209209                query="{ tags : '3dny' }"> 
    210210        </span> 
    211         <div id="grid4" dojoType="dojox.Grid" elasticView="2"  
     211        <div id="grid4" dojoType="dojox.grid.Grid" elasticView="2"  
    212212                model="dataModel4" structure="layoutFlickrData"> 
    213213        </div> 
     
    227227                sortFields="[ { attribute : 'text' } ]"> 
    228228        </span> 
    229         <div id="grid5" dojoType="dojox.Grid" elasticView="2"  
     229        <div id="grid5" dojoType="dojox.grid.Grid" elasticView="2"  
    230230                model="dataModel5" structure="layoutOpmlData"> 
    231231        </div> 
     
    243243                query="{}"> 
    244244        </span> 
    245         <div id="grid6" dojoType="dojox.Grid" elasticView="2"  
     245        <div id="grid6" dojoType="dojox.grid.Grid" elasticView="2"  
    246246                model="dataModel6" structure="layoutHtmlTable"> 
    247247        </div> 
  • dojox/branches/grid-reorganize/grid/tests/test_dojo_data_model_processError.html

    r12038 r12114  
    22<html> 
    33<head> 
    4         <title>dojox.Grid with Dojo.Data model with trapping of data store errors.</title> 
     4        <title>dojox.grid.Grid with Dojo.Data model with trapping of data store errors.</title> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    66        <style type="text/css"> 
     
    88                @import "../../../dojo/resources/dojo.css"; 
    99                @import "../../../dijit/tests/css/dijitTests.css"; 
    10                 @import "../_grid/tundraGrid.css"; 
     10                @import "../resources/tundraGrid.css"; 
    1111                 
    1212                #grid{ 
     
    3737</head> 
    3838<body class="tundra"> 
    39         <h1>dojox.Grid using Dojo.Data stores via simple binding</h1> 
     39        <h1>dojox.grid.Grid using Dojo.Data stores via simple binding</h1> 
    4040 
    4141        <h2>dojox.data.CsvStore:</h2>. 
     
    5858                </script> 
    5959        </span> 
    60         <div id="grid" dojoType="dojox.Grid" elasticView="2"  
     60        <div id="grid" dojoType="dojox.grid.Grid" elasticView="2"  
    6161                model="dataModel" structure="layoutMovies"> 
    6262        </div> 
  • dojox/branches/grid-reorganize/grid/tests/test_dojo_data_notification.html

    r11375 r12114  
    33<html> 
    44<head> 
    5         <title>dojox.Grid with Dojo.Data via binding</title> 
     5        <title>dojox.grid.Grid with Dojo.Data via binding</title> 
    66        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    77        <style type="text/css"> 
    8                 @import "../_grid/tundraGrid.css"; 
     8                @import "../resources/tundraGrid.css"; 
    99                @import "../../../dojo/resources/dojo.css"; 
    1010                @import "../../../dijit/themes/tundra/tundra.css"; 
     
    3535                var layoutMovies = [ 
    3636                        // view 0 
    37                         { type: 'dojox.GridRowView', width: '20px' }, 
     37                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    3838                        // view 1 
    3939                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    4848                var layoutCountries = [ 
    4949                        // view 0 
    50                         { type: 'dojox.GridRowView', width: '20px' }, 
     50                        { type: 'dojox.grid.GridRowView', width: '20px' }, 
    5151                        // view 1 
    5252                        { cells: [[{ name: "Row", get: getRow, width: 5}]], noscroll: true}, 
     
    6060</head> 
    6161<body class="tundra"> 
    62         <h1>dojox.Grid using Dojo.Data stores via simple binding</h1> 
     62        <h1>dojox.grid.Grid using Dojo.Data stores via simple binding</h1> 
    6363        <!-- 
    6464        <br> 
     
    7373                clientSort="true"> 
    7474        </span> 
    75         <div id="grid" dojoType="dojox.Grid" elasticView="2"  
     75        <div id="grid" dojoType="dojox.grid.Grid" elasticView="2"  
    7676                model="dataModel" structure="layoutMovies"> 
    7777        </div> 
     
    106106                query="{ name : '*' }"> 
    107107        </span> 
    108         <div id="grid2" dojoType="dojox.Grid" elasticView="2"  
     108        <div id="grid2" dojoType="dojox.grid.Grid" elasticView="2"  
    109109                model="dataModel2" structure="layoutCountries"> 
    110110        </div> 
    111111 
    112         <div id="grid3" dojoType="dojox.Grid" elasticView="2"  
     112        <div id="grid3" dojoType="dojox.grid.Grid" elasticView="2"  
    113113                model="dataModel2" structure="layoutCountries"> 
    114114        </div> 
  • dojox/branches/grid-reorganize/grid/tests/test_edit.html

    r11375 r12114  
    33<head> 
    44<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
    5 <title>Test dojox.Grid Editing</title> 
     5<title>Test dojox.grid.Grid Editing</title> 
    66<style> 
    7         @import "../_grid/Grid.css"; 
     7        @import "../resources/Grid.css"; 
    88        body { 
    99                font-family: Tahoma, Arial, Helvetica, sans-serif; 
     
    9898        statusCell = { field: 2, name: 'Status', styles: 'text-align: center;', editor: dojox.grid.editors.Select, options: [ "new", "read", "replied" ] }; 
    9999        gridLayout = [{ 
    100                 type: 'dojox.GridRowView', width: '20px' 
     100                type: 'dojox.grid.GridRowView', width: '20px' 
    101101        },{ 
    102102                defaultCell: { width: 8, editor: dojox.grid.editors.Input, styles: 'text-align: right;'  }, 
     
    129129<body> 
    130130<h2> 
    131         dojox.Grid Basic Editing test 
     131        dojox.grid.Grid Basic Editing test 
    132132</h2> 
    133133<div id="controls"> 
     
    142142</div> 
    143143<br /> 
    144 <div id="grid" dojoType="dojox.Grid"  
     144<div id="grid" dojoType="dojox.grid.Grid"  
    145145        jsId="grid" 
    146146        model="model" structure="gridLayout"></div> 
  • dojox/branches/grid-reorganize/grid/tests/test_edit_dijit.html

    • Property svn:eol-style set to native
    r11537 r12114  
    44<head> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    6         <title>Test dojox.Grid Editing</title> 
     6        <title>Test dojox.grid.Grid Editing</title> 
    77        <style type="text/css"> 
    8                 @import "../_grid/tundraGrid.css"; 
     8                @import "../resources/tundraGrid.css"; 
    99                @import "../../../dojo/resources/dojo.css"; 
    1010                @import "../../../dijit/themes/tundra/tundra.css"; 
     
    8181 
    8282                gridLayout = [{ 
    83                         type: 'dojox.GridRowView', width: '20px' 
     83                        type: 'dojox.grid.GridRowView', width: '20px' 
    8484                },{ 
    8585                        defaultCell: { width: 8, editor: dojox.grid.editors.Input, styles: 'text-align: right;'  }, 
     
    120120</head> 
    121121<body> 
    122         <h1>dojox.Grid Basic Editing test</h1> 
     122        <h1>dojox.grid.Grid Basic Editing test</h1> 
    123123        <br /> 
    124124        <div id="controls"> 
     
    133133        </div> 
    134134        <br /> 
    135         <div id="grid" jsId="grid" dojoType="dojox.Grid" model="model" structure="gridLayout"></div> 
     135        <div id="grid" jsId="grid" dojoType="dojox.grid.Grid" model="model" structure="gridLayout"></div> 
    136136        <br /> 
    137137        <div id="rowCount"></div> 
  • dojox/branches/grid-reorganize/grid/tests/test_events.html

    r11257 r12114  
    22<html> 
    33<head> 
    4         <title>Test dojox.Grid Events</title> 
     4        <title>Test dojox.grid.Grid Events</title> 
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> 
    66        <style type="text/css"> 
    7                 @import "../_grid/Grid.css"; 
     7                @import "../resources/Grid.css"; 
    88                body,td,th {