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

Unified Diff: samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/TodoItem.java

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 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
Index: samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/TodoItem.java
diff --git a/samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/TodoItem.java b/samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/TodoItem.java
deleted file mode 100644
index 243ee9a5523acce7d0a2dd779f47aef6f80fbfd7..0000000000000000000000000000000000000000
--- a/samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/TodoItem.java
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2015, the Dartino 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.md file.
-
-package com.google.dartino.todomvc;
-
-import android.view.View;
-import android.widget.CheckBox;
-import android.widget.TextView;
-
-import dartino.TodoMVCService;
-
-public class TodoItem {
- public String title;
- public boolean status;
-
- private int deleteEvent;
- private int completeEvent;
- private int uncompleteEvent;
-
- TodoItem(String title, boolean status, int deleteEvent, int completeEvent, int uncompleteEvent) {
- this.title = title;
- this.status = status;
- this.deleteEvent = deleteEvent;
- this.completeEvent = completeEvent;
- this.uncompleteEvent = uncompleteEvent;
- }
-
- public boolean done() {
- return status;
- }
-
- public void dispatchDeleteEvent() {
- TodoMVCPresenter.dispatch(deleteEvent);
- }
-
- public void dispatchCompleteEvent() {
- TodoMVCPresenter.dispatch(completeEvent);
- }
-
- public void dispatchUncompleteEvent() { TodoMVCPresenter.dispatch(uncompleteEvent); }
-
- public void setDeleteEvent(int deleteEvent) {
- this.deleteEvent = deleteEvent;
- }
-
- public void setCompleteEvent(int completeEvent) {
- this.completeEvent = completeEvent;
- }
-
- public void setUncompleteEvent(int uncompleteEvent) {
- this.uncompleteEvent = uncompleteEvent;
- }
-
- public void populateView(View view) {
- ((TextView) view.findViewById(R.id.todo_title)).setText(title);
- CheckBox box = (CheckBox) view.findViewById(R.id.todo_status);
- box.setChecked(status);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698