|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.feedback.FeedbackMessage
public class FeedbackMessage
Represents a generic message meant for the end-user/ pages.
Field Summary | |
---|---|
static int |
DEBUG
Constant for debug level. |
static int |
ERROR
Constant for error level. |
static int |
FATAL
Constant for fatal level. |
static int |
INFO
Constant for info level. |
static int |
UNDEFINED
Constant for an undefined level; note that components might decide not to render anything when this level is used. |
static int |
WARNING
Constant for warning level. |
Constructor Summary | |
---|---|
FeedbackMessage(Component reporter,
Serializable message,
int level)
Construct using fields. |
Method Summary | |
---|---|
void |
detach()
Detaches model after use. |
int |
getLevel()
Gets the message level; can be used by rendering components. |
String |
getLevelAsString()
Gets the current level as a String |
Serializable |
getMessage()
Gets the actual message. |
Component |
getReporter()
Gets the reporting component. |
boolean |
isDebug()
Gets whether the current level is DEBUG or up. |
boolean |
isError()
Gets whether the current level is ERROR or up. |
boolean |
isFatal()
Gets whether the current level is FATAL or up. |
boolean |
isInfo()
Gets whether the current level is INFO or up. |
boolean |
isLevel(int level)
Returns whether this level is greater than or equal to the given level. |
boolean |
isRendered()
Gets whether or not this message has been rendered |
boolean |
isUndefined()
Gets whether the current level is UNDEFINED. |
boolean |
isWarning()
Gets whether the current level is WARNING or up. |
void |
markRendered()
Marks this message as rendered. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEBUG
public static final int ERROR
public static final int FATAL
public static final int INFO
public static final int UNDEFINED
public static final int WARNING
Constructor Detail |
---|
public FeedbackMessage(Component reporter, Serializable message, int level)
reporter
- The message reportermessage
- The actual message. Must not be null
.level
- The level of the messageMethod Detail |
---|
public final boolean isRendered()
public final void markRendered()
public final int getLevel()
public String getLevelAsString()
public final Serializable getMessage()
public final Component getReporter()
public final boolean isDebug()
public final boolean isError()
public final boolean isFatal()
public final boolean isInfo()
public final boolean isLevel(int level)
level
- the level
public final boolean isUndefined()
public final boolean isWarning()
public String toString()
toString
in class Object
Object.toString()
public void detach()
detach
in interface IDetachable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |