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.
Morph UI and Integrate Anakin components (#77)
* Shift command box and result display to bottom * Update app icon to Anakin * Update app title to Anakin * Fix unit test for config * Add Anakin Card UI components * Add Anakin Card Change Event * Add Anakin Deck UI components * Update docs for Anakin Card UI * Add FXMLs for Anakin Deck and Cards * Add ability to getFilteredCardList to AnakinLogic * Add SwitchPanelRequestEvent * Add sample data for Anakin * Update user preferences * Update sample data * Stack card and deck list onto list panel * Add ability to switch panel * Fix New Deck Command * Add concept of displayedCards * Change logging for card and deck list * Update Anakin sample data * Integrate Anakin components into MainApp * Remove SwitchPanelRequest Event * Update styles * Clean up code * Fix checkstyle errors * Update Anakin sample data * Update css * Fix style issue with card panel * Add javadoc comment * Do not display answer in Anakin card UI * Fix test errors in travis
- Loading branch information
Showing
34 changed files
with
715 additions
and
165 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
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
26 changes: 26 additions & 0 deletions
26
src/main/java/seedu/address/commons/events/ui/CardPanelSelectionChangedEvent.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,26 @@ | ||
package seedu.address.commons.events.ui; | ||
|
||
import seedu.address.commons.events.BaseEvent; | ||
import seedu.address.model.anakindeck.AnakinCard; | ||
|
||
/** | ||
* Represents a selection change in the Card List Panel | ||
*/ | ||
public class CardPanelSelectionChangedEvent extends BaseEvent { | ||
|
||
|
||
private final AnakinCard newSelection; | ||
|
||
public CardPanelSelectionChangedEvent(AnakinCard newSelection) { | ||
this.newSelection = newSelection; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName(); | ||
} | ||
|
||
public AnakinCard getNewSelection() { | ||
return newSelection; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/seedu/address/commons/events/ui/DeckPanelSelectionChangedEvent.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,26 @@ | ||
package seedu.address.commons.events.ui; | ||
|
||
import seedu.address.commons.events.BaseEvent; | ||
import seedu.address.model.anakindeck.AnakinDeck; | ||
|
||
/** | ||
* Represents a selection change in the Deck List Panel | ||
*/ | ||
public class DeckPanelSelectionChangedEvent extends BaseEvent { | ||
|
||
|
||
private final AnakinDeck newSelection; | ||
|
||
public DeckPanelSelectionChangedEvent(AnakinDeck newSelection) { | ||
this.newSelection = newSelection; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName(); | ||
} | ||
|
||
public AnakinDeck 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
Oops, something went wrong.