Changeset 14589
- Timestamp:
- 07/24/08 15:55:18 (4 months ago)
- Location:
- dojox/trunk/grid
- Files:
-
- 25 modified
-
cells/_base.js (modified) (3 diffs)
-
DataGrid.js (modified) (1 diff)
-
resources/Grid.css (modified) (21 diffs)
-
resources/Grid_rtl.css (modified) (1 diff)
-
resources/nihiloGrid.css (modified) (12 diffs)
-
resources/soriaGrid.css (modified) (12 diffs)
-
resources/tundraGrid.css (modified) (12 diffs)
-
resources/View.html (modified) (1 diff)
-
resources/_Grid.html (modified) (1 diff)
-
tests/test_backwards_compatibility.html (modified) (1 diff)
-
tests/test_change_structure.html (modified) (1 diff)
-
tests/test_data_grid_edit_large_resultset.html (modified) (1 diff)
-
tests/test_edit.html (modified) (1 diff)
-
tests/test_edit_canEdit.html (modified) (1 diff)
-
tests/test_sizing_ResizeHandle.html (modified) (1 diff)
-
tests/test_styling.html (modified) (2 diffs)
-
tests/test_subgrid.html (modified) (1 diff)
-
tests/test_tundra_edit.html (modified) (1 diff)
-
_EditManager.js (modified) (1 diff)
-
_Events.js (modified) (2 diffs)
-
_FocusManager.js (modified) (1 diff)
-
_Grid.js (modified) (1 diff)
-
_RowManager.js (modified) (1 diff)
-
_RowSelector.js (modified) (2 diffs)
-
_View.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/grid/cells/_base.js
r14561 r14589 269 269 formatEditing: function(inDatum, inRowIndex){ 270 270 this.needFormatNode(inDatum, inRowIndex); 271 return '<input class="dojoxGrid -input" type="text" value="' + inDatum + '">';271 return '<input class="dojoxGridInput" type="text" value="' + inDatum + '">'; 272 272 }, 273 273 formatNode: function(inNode, inDatum, inRowIndex){ … … 336 336 formatEditing: function(inDatum, inRowIndex){ 337 337 this.needFormatNode(inDatum, inRowIndex); 338 var h = [ '<select class="dojoxGrid -select">' ];338 var h = [ '<select class="dojoxGridSelect">' ]; 339 339 for (var i=0, o, v; ((o=this.options[i]) !== undefined)&&((v=this.values[i]) !== undefined); i++){ 340 340 h.push("<option", (inDatum==v ? ' selected' : ''), ' value="' + v + '"', ">", o, "</option>"); … … 392 392 _valueProp: "checked", 393 393 formatEditing: function(inDatum, inRowIndex){ 394 return '<input class="dojoxGrid -input" type="checkbox"' + (inDatum ? ' checked="checked"' : '') + ' style="width: auto" />';394 return '<input class="dojoxGridInput" type="checkbox"' + (inDatum ? ' checked="checked"' : '') + ' style="width: auto" />'; 395 395 }, 396 396 doclick: function(e){ -
dojox/trunk/grid/DataGrid.js
r14483 r14589 345 345 for(var i=0, ss=["inflight", "error", "inserting"], s; s=ss[i]; i++){ 346 346 if(states[s]){ 347 c = ' dojoxGrid -row-' + s;347 c = ' dojoxGridRow-' + s; 348 348 break; 349 349 } -
dojox/trunk/grid/resources/Grid.css
r14579 r14589 19 19 /* master header */ 20 20 21 .dojoxGrid -master-header {21 .dojoxGridMasterHeader { 22 22 position: relative; 23 23 } … … 25 25 /* master view */ 26 26 27 .dojoxGrid -master-view {27 .dojoxGridMasterView { 28 28 position: relative; 29 29 } … … 31 31 /* master messages */ 32 32 33 .dojoxGrid -master-messages {33 .dojoxGridMasterMessages { 34 34 position: relative; 35 35 padding: 1em; … … 40 40 /* views */ 41 41 42 .dojoxGrid -view {42 .dojoxGridView { 43 43 position: absolute; 44 44 overflow: hidden; … … 47 47 /* header */ 48 48 49 .dojoxGrid -header {49 .dojoxGridHeader { 50 50 position: absolute; 51 51 overflow: hidden; 52 52 } 53 53 54 .dojoxGrid -header {54 .dojoxGridHeader { 55 55 background-color: #E8E1CF; 56 56 } 57 57 58 .dojoxGrid -header table {58 .dojoxGridHeader table { 59 59 text-align: center; 60 60 } 61 61 62 .dojoxGrid-header .dojoxGrid-cell-content { 63 text-align: center; 64 } 65 66 .dojoxGrid-header .dojoxGrid-cell { 62 .dojoxGridHeader .dojoxGridCell { 67 63 border: 1px solid; 68 64 border-color: #F6F4EB #ACA899 #ACA899 #F6F4EB; … … 71 67 } 72 68 73 .dojoxGrid -header .dojoxGrid-cell-over {69 .dojoxGridHeader .dojoxGridCellOver { 74 70 background-image: none; 75 71 background-color: white; … … 80 76 } 81 77 82 .dojoxGrid -header .dojoxGrid-cell-focus {78 .dojoxGridHeader .dojoxGridCellFocus { 83 79 border: 1px dashed blue; 84 80 } 85 81 86 .dojoxGrid -header.dojoxGrid-cell-focus.dojoxGrid-cell-over {82 .dojoxGridHeader.dojoxGridCellFocus.dojoxGridCellOver { 87 83 background-image: none; 88 84 background-color: white; … … 93 89 } 94 90 95 . gridArrowButtonChar {91 .dojoxGridArrowButtonChar { 96 92 display:none !important; 97 93 } 98 . gridArrowButtonNode {94 .dojoxGridArrowButtonNode { 99 95 display: inline !important; 100 96 padding-left: 16px; 101 97 } 102 .dojoxGrid -sort-down .gridArrowButtonNode {98 .dojoxGridSortDown .dojoxGridArrowButtonNode { 103 99 background: url(images/grid_sort_down.gif) center no-repeat; 104 100 } 105 .dojoxGrid -sort-up .gridArrowButtonNode {101 .dojoxGridSortUp .dojoxGridArrowButtonNode { 106 102 background: url(images/grid_sort_up.gif) center no-repeat; 107 103 } 108 104 109 .dijit_a11y . gridArrowButtonChar {105 .dijit_a11y .dojoxGridArrowButtonChar { 110 106 display:inline !important; 111 107 } 112 .dijit_a11y . gridArrowButtonNode {108 .dijit_a11y .dojoxGridArrowButtonNode { 113 109 display: none !important; 114 110 } … … 116 112 /* content */ 117 113 118 .dojoxGrid -scrollbox {114 .dojoxGridScrollbox { 119 115 position: relative; 120 116 overflow: auto; … … 123 119 } 124 120 125 .dojoxGrid -content {121 .dojoxGridContent { 126 122 position: relative; 127 123 overflow: hidden; … … 132 128 /* rowbar */ 133 129 134 .dojoxGrid -rowbar {130 .dojoxGridRowbar { 135 131 border: 1px solid; 136 132 border-color: #F6F4EB #ACA899 #ACA899 #F6F4EB; … … 139 135 } 140 136 141 .dojoxGrid -rowbar-inner {137 .dojoxGridRowbarInner { 142 138 border-top: 1px solid #F6F4EB; 143 139 } 144 140 145 .dojoxGrid -rowbar-over {141 .dojoxGridRowbarOver { 146 142 background-image: none; 147 143 background-color: white; … … 150 146 } 151 147 152 .dojoxGrid -rowbar-selected {148 .dojoxGridRowbarSelected { 153 149 background-color: #D9E8F9; 154 150 } … … 156 152 /* rows */ 157 153 158 .dojoxGrid -row {154 .dojoxGridRow { 159 155 position: relative; 160 156 width: 9000em; 161 157 } 162 158 163 .dojoxGrid -row {159 .dojoxGridRow { 164 160 /*border: 1px solid #E8E4D8;*/ 165 161 border: 1px solid #E8E4D8; … … 172 168 } 173 169 174 .dojoxGrid -row-over {170 .dojoxGridRowOver { 175 171 border-top-color: #FEBE47; 176 172 border-bottom-color: #FEBE47; … … 181 177 } 182 178 183 .dojoxGrid -row-odd {179 .dojoxGridRowOdd { 184 180 background-color: #FFFDF3; 185 181 /*background-color: #F9F7E8;*/ 186 182 } 187 183 188 .dojoxGrid -row-selected {184 .dojoxGridRowSelected { 189 185 background-color: #D9E8F9; 190 186 } 191 187 192 .dojoxGrid -row-table {188 .dojoxGridRowTable { 193 189 table-layout: fixed; 194 190 width: 0; 195 191 } 196 192 197 .dojoxGrid -invisible {193 .dojoxGridInvisible { 198 194 visibility: hidden; 199 195 } 200 196 201 .Xdojo-ie .dojoxGrid -invisible {197 .Xdojo-ie .dojoxGridInvisible { 202 198 display: none; 203 199 } 204 200 205 .dojoxGrid -invisible td, .dojoxGrid-header .dojoxGrid-invisible td {201 .dojoxGridInvisible td, .dojoxGridHeader .dojoxGridInvisible td { 206 202 border-top-width: 0; 207 203 border-bottom-width: 0; … … 214 210 /* cells */ 215 211 216 .dojoxGrid -cell {212 .dojoxGridCell { 217 213 border: 1px solid; 218 214 border-color: #EBEADB; … … 223 219 } 224 220 225 .dojoxGrid -cell-focus {221 .dojoxGridCellFocus { 226 222 border: 1px dashed blue; 227 223 } 228 224 229 .dojoxGrid -cell-over {225 .dojoxGridCellOver { 230 226 border: 1px dotted #FEBE47; 231 227 } 232 228 233 .dojoxGrid -cell-focus.dojoxGrid-cell-over {229 .dojoxGridCellFocus.dojoxGridCellOver { 234 230 border: 1px dotted green; 235 231 } 236 232 237 .dojoxGrid-cell-clip {238 width: 100%;239 overflow: hidden;240 white-space:nowrap;241 text-overflow: ellipsis;242 }243 244 233 /* editing */ 245 234 246 .dojoxGrid -row-editing td {235 .dojoxGridRowEditing td { 247 236 background-color: #F4FFF4; 248 237 } 249 238 250 .dojoxGrid -row-inserting td {239 .dojoxGridRow-inserting td { 251 240 background-color: #F4FFF4; 252 241 } 253 .dojoxGrid -row-inflight td {242 .dojoxGridRow-inflight td { 254 243 background-color: #F2F7B7; 255 244 } 256 .dojoxGrid -row-error td {245 .dojoxGridRow-error td { 257 246 background-color: #F8B8B6; 258 247 } 259 248 260 .dojoxGrid -input, .dojoxGrid-select, .dojoxGrid-textarea {249 .dojoxGridInput, .dojoxGridSelect, .dojoxGridTextarea { 261 250 margin: 0; 262 251 padding: 0; … … 267 256 } 268 257 269 .dojoxGrid -hidden-focus {258 .dojoxGridHiddenFocus { 270 259 position: absolute; 271 260 left: -1000px; … … 274 263 } 275 264 276 .dijit_a11y .dojoxGrid -rowbar-selected {265 .dijit_a11y .dojoxGridRowbarSelected { 277 266 border-top: 1px solid white; 278 267 border-bottom: 1px dashed black; … … 281 270 } 282 271 283 .dijit_a11y .dojoxGrid -rowbar-selected .dojoxGrid-rowbar-inner {272 .dijit_a11y .dojoxGridRowbarSelected .dojoxGridRowbarInner { 284 273 border: 0; 285 274 border-top: 1px solid white; 286 275 } 287 276 288 .dijit_a11y .dojoxGrid -row-selected {277 .dijit_a11y .dojoxGridRowSelected { 289 278 border-bottom: 1px dashed black; 290 279 } -
dojox/trunk/grid/resources/Grid_rtl.css
r13377 r14589 1 .dijitRtl .dojoxGrid -header table {1 .dijitRtl .dojoxGridHeader table { 2 2 } 3 3 4 .dj_ie .dijitRtl .dojoxGrid -header table {4 .dj_ie .dijitRtl .dojoxGridHeader table { 5 5 float:none; 6 6 } 7 7 8 .dijitRtl .dojoxGrid -content {8 .dijitRtl .dojoxGridContent { 9 9 float:left; 10 10 } -
dojox/trunk/grid/resources/nihiloGrid.css
r14579 r14589 8 8 /* master messages */ 9 9 10 .nihilo .dojoxGrid -master-messages {10 .nihilo .dojoxGridMasterMessages { 11 11 background-color: #fefefe; 12 12 } … … 14 14 /* header */ 15 15 16 .nihilo .dojoxGrid -header {16 .nihilo .dojoxGridHeader { 17 17 background-color: #e9e9e9; 18 18 } 19 19 20 .nihilo .dojoxGrid -header .dojoxGrid-cell {20 .nihilo .dojoxGridHeader .dojoxGridCell { 21 21 border-width: 1px; 22 22 padding-bottom: 0px; … … 26 26 } 27 27 28 .nihilo .dojoxGrid -header .dojoxGrid-cell-over {28 .nihilo .dojoxGridHeader .dojoxGridCellOver { 29 29 background: url(../../../dijit/themes/nihilo/images/titleBarActive.png) #e9e9e9 repeat-x top; 30 30 } 31 31 32 .nihilo . gridArrowButtonChar {32 .nihilo .dojoxGridArrowButtonChar { 33 33 float: right; 34 34 } 35 .nihilo . gridArrowButtonNode {35 .nihilo .dojoxGridArrowButtonNode { 36 36 display: block !important; 37 37 padding-left: 0px; … … 42 42 margin-top: 1px; 43 43 } 44 .dj_ie6 .nihilo . gridArrowButtonNode {44 .dj_ie6 .nihilo .dojoxGridArrowButtonNode { 45 45 background-image:url("../../../dijit/themes/nihilo/images/spriteArrows.gif"); 46 46 } 47 47 48 .nihilo .dojoxGrid -sort-up .gridArrowButtonNode {48 .nihilo .dojoxGridSortUp .dojoxGridArrowButtonNode { 49 49 background-position: -21px; 50 50 } 51 .dijit_a11y . gridArrowButtonNode {51 .dijit_a11y .dojoxGridArrowButtonNode { 52 52 display: none !important; 53 53 } … … 55 55 /* content */ 56 56 57 .nihilo .dojoxGrid -scrollbox {57 .nihilo .dojoxGridScrollbox { 58 58 background-color: #fefefe; 59 59 } … … 61 61 /* rowbar */ 62 62 63 .nihilo .dojoxGrid -rowbar {63 .nihilo .dojoxGridRowbar { 64 64 border: none; 65 65 background: url(../../../dijit/themes/nihilo/images/titleBar.png) #e9e9e9 repeat-y right; … … 68 68 } 69 69 70 .nihilo .dojoxGrid -rowbar-inner {70 .nihilo .dojoxGridRowbarInner { 71 71 border: none; 72 72 border-bottom: 1px solid #cccccc; 73 73 } 74 74 75 .nihilo .dojoxGrid -rowbar-over {75 .nihilo .dojoxGridRowbarOver { 76 76 background: url(../../../dijit/themes/nihilo/images/titleBarActive.png) #e9e9e9 repeat-y right; 77 77 } 78 78 79 .nihilo .dojoxGrid -rowbar-selected {79 .nihilo .dojoxGridRowbarSelected { 80 80 background: #D9E8F9 url(../../../dijit/themes/nihilo/images/titleBar.png) #dddddd no-repeat center; 81 81 border-right: 1px solid #cccccc; … … 84 84 /* rows */ 85 85 86 .nihilo .dojoxGrid -row {86 .nihilo .dojoxGridRow { 87 87 border: none; 88 88 background-color: white; 89 89 } 90 90 91 .nihilo .dojoxGrid -row-over {91 .nihilo .dojoxGridRowOver { 92 92 border-top-color: #cccccc; 93 93 border-bottom-color: #cccccc; 94 94 } 95 95 96 .nihilo .dojoxGrid -row-over .dojoxGrid-cell {96 .nihilo .dojoxGridRowOver .dojoxGridCell { 97 97 background-color: #ffe284; 98 98 } 99 99 100 .nihilo .dojoxGrid -row-odd {100 .nihilo .dojoxGridRowOdd { 101 101 background-color: #f2f5f9; 102 102 } 103 103 104 .nihilo .dojoxGrid -row-selected {104 .nihilo .dojoxGridRowSelected { 105 105 background-color: #aec7e3; 106 106 } … … 108 108 /* cells */ 109 109 110 .nihilo .dojoxGrid -cell {110 .nihilo .dojoxGridCell { 111 111 border: 1px dotted #D5CDB5; 112 112 border-left-color: transparent; … … 114 114 } 115 115 116 .dj_ff2 .nihilo .dojoxGrid -cell {116 .dj_ff2 .nihilo .dojoxGridCell { 117 117 border-left-width: 0px; 118 118 border-top-width: 0px; 119 119 } 120 120 121 .dj_ie6 .nihilo .dojoxGrid -cell {121 .dj_ie6 .nihilo .dojoxGridCell { 122 122 border: 1px solid white; 123 123 border-right: 1px solid #D5CDB5; 124 124 } 125 125 126 .nihilo .dojoxGrid -cell-focus {126 .nihilo .dojoxGridCellFocus { 127 127 border: 1px dotted #a6a6a6; 128 128 } 129 129 130 .nihilo .dojoxGrid -cell-over {130 .nihilo .dojoxGridCellOver { 131 131 border: 1px dotted #a6a6a6; 132 132 } 133 133 134 .nihilo .dojoxGrid -cell-focus.dojoxGrid-cell-over {134 .nihilo .dojoxGridCellFocus.dojoxGridCellOver { 135 135 border: 1px dotted #595959; 136 136 } … … 139 139 140 140 /* FIXME: these colors are off! */ 141 .nihilo .dojoxGrid -row-editing td {141 .nihilo .dojoxGridRowEditing td { 142 142 /* background-color: #F4FFF4; */ 143 143 background-color: #ffe284; … … 145 145 } 146 146 147 .nihilo .dojoxGrid -row-inserting td {147 .nihilo .dojoxGridRow-inserting td { 148 148 background-color: #F4FFF4; 149 149 } 150 .nihilo .dojoxGrid -row-inflight td {150 .nihilo .dojoxGridRow-inflight td { 151 151 background-color: #F2F7B7; 152 152 } 153 .nihilo .dojoxGrid -row-error td {153 .nihilo .dojoxGridRow-error td { 154 154 background-color: #F8B8B6; 155 155 } -
dojox/trunk/grid/resources/soriaGrid.css
r14579 r14589 8 8 /* master messages */ 9 9 10 .soria .dojoxGrid -master-messages {10 .soria .dojoxGridMasterMessages { 11 11 background-color: #fefefe; 12 12 } … … 14 14 /* header */ 15 15 16 .soria .dojoxGrid -header {16 .soria .dojoxGridHeader { 17 17 background-color: #e9e9e9; 18 18 } 19 19 20 .soria .dojoxGrid -header .dojoxGrid-cell {20 .soria .dojoxGridHeader .dojoxGridCell { 21 21 border-width: 1px; 22 22 padding-bottom: 0px; … … 26 26 } 27 27 28 .soria .dojoxGrid -header .dojoxGrid-cell-over {28 .soria .dojoxGridHeader .dojoxGridCellOver { 29 29 background: url(../../../dijit/themes/soria/images/titleBarActive.png) #e9e9e9 repeat-x top; 30 30 } 31 31 32 .soria . gridArrowButtonChar {32 .soria .dojoxGridArrowButtonChar { 33 33 float: right; 34 34 } 35 .soria . gridArrowButtonNode {35 .soria .dojoxGridArrowButtonNode { 36 36 display: block !important; 37 37 padding-left: 0px; … … 42 42 height: 1em; 43 43 } 44 .dj_ie6 .soria . gridArrowButtonNode {44 .dj_ie6 .soria .dojoxGridArrowButtonNode { 45 45 background-image:url("../../../dijit/themes/soria/images/spriteArrows.gif"); 46 46 } 47 47 48 .soria .dojoxGrid -sort-up .gridArrowButtonNode {48 .soria .dojoxGridSortUp .dojoxGridArrowButtonNode { 49 49 background-position: -21px; 50 50 } 51 .dijit_a11y . gridArrowButtonNode {51 .dijit_a11y .dojoxGridArrowButtonNode { 52 52 display: none !important; 53 53 } … … 55 55 /* content */ 56 56 57 .soria .dojoxGrid -scrollbox {57 .soria .dojoxGridScrollbox { 58 58 background-color: #fefefe; 59 59 } … … 61 61 /* rowbar */ 62 62 63 .soria .dojoxGrid -rowbar {63 .soria .dojoxGridRowbar { 64 64 border: none; 65 65 background: url(../../../dijit/themes/soria/images/titleBar.png) #e9e9e9 repeat-y right; … …