Index
All Classes and Interfaces|All Packages
B
- body - Variable in class OpenMessage
F
- from - Variable in class OpenMessage
G
- getBody() - Method in interface Message
- getBody() - Method in class OpenMessage
-
Gets the body of the message
- getFrom() - Method in interface Message
- getFrom() - Method in class OpenMessage
-
Gets the "from" portion of the message
- getInput(String) - Method in class MessageView
-
Prints a message to console then returns next line of input from user using the Scanner.
- getSubject() - Method in interface Message
- getSubject() - Method in class OpenMessage
-
Gets the subject of the message
- getTo() - Method in interface Message
- getTo() - Method in class OpenMessage
-
Gets the "to" portion of the message
- go() - Method in class MessageApp
-
Runs the program, keep going until user input is "x".
L
- loadFile(String) - Static method in class MessageLoader
-
This method reads through a file, and builds a number of Message objects based on the contents of that file.
M
- main(String[]) - Static method in class MessageMain
- Message - Interface in Unnamed Package
-
Provided interface containing methods you *must* implement in OpenMessage.java
- MessageApp - Class in Unnamed Package
-
This is the heart of the program, providing interaction between the client and the MessageList.
- MessageApp(ArrayList<OpenMessage>) - Constructor for class MessageApp
-
Initialize the ArrayList of messages
- MessageLoader - Class in Unnamed Package
-
This utility class contains methods that will read in a file as it is provided, and load the data into an ArrayList with
OpenMessage
objects inside of it. - MessageLoader() - Constructor for class MessageLoader
- MessageMain - Class in Unnamed Package
- MessageMain() - Constructor for class MessageMain
- messages - Variable in class MessageApp
- messageToString(OpenMessage) - Method in class MessageView
-
Returns the string form of an OpenMessage object passed in.
- MessageView - Class in Unnamed Package
- MessageView() - Constructor for class MessageView
O
- OpenMessage - Class in Unnamed Package
- OpenMessage(String, String, String, String) - Constructor for class OpenMessage
P
- parseLine(String) - Static method in class MessageLoader
-
Takes in a line, in which one must grab the substring *after* the ":".
- printMenu() - Method in class MessageView
-
Prints the menu for user.
- processCommand(String) - Method in class MessageApp
-
Checks the command (options from the menu) and calls appropriate methods for its functionality.
S
- scanner - Variable in class MessageView
- search(String, String) - Method in interface Message
- search(String, String) - Method in class OpenMessage
-
Searches for a particular term in a part of the message.
- searchFrom(String) - Method in interface Message
- searchFrom(String) - Method in class OpenMessage
-
Searches for a message by "from" portion of the message.
- searchHelper() - Method in class MessageApp
-
Asks user for what type of search and what they are searching for, then returns the message if found.
- searchSubject(String) - Method in interface Message
- searchSubject(String) - Method in class OpenMessage
-
Searches for a message by subject.
- searchTo(String) - Method in interface Message
- searchTo(String) - Method in class OpenMessage
-
Searches for a message by "to" portion of the message.
- subject - Variable in class OpenMessage
T
- to - Variable in class OpenMessage
V
- view - Variable in class MessageApp
All Classes and Interfaces|All Packages