forked from nus-cs2103-AY1718S1/addressbook-level4-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nus-cs2103-AY1718S1#70 from Procrastinatus/master
Implemented multi-delete for persons, added schedule list panel, added some tests
- Loading branch information
Showing
48 changed files
with
1,491 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/seedu/address/commons/events/ui/JumpToScheduleListRequestEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package seedu.address.commons.events.ui; | ||
|
||
import seedu.address.commons.core.index.Index; | ||
import seedu.address.commons.events.BaseEvent; | ||
|
||
/** | ||
* Indicates a request to jump to the list of persons | ||
*/ | ||
public class JumpToScheduleListRequestEvent extends BaseEvent { | ||
|
||
public final int targetIndex; | ||
|
||
public JumpToScheduleListRequestEvent(Index targetIndex) { | ||
this.targetIndex = targetIndex.getZeroBased(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.getClass().getSimpleName(); | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/seedu/address/commons/events/ui/SchedulePanelSelectionChangedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package seedu.address.commons.events.ui; | ||
|
||
import seedu.address.commons.events.BaseEvent; | ||
import seedu.address.ui.ScheduleCard; | ||
|
||
/** | ||
* Represents a selection change in the Person List Panel | ||
*/ | ||
public class SchedulePanelSelectionChangedEvent extends BaseEvent { | ||
|
||
private final ScheduleCard newSelection; | ||
|
||
public SchedulePanelSelectionChangedEvent(ScheduleCard newSelection) { | ||
this.newSelection = newSelection; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.getClass().getSimpleName(); | ||
} | ||
|
||
public ScheduleCard getNewSelection() { | ||
return newSelection; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.