Skip to content

Commit

Permalink
Merge 58632b6 into 60ee45b
Browse files Browse the repository at this point in the history
  • Loading branch information
tztzt committed Nov 8, 2018
2 parents 60ee45b + 58632b6 commit de2169c
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import seedu.planner.model.ReadOnlyFinancialPlanner;
import seedu.planner.ui.CustomSuggestionProvider;

//@author tztzt
/** Indicates that the summary map in the model has been changed*/
public class TagMapChangedEvent extends BaseEvent {

Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/planner/commons/util/CompareUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import seedu.planner.model.tag.Tag;
import seedu.planner.ui.SummaryEntry;

//@author tztzt
/**
* Comparator to sort {@code Record}s by name, date and moneyflow attributes.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/seedu/planner/commons/util/DateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static boolean isValidDate(int day, int month, int year) {
}
}

//@author tztzt
/**
* Checks if the year is Leap Year or not.
* @param year
Expand All @@ -52,6 +53,7 @@ public static boolean isLeapYear (int year) {
return year % 4 == 0;
}
}
//@author

/**
* Checks whether a {@code Date} is earlier than another given {@code Date}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import seedu.planner.model.Model;
import seedu.planner.model.record.TagsContainsKeywordsPredicate;

//@author tztzt
/**
* Finds and lists all records in financial planner whose tags contains any of the argument keywords.
* Keyword matching is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import seedu.planner.logic.CommandHistory;
import seedu.planner.model.Model;

//@author tztzt
/**
* Sorts all records in the current displayed list by a specified category and/or order.
* Keyword matching is case insensitive and regardless of order of entry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import seedu.planner.logic.parser.exceptions.ParseException;
import seedu.planner.model.record.TagsContainsKeywordsPredicate;

//@author tztzt
/**
* Parses input arguments and creates a new FindTagCommand object
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import seedu.planner.logic.commands.SortCommand;
import seedu.planner.logic.parser.exceptions.ParseException;

//@author tztzt
/**
* Parses input arguments and creates a new SortCommand object
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import seedu.planner.commons.util.StringUtil;
import seedu.planner.model.tag.Tag;

//@author tztzt
/**
* Tests that a {@code Record}'s {@code Tags} matches any of the keywords given.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public void setRecords(List<Record> records) {
internalList.setAll(records);
}

//@author tztzt
/**
* Sorts the contents of this list by {@code category} and in reverse if {@code ascending} is true.
* {@code records} must not contain duplicate records.
Expand Down Expand Up @@ -165,6 +166,7 @@ public HashMap<String, Integer> makeTagMap() {
}
return tagMap.getAsReadOnlyTagMap();
}
//@author

/**
* Returns the backing list as an unmodifiable {@code ObservableList}.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/planner/model/tag/DefaultTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.HashSet;
import java.util.Set;

//@author tztzt
/**
* Contains a set of pre-defined tags that the user may use to their convenience and will
* always be in the suggested list of tags.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/planner/model/tag/TagMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import seedu.planner.model.record.Record;
import seedu.planner.model.record.UniqueRecordList;

//@author tztzt
/**
* This object represents the in memory model of a HashMap containing integers as values which can be retrieved with
* Strings as the key. It keeps track of the number of usage of each unique tag in the model.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/planner/ui/AutoCompleteBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import javafx.scene.control.TextField;

//@author tztzt
/**
* The UI component that is responsible for displaying the possible auto complete text inputs
* under the CommandBox UI component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import seedu.planner.logic.commands.SummaryCommand;
import seedu.planner.logic.commands.UndoCommand;

//@author tztzt
/**
* This object is responsible for the logic behind the {@code AutoCompleteBox} that decides the range of possible
* suggested texts that are to appear whenever a user enters a new word.
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/seedu/planner/ui/NewAutoCompletionBinding.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import javafx.scene.control.TextField;
import javafx.util.StringConverter;

//@author tztzt
/**
* This object creates the binding for the auto complete popup to the commandBox
* and updates the list of suggestions for the commandbox
Expand Down Expand Up @@ -134,8 +135,8 @@ private String caretAtEnd(Number newPosition, String newText) {
/**
* Splits the input text when the caret is found in the middle of the string in the command box
* and is found at the end of a word.
* @param newText
* @param newPosition
* @param newPosition is the current position of the caret
* @param newText is the entire input in the command box
* @return
*/
private String caretInBetween(Number newPosition, String newText) {
Expand Down

0 comments on commit de2169c

Please sign in to comment.