forked from nus-cs2103-AY1819S1/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/CS2103-AY1819S1-F10-2/main …
…into add-status-to-tag
- Loading branch information
Showing
92 changed files
with
1,804 additions
and
912 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
src/main/java/loanbook/commons/events/ui/BikeListPanelSelectionChangedEvent.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,14 @@ | ||
package loanbook.commons.events.ui; | ||
|
||
import loanbook.model.bike.Bike; | ||
|
||
/** | ||
* Represents a selection change in the Bike List Panel. | ||
*/ | ||
public class BikeListPanelSelectionChangedEvent extends ListPanelSelectionChangedEvent<Bike> { | ||
|
||
public BikeListPanelSelectionChangedEvent(Bike newSelection) { | ||
super(newSelection); | ||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/loanbook/commons/events/ui/BikeListShowEvent.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,14 @@ | ||
package loanbook.commons.events.ui; | ||
|
||
import loanbook.commons.events.BaseEvent; | ||
|
||
/** | ||
* Represents a request to change the List Panel to view bikes. | ||
*/ | ||
public class BikeListShowEvent extends BaseEvent { | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/loanbook/commons/events/ui/ListPanelSelectionChangedEvent.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,24 @@ | ||
package loanbook.commons.events.ui; | ||
|
||
import loanbook.commons.events.BaseEvent; | ||
|
||
/** | ||
* Represents a selection change in the List Panel. | ||
*/ | ||
public class ListPanelSelectionChangedEvent<T> extends BaseEvent { | ||
|
||
private final T newSelection; | ||
|
||
public ListPanelSelectionChangedEvent(T newSelection) { | ||
this.newSelection = newSelection; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName(); | ||
} | ||
|
||
public T getNewSelection() { | ||
return newSelection; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/loanbook/commons/events/ui/LoanListPanelSelectionChangedEvent.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,14 @@ | ||
package loanbook.commons.events.ui; | ||
|
||
import loanbook.model.loan.Loan; | ||
|
||
/** | ||
* Represents a selection change in the Loan List Panel. | ||
*/ | ||
public class LoanListPanelSelectionChangedEvent extends ListPanelSelectionChangedEvent<Loan> { | ||
|
||
public LoanListPanelSelectionChangedEvent(Loan newSelection) { | ||
super(newSelection); | ||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/loanbook/commons/events/ui/LoanListShowEvent.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,14 @@ | ||
package loanbook.commons.events.ui; | ||
|
||
import loanbook.commons.events.BaseEvent; | ||
|
||
/** | ||
* Represents a request to change the List Panel to view loans. | ||
*/ | ||
public class LoanListShowEvent extends BaseEvent { | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName(); | ||
} | ||
} |
26 changes: 0 additions & 26 deletions
26
src/main/java/loanbook/commons/events/ui/LoanPanelSelectionChangedEvent.java
This file was deleted.
Oops, something went wrong.
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.