| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of app; | 5 part of app; |
| 6 | 6 |
| 7 abstract class TableTreeRow extends Observable { | 7 abstract class TableTreeRow extends Observable { |
| 8 static const arrowRight = '\u2192'; | 8 static const arrowRight = '\u2192'; |
| 9 static const arrowDownRight = '\u21b3'; | 9 static const arrowDownRight = '\u21b3'; |
| 10 // Number of ems each subtree is indented. | 10 // Number of ems each subtree is indented. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 HtmlElement _makeColorBlock(String backgroundColor) { | 62 HtmlElement _makeColorBlock(String backgroundColor) { |
| 63 var colorBlock = new DivElement(); | 63 var colorBlock = new DivElement(); |
| 64 colorBlock.style.minWidth = '2px'; | 64 colorBlock.style.minWidth = '2px'; |
| 65 colorBlock.style.backgroundColor = backgroundColor; | 65 colorBlock.style.backgroundColor = backgroundColor; |
| 66 return colorBlock; | 66 return colorBlock; |
| 67 } | 67 } |
| 68 | 68 |
| 69 HtmlElement _makeExpander() { | 69 HtmlElement _makeExpander() { |
| 70 var expander = new SpanElement(); | 70 var expander = new SpanElement(); |
| 71 expander.style.minWidth = '2em'; | 71 expander.style.minWidth = '24px'; |
| 72 expander.style.minHeight = '24px'; |
| 72 listeners.add(expander.onClick.listen(onClick)); | 73 listeners.add(expander.onClick.listen(onClick)); |
| 73 return expander; | 74 return expander; |
| 74 } | 75 } |
| 75 | 76 |
| 76 void _cleanUpListeners() { | 77 void _cleanUpListeners() { |
| 77 for (var i = 0; i < listeners.length; i++) { | 78 for (var i = 0; i < listeners.length; i++) { |
| 78 listeners[i].cancel(); | 79 listeners[i].cancel(); |
| 79 } | 80 } |
| 80 listeners.clear(); | 81 listeners.clear(); |
| 81 } | 82 } |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 if (column != _sortColumnIndex) { | 363 if (column != _sortColumnIndex) { |
| 363 return columns[column].label + '\u2003'; | 364 return columns[column].label + '\u2003'; |
| 364 } | 365 } |
| 365 return columns[column].label + (_sortDescending ? arrowUp : arrowDown); | 366 return columns[column].label + (_sortDescending ? arrowUp : arrowDown); |
| 366 } | 367 } |
| 367 | 368 |
| 368 dynamic getValue(int row, int column) { | 369 dynamic getValue(int row, int column) { |
| 369 return rows[row].values[column]; | 370 return rows[row].values[column]; |
| 370 } | 371 } |
| 371 } | 372 } |
| OLD | NEW |