|
||||||||||
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.widget.WidgetBase org.kuali.rice.krad.uif.widget.Help
public class Help
Widget that renders help on a component
If help URL is specified then display help icon and/or if help summary is specified then display help tooltip.
Field Summary |
---|
Fields inherited from class org.kuali.rice.krad.uif.component.ComponentBase |
---|
templateOptions |
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
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 | |
---|---|
Help()
|
Method Summary | |
---|---|
protected void |
buildExternalHelp(LifecycleElement parent)
Build the external help |
protected void |
buildTooltipHelp(LifecycleElement parent)
Build the tooltip help |
String |
getExternalHelpUrl()
The external help Url |
Action |
getHelpAction()
HelpActionField is used for rendering external help |
HelpDefinition |
getHelpDefinition()
The help definition is used as the key to retrieve the external help Url from the parameter table of the database |
protected ParameterService |
getParameterService()
Retrieve the parameter service |
String |
getTooltipHelpContent()
TooltipHelpContent |
void |
performFinalize(Object model,
LifecycleElement parent)
Finalize the help widget for usage |
void |
performInitialization(Object model)
The following initialization is performed: If help action not initialized and external help is configured, get the default help action component Initializes the component |
void |
setExternalHelpUrl(String externalHelpUrl)
Setter for externalHelpUrl |
void |
setHelpAction(Action helpAction)
Setter for helpAction |
void |
setHelpDefinition(HelpDefinition helpDefinition)
Setter for the help definition of the database. |
void |
setTooltipHelpContent(String tooltipHelpContent)
Setter for tooltipHelpContent |
Methods inherited from class org.kuali.rice.krad.uif.widget.WidgetBase |
---|
getComponentTypeName |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode, unwrap |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement |
---|
checkMutable, getContext, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, pushAllToContext, pushObjectToContext, setContext, setId, setPhasePathMapping, setRender, setViewPath, setViewStatus, skipLifecycle |
Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable |
---|
clone, copy, preventModification, unwrap |
Constructor Detail |
---|
public Help()
Method Detail |
---|
public void performInitialization(Object model)
Where components can set defaults and setup other necessary state. The initialize method should only be called once per component lifecycle and is invoked within the initialize phase of the view lifecylce.
performInitialization
in interface LifecycleElement
performInitialization
in class ComponentBase
model
- - object instance containing the view dataComponentDefaultInitializeTask
public void performFinalize(Object model, LifecycleElement parent)
In addition to the standard finalization the following tasks are performed:
Here final preparations can be made based on the updated view state.
performFinalize
in interface LifecycleElement
performFinalize
in class ComponentBase
model
- - top level object containing the dataparent
- - parent componentprotected void buildExternalHelp(LifecycleElement parent)
When the externalHelpUrl is blank and the helpDefinition is specified then the external help URL is looked up via the helpDefinition from the system parameters. The namespace in the helpDefinition does not need to be specified and will default to the namespace of the view.
Set the javascript action to open the external help in a window.
Set the html title attribute of the help icon.
parent
- used to get the help title text used in the html title attribute of the help iconprotected void buildTooltipHelp(LifecycleElement parent)
The help tooltip is set on the component. To use the help tooltip bean definition, the help's tooltip is used as and intermediary for setting up the tooltip widget and then copied to the component.
parent
- used for checking misconfigurationspublic Action getHelpAction()
public void setHelpAction(Action helpAction)
helpAction
- public HelpDefinition getHelpDefinition()
public void setHelpDefinition(HelpDefinition helpDefinition)
helpDefinition
- public String getExternalHelpUrl()
This should contain a valid URL. When specified this URL takes precedence over the external help URL from the system parameters.
public void setExternalHelpUrl(String externalHelpUrl)
externalHelpUrl
- public String getTooltipHelpContent()
public void setTooltipHelpContent(String tooltipHelpContent)
tooltipHelpContent
- protected ParameterService getParameterService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |