pivot.wtk
Class Form.Flag

java.lang.Object
  extended by pivot.wtk.Form.Flag
Enclosing class:
Form

public static class Form.Flag
extends Object

Represents an message alert associated with a form field.

Author:
gbrown

Field Summary
static String MESSAGE_KEY
           
static String MESSAGE_TYPE_KEY
           
 
Constructor Summary
Form.Flag(Dictionary<String,?> flag)
           
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.
Form.Flag(String flag)
           
 
Method Summary
 String getMessage()
          Returns the flag message.
 MessageType getMessageType()
          Returns 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

MESSAGE_TYPE_KEY

public static final String MESSAGE_TYPE_KEY
See Also:
Constant Field Values

MESSAGE_KEY

public static final String MESSAGE_KEY
See Also:
Constant Field Values
Constructor Detail

Form.Flag

public Form.Flag(MessageType messageType)
Creates a new flag with the given message type and no message.

Parameters:
messageType - The type of the flag.

Form.Flag

public Form.Flag(String flag)

Form.Flag

public Form.Flag(Dictionary<String,?> flag)

Form.Flag

public Form.Flag(MessageType messageType,
                 String message)
Creates a new flag with the given type and message.

Parameters:
messageType - The type of the flag.
message - The message text associated with the flag, or null for no message.
Method Detail

getMessageType

public MessageType getMessageType()
Returns the flag's message type.

Returns:
The message type of the flag.

getMessage

public String getMessage()
Returns the flag message.

Returns:
The message text associated with the flag, or null if there is no message.