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
Sven Franck
todomvc
Commits
4ca60efd
Commit
4ca60efd
authored
Mar 15, 2014
by
Duilio Protti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo fix + updates to uniform comments
parent
1aa649af
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 @
4ca60efd
...
...
@@ -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