|
||||||||||
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 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(View view,
Component parent)
Build the external help |
protected void |
buildTooltipHelp(Component parent)
Build the tooltip help |
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
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(View view,
Object model,
Component parent)
Finalize the help widget for usage |
void |
performInitialization(View view,
Object model)
The following initialization is performed: If help action not initialized and external help is configured, get the default help action 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, 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 Help()
Method Detail |
---|
public void performInitialization(View view, Object model)
performInitialization
in interface Component
performInitialization
in class ComponentBase
view
- - view instance in which the component belongsmodel
- - object instance containing the view dataComponentBase.performInitialization(org.kuali.rice.krad.uif.view.View,
java.lang.Object)
public void performFinalize(View view, Object model, Component parent)
In addition to the standard finalization the following tasks are performed:
performFinalize
in interface Component
performFinalize
in class ComponentBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the dataparent
- - parent componentComponentBase.performFinalize(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.component.Component)
protected void buildExternalHelp(View view, Component 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.
view
- - used to get the default namespaceparent
- used to get the help title text used in the html title attribute of the help iconprotected void buildTooltipHelp(Component 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 List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public 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.
* @return Url of the external help
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 |