Skip to content

Commit

Permalink
Update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan Weiguang committed Nov 6, 2016
1 parent 493d642 commit 0ae69cd
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import seedu.agendum.commons.events.BaseEvent;

//@@author A0148031R
/**
* An event requesting to view the help page.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/seedu/agendum/ui/CommandBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
import java.util.logging.Logger;

//@@author A0148031R
/**
* Controller for the command box field
*
*/
public class CommandBox extends UiPart {
private final Logger logger = LogsCenter.getLogger(CommandBox.class);
private static final String FXML = "CommandBox.fxml";
Expand Down Expand Up @@ -118,6 +122,9 @@ private void handleCommandInputChanged() {
logger.info(RESULT_FEEDBACK + mostRecentResult.feedbackToUser);
}

/**
* Post meesage in the message place holder under the command box
*/
private void postMessage(String message) {
this.messagePlaceHolder.getChildren().clear();
raise(new CloseHelpWindowRequestEvent());
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/seedu/agendum/ui/CompletedTasksPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ private void configure() {
completedTasksListView.addEventFilter(MouseEvent.MOUSE_PRESSED, Event::consume);
}

/**
* Scrolls to the newly updated task and highlight for several seconds. If
* there are multiple tasks updated, previous highlight will not be cleared.
*/
public void scrollTo(Task task, boolean hasMultipleTasks) {
Platform.runLater(() -> {

Expand Down
5 changes: 4 additions & 1 deletion src/main/java/seedu/agendum/ui/FloatingTasksPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ private void configure() {
floatingTasksListView.addEventFilter(MouseEvent.MOUSE_PRESSED, Event::consume);
}

/**
* Scrolls to the newly updated task and highlight for several seconds. If
* there are multiple tasks updated, previous highlight will not be cleared.
*/
public void scrollTo(Task task, boolean hasMultipleTasks) {
Platform.runLater(() -> {

Expand Down Expand Up @@ -83,7 +87,6 @@ protected void updateItem(ReadOnlyTask task, boolean empty) {
setText(null);
} else {
setGraphic(TaskCard.load(task, mainTaskList.indexOf(task) + 1).getLayout());
// scrollTo();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/agendum/ui/TasksPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

//@@author A0148031R
/**
* Panel contains the list of tasks
* Panel that contains the list of tasks
*/
public abstract class TasksPanel extends UiPart{
private AnchorPane panel;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/seedu/agendum/ui/UpcomingTasksPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ private void configure() {
upcomingTasksListView.addEventFilter(MouseEvent.MOUSE_PRESSED, Event::consume);
}

/**
* Scrolls to the newly updated task and highlight for several seconds. If
* there are multiple tasks updated, previous highlight will not be cleared.
*/
public void scrollTo(Task task, boolean hasMultipleTasks) {
Platform.runLater(() -> {

Expand Down

0 comments on commit 0ae69cd

Please sign in to comment.