Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Unified Diff: samples/total/client/CellLocation.dart

Issue 10635015: Delete proxy and total samples, which have bit-rotted. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/total/client/CellContents.dart ('k') | samples/total/client/CellRange.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/total/client/CellLocation.dart
===================================================================
--- samples/total/client/CellLocation.dart (revision 9011)
+++ samples/total/client/CellLocation.dart (working copy)
@@ -1,56 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * An object for holding cell locations.
- *
- * This class is immutable: instances cannot be changed after creation.
- */
-class CellLocation implements Hashable {
- final RowCol _rowCol;
- final Spreadsheet _spreadsheet;
-
- int get col() => _rowCol.col;
-
- int get row() => _rowCol.row;
-
- RowCol get rowCol() => _rowCol;
-
- Spreadsheet get spreadsheet() => _spreadsheet;
-
- CellLocation(this._spreadsheet, this._rowCol) { }
-
- bool operator ==(CellLocation other) {
- if (!(other is CellLocation)) {
- return false;
- }
- return _spreadsheet === other._spreadsheet && other._rowCol == _rowCol;
- }
-
- CellLocation operator +(RowCol rowCol) => new CellLocation(_spreadsheet, _rowCol + rowCol);
-
- // Convenience method for 'spreadsheet.getCell(rowCol)'
- Cell getCell() => _spreadsheet.getCell(_rowCol);
-
- int hashCode() => (_spreadsheet.hashCode() * 31) ^ _rowCol.hashCode();
-
- bool isValidCell() => _rowCol.isValidCell();
-
- // Convenience method for 'spreadsheet.markDirty(rowCol)'
- void markDirty() {
- _spreadsheet.markDirty(_rowCol);
- }
-
- // Convenience method for 'spreadsheet.setCellContentFromString(rowCol, content)'
- Cell setCellFromContentString(String content) =>
- _spreadsheet.setCellFromContentString(_rowCol, content);
-
- String toString() {
- // TODO: Sheets should have names, and we should use them here.
- // But we probably want a flag, because when printing strings
- // we would normally only add the spreadsheet ID if the formula or
- // whatever we are printing is in a different spreadsheet.
- return _rowCol.toString();
- }
-}
« no previous file with comments | « samples/total/client/CellContents.dart ('k') | samples/total/client/CellRange.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698