public class FeedBack extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FeedBack.FeedBackType
The supported report types.
|
Constructor and Description |
---|
FeedBack(FeedBack.FeedBackType type,
String title,
ArrayList<String> keyWords,
String message)
Creates a new report for the user.
|
Modifier and Type | Method and Description |
---|---|
static FeedBack |
getFeed(String title,
String message)
Creates a general feed with no key word.
|
static FeedBack |
getFeed(String title,
String message,
ArrayList<String> keywords)
Creates a feed object.
|
ArrayList<String> |
getKeyWords()
Returns the key words for this report.
|
String |
getMessage()
Returns the message.
|
static FeedBack |
getTip(String title,
String message)
Creates a general tip with no key word.
|
static FeedBack |
getTip(String title,
String message,
ArrayList<String> keywords)
Creates a tip object.
|
String |
getTitle()
Returns the title.
|
FeedBack.FeedBackType |
getType()
Returns the feedback type.
|
static FeedBack |
getWarning(String title,
String message)
Creates a warning object.
|
void |
setKeyWords(ArrayList<String> keyWords)
Sets the the key words for this report.
|
void |
setMessage(String message)
Sets the message.
|
void |
setTitle(String title)
Sets the title.
|
void |
setType(FeedBack.FeedBackType type)
Sets the feedback type.
|
public FeedBack(FeedBack.FeedBackType type, String title, ArrayList<String> keyWords, String message)
type
- the type of reporttitle
- the title of the reportkeyWords
- the key words for this reportmessage
- the message of the reportpublic static FeedBack getWarning(String title, String message)
title
- the title of the warningmessage
- the message of the warningpublic static FeedBack getTip(String title, String message, ArrayList<String> keywords)
title
- the title of the tipmessage
- the message of the tipkeywords
- the keywordspublic static FeedBack getTip(String title, String message)
title
- the title of the tipmessage
- the messagepublic static FeedBack getFeed(String title, String message, ArrayList<String> keywords)
title
- the title of the feedmessage
- the message of the feedkeywords
- the keywordspublic static FeedBack getFeed(String title, String message)
title
- the title of the feedmessage
- the messagepublic ArrayList<String> getKeyWords()
public void setKeyWords(ArrayList<String> keyWords)
keyWords
- the key words for this reportpublic String getMessage()
public void setMessage(String message)
message
- the messagepublic String getTitle()
public void setTitle(String title)
title
- the titlepublic FeedBack.FeedBackType getType()
public void setType(FeedBack.FeedBackType type)
type
- the feedback typeCopyright © 2016. All rights reserved.