|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.uif.element.ContentElementBase org.kuali.rice.krad.uif.element.Message
public class Message
Encapsulates a text message to be displayed
The Message
is used to display static text in the user
interface
Field Summary |
---|
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
Message()
|
Method Summary | |
---|---|
ArrayList<ErrorReport> |
completeValidation(TracerToken tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
List<Component> |
getInlineComponents()
The inlineComponents are a list of components in order by index. |
List<Component> |
getMessageComponentStructure()
The message component structure is a list of components which represent the components that make up a message when using rich message functionality. |
String |
getMessageText()
Text that makes up the message that will be displayed. |
boolean |
isGenerateSpan()
If true, generate the span around this message (default). |
boolean |
isRender()
Override to render only if the message text has been given or there is a conditional expression on the message text |
void |
performApplyModel(View view,
Object model,
Component parent)
Message perfom apply model parses message text for rich text functionality if the messageText contains [ or ] special characters |
void |
performFinalize(View view,
Object model,
Component parent)
The following finalization is done here: progressiveRender and conditionalRefresh variables are processed if set If any of the style properties were given, sets the style string on the style property Set the skipInTabOrder flag for nested components |
void |
setGenerateSpan(boolean generateSpan)
Sets the generate span flag |
void |
setInlineComponents(List<Component> inlineComponents)
Set the inlineComponents to be filled in at indexes referenced by [n] in the message |
void |
setMessageComponentStructure(List<Component> messageComponentStructure)
Set the message component structure. |
void |
setMessageText(String messageText)
Setter for the message text |
Methods inherited from class org.kuali.rice.krad.uif.element.ContentElementBase |
---|
getComponentTypeName |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.component.ScriptEventSupport |
---|
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnLoadScript |
Constructor Detail |
---|
public Message()
Method Detail |
---|
public void performApplyModel(View view, Object model, Component parent)
performApplyModel
in interface Component
performApplyModel
in class ComponentBase
view
- - view instance to which the component belongsmodel
- - Top level object containing the data (could be the form or a
top level business object, dto)Component.performApplyModel(org.kuali.rice.krad.uif.view.View, Object, org.kuali.rice.krad.uif.component.Component)
public void performFinalize(View view, Object model, Component parent)
ComponentBase
performFinalize
in interface Component
performFinalize
in class ComponentBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the dataparent
- - parent componentComponent.performFinalize(org.kuali.rice.krad.uif.view.View, Object, org.kuali.rice.krad.uif.component.Component)
public List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public boolean isRender()
isRender
in interface Component
isRender
in class ComponentBase
ComponentBase.isRender()
public String getMessageText()
If special characters [] are detected the message inserts special content at that location. The types of features supported are (note that <> are not part of the content below, they specify placeholders):
public void setMessageText(String messageText)
messageText
- public boolean isGenerateSpan()
public void setGenerateSpan(boolean generateSpan)
generateSpan
- public List<Component> getMessageComponentStructure()
The structure represents the parsed messageText when not set. Normally this structure is setup by the Message class and SHOULD NOT BE SET in xml, unless full control over the structure is needed.
public void setMessageComponentStructure(List<Component> messageComponentStructure)
messageComponentStructure
- list of components which represent the message structurepublic List<Component> getInlineComponents()
inlineComponents is only used when the message is using rich message functionality. A message with [0] will reference component at index 0 of this list and insert it at that place in the message, and likewise [1] will reference item 1, etc. If the index referenced is out of bounds (or list doesnt exist), an error will be thrown during message parse.
public void setInlineComponents(List<Component> inlineComponents)
inlineComponents
- the inlineComponents to be filled in at indexes referenced by [n] in the messagepublic ArrayList<ErrorReport> completeValidation(TracerToken tracer)
Component
completeValidation
in interface Component
completeValidation
in class ComponentBase
tracer
- Record of component's location
Component.completeValidation(org.kuali.rice.krad.datadictionary.validator.TracerToken)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |