|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MessageLevelEnum>
sk.uniba.euromath.editor.widgets.MessageLevelEnum
public enum MessageLevelEnum
Contains three kinds of messages: error message, warning and info.
| Enum Constant Summary | |
|---|---|
ERROR
Error message. |
|
INFO
Info message. |
|
WARNING
Warning message. |
|
| Method Summary | |
|---|---|
ValidityMessages |
newMessage(String message)
Produces validity messages instance, with given message. |
ValidityMessages |
setMessage(ValidityMessages messages,
String message)
Produces validity messages instance, with given message. |
protected abstract void |
setMessageInternal(ValidityMessages messages,
String message)
Produces validity messages instance, with given message. |
static MessageLevelEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MessageLevelEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MessageLevelEnum ERROR
public static final MessageLevelEnum WARNING
public static final MessageLevelEnum INFO
| Method Detail |
|---|
public static final MessageLevelEnum[] values()
for(MessageLevelEnum c : MessageLevelEnum.values())
System.out.println(c);
public static MessageLevelEnum valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
protected abstract void setMessageInternal(ValidityMessages messages,
String message)
null in given messages
object.
message - set this messagemessages - set the message to this object.
public final ValidityMessages setMessage(ValidityMessages messages,
String message)
null in given messages
object.
message - set this messagemessages - set the message to this object. If null
then new instance of validity messages object shall be created.
messages, or new instance of messages object if
messages was null.public final ValidityMessages newMessage(String message)
message - message to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||