|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.Form.Flag
public static class Form.Flag
Represents an message alert associated with a form field.
| Field Summary | |
|---|---|
static String |
MESSAGE_KEY
|
static String |
MESSAGE_TYPE_KEY
|
| Constructor Summary | |
|---|---|
Form.Flag()
Creates a new flag with a type of "error" and no message. |
|
Form.Flag(MessageType messageType)
Creates a new flag with the given message type and no message. |
|
Form.Flag(MessageType messageType,
String message)
Creates a new flag with the given type and message. |
|
| Method Summary | |
|---|---|
static Form.Flag |
decode(String flag)
|
String |
getMessage()
Returns the flag message. |
MessageType |
getMessageType()
Returns the flag's message type. |
void |
setMessage(String message)
Sets the flag message. |
void |
setMessageType(MessageType messageType)
Sets the flag's message type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MESSAGE_TYPE_KEY
public static final String MESSAGE_KEY
| Constructor Detail |
|---|
public Form.Flag()
public Form.Flag(MessageType messageType)
messageType - The type of the flag.
public Form.Flag(MessageType messageType,
String message)
messageType - The type of the flag.message - The message text associated with the flag, or null for
no message.| Method Detail |
|---|
public MessageType getMessageType()
public void setMessageType(MessageType messageType)
messageType - public String getMessage()
public void setMessage(String message)
message - The message text associated with the flag, or null if
there is no message.public static Form.Flag decode(String flag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||