|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.messages.FeedBack
public class FeedBack
This class is used to report a message to the user.
Nested Class Summary | |
---|---|
static class |
FeedBack.FeedBackType
The supported report types. |
Constructor Summary | |
---|---|
FeedBack(FeedBack.FeedBackType type,
String title,
ArrayList<String> keyWords,
String message)
Creates a new report for the user. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 reportMethod Detail |
---|
public static FeedBack getWarning(String title, String message)
title
- the title of the warningmessage
- the message of the warning
public static FeedBack getTip(String title, String message, ArrayList<String> keywords)
title
- the title of the tipmessage
- the message of the tipkeywords
- the keywords
public static FeedBack getTip(String title, String message)
title
- the title of the tipmessage
- the message
public static FeedBack getFeed(String title, String message, ArrayList<String> keywords)
title
- the title of the feedmessage
- the message of the feedkeywords
- the keywords
public static FeedBack getFeed(String title, String message)
title
- the title of the feedmessage
- the message
public 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 type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |