| java.lang.Object com.sun.rave.designtime.ResultMessage
ResultMessage | public class ResultMessage implements DisplayItem(Code) | | A ResultMessage object represents a single message to a user about an operation that was just
completed (or failed). ResultMessage objects are created and added to Result objects when
returning from an operation.
author: Joe Nuxoll version: 1.0 See Also: Result |
Method Summary | |
public static ResultMessage | create(int type, String displayName, String description) Creates a new ResultMessage object with the specified type, displayName, and description. | public static ResultMessage | create(int type, String displayName, String description, Image smallIcon) Creates a new ResultMessage object with the specified type, displayName, description, and icon. | public String | getDescription() | public String | getDisplayName() | public String | getHelpKey() | public Image | getLargeIcon() | public int | getMessageType() | public Image | getSmallIcon() | public void | setDescription(String description) | public void | setDisplayName(String displayName) | public void | setHelpKey(String helpKey) | public void | setLargeIcon(Image largeIcon) | public void | setMessageType(int type) | public void | setSmallIcon(Image smallIcon) |
TYPE_CRITICAL | final public static int TYPE_CRITICAL(Code) | | Used for 'type' property - this message is critical, and will be displayed in a dialog to the
user.
|
TYPE_INFORMATION | final public static int TYPE_INFORMATION(Code) | | Used for type property - this message is informational, and may be displayed on the status
bar to the user.
|
TYPE_WARNING | final public static int TYPE_WARNING(Code) | | Used for type property - this message is a warning, and may be displayed on the status bar
or in a dialog to the user.
|
create | public static ResultMessage create(int type, String displayName, String description)(Code) | | Creates a new ResultMessage object with the specified type, displayName, and description.
Parameters: type - The desired type of the message: TYPE_INFORMATION, TYPE_WARNING, or TYPE_CRITICAL. Parameters: displayName - The desired display name of the message Parameters: description - The desired description of the message A newly created ResultMessage object |
create | public static ResultMessage create(int type, String displayName, String description, Image smallIcon)(Code) | | Creates a new ResultMessage object with the specified type, displayName, description, and icon.
Parameters: type - The desired type of the message: TYPE_INFORMATION, TYPE_WARNING, or TYPE_CRITICAL. Parameters: displayName - The desired display name of the message Parameters: description - The desired description of the message Parameters: smallIcon - The desired image icon for the message A newly created ResultMessage object |
getMessageType | public int getMessageType()(Code) | | |
setDescription | public void setDescription(String description)(Code) | | |
setDisplayName | public void setDisplayName(String displayName)(Code) | | |
setLargeIcon | public void setLargeIcon(Image largeIcon)(Code) | | |
setMessageType | public void setMessageType(int type)(Code) | | |
setSmallIcon | public void setSmallIcon(Image smallIcon)(Code) | | |
|
|