org.springframework.richclient.core
Interface Message

All Known Subinterfaces:
ValidationMessage
All Known Implementing Classes:
DefaultMessage, DefaultValidationMessage

public interface Message

An interface to be implemented by classes that represent a user-oriented message and are capable of rendering themselves on GUI components.

See Also:
JComponent

Method Summary
 String getMessage()
          The textual representation of the message.
 Severity getSeverity()
          Return the Severity of this message, possibly null.
 long getTimestamp()
          Timestamp in long format of the message creation.
 void renderMessage(JComponent component)
          Decorate the given component with this message.
 

Method Detail

getTimestamp

long getTimestamp()
Timestamp in long format of the message creation.


getMessage

String getMessage()
The textual representation of the message. This is not necessarily how the message will appear on a GUI component.

Returns:
textual message, never null, but possibly an empty string.

getSeverity

Severity getSeverity()
Return the Severity of this message, possibly null.


renderMessage

void renderMessage(JComponent component)
Decorate the given component with this message.

Parameters:
component - visual component to decorate.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.