| OLD | NEW |
| 1 part of swarmlib; | |
| 2 | |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // 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 |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 // This file contains View framework classes. | 5 // This file contains View framework classes. |
| 8 // As it grows, it may need to be split into multiple files. | 6 // As it grows, it may need to be split into multiple files. |
| 9 | 7 |
| 10 /** A factory that creates a view from a data model. */ | 8 /** A factory that creates a view from a data model. */ |
| 11 abstract class ViewFactory<D> { | 9 abstract class ViewFactory<D> { |
| 12 View newView(D item); | 10 View newView(D item); |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 | 976 |
| 979 container = node.query('.dialog-body'); | 977 container = node.query('.dialog-body'); |
| 980 container.nodes.add(_content.node); | 978 container.nodes.add(_content.node); |
| 981 | 979 |
| 982 return node; | 980 return node; |
| 983 } | 981 } |
| 984 | 982 |
| 985 /** Override to handle dialog done. */ | 983 /** Override to handle dialog done. */ |
| 986 void onDone() { } | 984 void onDone() { } |
| 987 } | 985 } |
| OLD | NEW |