Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
537c78a0
Commit
537c78a0
authored
Mar 15, 2014
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #875 from dprotti/presentertypoandcomments
gwt sample - typo + updates to make comments uniform
parents
1aa649af
4ca60efd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
architecture-examples/gwt/src/com/todo/client/ToDoPresenter.java
...cture-examples/gwt/src/com/todo/client/ToDoPresenter.java
+7
-8
No files found.
architecture-examples/gwt/src/com/todo/client/ToDoPresenter.java
View file @
537c78a0
...
...
@@ -65,7 +65,6 @@ public class ToDoPresenter {
/**
* The interface that handles interactions from the view.
*
*/
public
interface
ViewEventHandler
{
/**
...
...
@@ -79,7 +78,7 @@ public class ToDoPresenter {
void
clearCompletedTasks
();
/**
* Sets the completed state of all tasks to the given state
* Sets the completed state of all tasks to the given state
.
*/
void
markAllCompleted
(
boolean
completed
);
}
...
...
@@ -131,7 +130,7 @@ public class ToDoPresenter {
}
/**
* Set up
a
the history changed handler, which provides routing.
* Set up the history changed handler, which provides routing.
*/
private
void
setupHistoryHandler
()
{
History
.
addValueChangeHandler
(
new
ValueChangeHandler
<
String
>()
{
...
...
@@ -145,7 +144,7 @@ public class ToDoPresenter {
}
/**
* Converts the string routing token into the equivalent enum value
* Converts the string routing token into the equivalent enum value
.
*/
private
ToDoRouting
parseRoutingToken
(
String
token
)
{
if
(
token
.
equals
(
"/active"
))
{
...
...
@@ -211,7 +210,7 @@ public class ToDoPresenter {
}
/**
* When the task state has changed, this method will update the UI and persist
* When the task state has changed, this method will update the UI and persist
.
*/
private
void
taskStateChanged
()
{
updateFilteredList
();
...
...
@@ -220,7 +219,7 @@ public class ToDoPresenter {
}
/**
* Sets the completed state of all tasks
* Sets the completed state of all tasks
.
*/
private
void
markAllCompleted
(
boolean
completed
)
{
...
...
@@ -235,7 +234,7 @@ public class ToDoPresenter {
}
/**
* Adds a new task based on the user input field
* Adds a new task based on the user input field
.
*/
private
void
addTask
()
{
String
taskTitle
=
view
.
getTaskText
().
trim
();
...
...
@@ -267,7 +266,7 @@ public class ToDoPresenter {
}
/**
* Saves the current to-do items to local storage
* Saves the current to-do items to local storage
.
*/
private
void
saveState
()
{
Storage
storage
=
Storage
.
getLocalStorageIfSupported
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment