Skip to content

Commit

Permalink
Revert "Edit naming typo"
Browse files Browse the repository at this point in the history
This reverts commit 8efe115.
  • Loading branch information
qhng committed Nov 3, 2016
1 parent 39612a2 commit 06da366
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 30 deletions.
14 changes: 5 additions & 9 deletions src/main/java/seedu/savvytasker/ui/FloatingPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
import seedu.savvytasker.commons.events.ui.TaskPanelSelectionChangedEvent;
import seedu.savvytasker.model.task.ReadOnlyTask;

//@@author A0138431L

/**
* Panel containing the list floating task.
* @author A0138431L
*
* Panel containing the list of persons.
*/
public class FloatingPanel extends UiPart {
private final Logger logger = LogsCenter.getLogger(TaskListPanel.class);
Expand Down Expand Up @@ -53,10 +49,10 @@ public void setPlaceholder(AnchorPane pane) {

public static FloatingPanel load(Stage primaryStage, AnchorPane floatingListPlaceholder,
ObservableList<ReadOnlyTask> taskList) {
FloatingPanel floatingPanel =
FloatingPanel oveduePanel =
UiPartLoader.loadUiPart(primaryStage, floatingListPlaceholder, new FloatingPanel());
floatingPanel.configure(taskList);
return floatingPanel;
oveduePanel.configure(taskList);
return oveduePanel;
}

private void configure(ObservableList<ReadOnlyTask> taskList) {
Expand All @@ -78,7 +74,7 @@ private void addToPlaceholder() {
private void setEventHandlerForSelectionChangeEvent() {
taskListView.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {
if (newValue != null) {
logger.fine("Selection in floating task list panel changed to : '" + newValue + "'");
logger.fine("Selection in person list panel changed to : '" + newValue + "'");
raise(new TaskPanelSelectionChangedEvent(newValue));
}
});
Expand Down
14 changes: 5 additions & 9 deletions src/main/java/seedu/savvytasker/ui/OverduePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
import seedu.savvytasker.commons.events.ui.TaskPanelSelectionChangedEvent;
import seedu.savvytasker.model.task.ReadOnlyTask;

//@@author A0138431L

/**
* Panel containing the list overdue task.
* @author A0138431L
*
*/
* Panel containing the list of persons.
*/
public class OverduePanel extends UiPart {
private final Logger logger = LogsCenter.getLogger(TaskListPanel.class);
private static final String FXML = "overdueList.fxml";
Expand Down Expand Up @@ -51,10 +47,10 @@ public void setPlaceholder(AnchorPane pane) {
this.placeHolderPane = pane;
}

public static OverduePanel load(Stage primaryStage, AnchorPane overdueListPlaceholder,
public static OverduePanel load(Stage primaryStage, AnchorPane personListPlaceholder,
ObservableList<ReadOnlyTask> taskList) {
OverduePanel oveduePanel =
UiPartLoader.loadUiPart(primaryStage, overdueListPlaceholder, new OverduePanel());
UiPartLoader.loadUiPart(primaryStage, personListPlaceholder, new OverduePanel());
oveduePanel.configure(taskList);
return oveduePanel;
}
Expand All @@ -78,7 +74,7 @@ private void addToPlaceholder() {
private void setEventHandlerForSelectionChangeEvent() {
taskListView.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {
if (newValue != null) {
logger.fine("Selection in overdue task list panel changed to : '" + newValue + "'");
logger.fine("Selection in person list panel changed to : '" + newValue + "'");
raise(new TaskPanelSelectionChangedEvent(newValue));
}
});
Expand Down
20 changes: 8 additions & 12 deletions src/main/java/seedu/savvytasker/ui/UpcomingPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
import seedu.savvytasker.commons.events.ui.TaskPanelSelectionChangedEvent;
import seedu.savvytasker.model.task.ReadOnlyTask;

//@@author A0138431L

/**
* Panel containing the list overdue task.
* @author A0138431L
*
*/
* Panel containing the list of persons.
*/
public class UpcomingPanel extends UiPart {
private final Logger logger = LogsCenter.getLogger(TaskListPanel.class);
private static final String FXML = "upcomingList.fxml";
Expand Down Expand Up @@ -51,12 +47,12 @@ public void setPlaceholder(AnchorPane pane) {
this.placeHolderPane = pane;
}

public static UpcomingPanel load(Stage primaryStage, AnchorPane UpcomingListPlaceholder,
public static UpcomingPanel load(Stage primaryStage, AnchorPane personListPlaceholder,
ObservableList<ReadOnlyTask> taskList) {
UpcomingPanel upcomingPanel =
UiPartLoader.loadUiPart(primaryStage, UpcomingListPlaceholder, new UpcomingPanel());
upcomingPanel.configure(taskList);
return upcomingPanel;
UpcomingPanel oveduePanel =
UiPartLoader.loadUiPart(primaryStage, personListPlaceholder, new UpcomingPanel());
oveduePanel.configure(taskList);
return oveduePanel;
}

private void configure(ObservableList<ReadOnlyTask> taskList) {
Expand All @@ -78,7 +74,7 @@ private void addToPlaceholder() {
private void setEventHandlerForSelectionChangeEvent() {
taskListView.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {
if (newValue != null) {
logger.fine("Selection in overdue task list panel changed to : '" + newValue + "'");
logger.fine("Selection in person list panel changed to : '" + newValue + "'");
raise(new TaskPanelSelectionChangedEvent(newValue));
}
});
Expand Down

0 comments on commit 06da366

Please sign in to comment.