|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Widget used to display a set of messages
Bindings | |||
---|---|---|---|
message
|
The message may either be a list of errors or a single error. Each message may be a String or an Object, which will be toString'ed for display. If the message is a String it can either be an already-localed String or can be an NLSString of the form @resource/key, in which case we'll translate it. |
?? (get) |
|
isError
|
Indicates whether the messages "errors". If true we use the "error" icon and prepend the messages with "Error: ". If neither isAlert nor isConfirmation is true, then isError is automatically set to true. |
boolean (get) |
|
isWarning
|
Indicates whether the messages are "warnings". If true we use the "alert" icon and prepend the messages with "Alert: ". Note that isError takes precendence on isWarning, meaning if isError is true then isWarning is assumed to be false. |
boolean (get) |
|
isConfirmation
|
Indicates whether the messages are "confirmations". If true we use the "confirm" icon and prepend the messages with "Confirmation: ". Note that isError takes precendence on isConfirmation, meaning if isError is true then isConfirmation is assumed to be false. |
boolean (get) |
|
addExtraBR
|
Indicates whether the list of messages should be between two line breaks. |
boolean (get) |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.widgets.MessagesList
public class MessagesList
Displays a list of messages using the style appropriate according to its severity.
Required bindings:none
Optional bindings:
message: Either a vector of messages or a single message. Each message may be a String or an Object, which will be toString'ed for display. If the message is a String it can either be an already-localed String or can be an NLSString of the form "@resource/key", in which case we'll translate it. isError: indicates whether the message are "errors". By default true. isWarning: indicates whether the message are "alerts". By default false. If isError is true, this parameter is ignored. isConfirmation: indicates whether the message are "confirmations". By default false. If isError or isWarning is true, this parameter is ignored. Example of confirmation message: "Your password has been successfully updated."
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent |
---|
AWComponent.RenderingFilter, AWComponent.RenderingListener |
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
---|
AWResponseGenerating.ResponseSubstitution |
Constructor Summary | |
---|---|
MessagesList()
|
Method Summary | |
---|---|
boolean |
hasMessage()
Returns true if we have some error messages. |
java.util.List |
message()
Returns a vector of localized message strings. |
void |
sleep()
Overridden to clean up cached values. |
java.lang.String |
style()
Returns the style to use to display the message. |
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
---|
getFieldValue, isKindOfClass, setFieldValue |
Constructor Detail |
---|
public MessagesList()
Method Detail |
---|
public void sleep()
public boolean hasMessage()
public java.util.List message()
public java.lang.String style()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |