org.kuali.rice.krad.uif.element
Class Action

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.DictionaryBeanBase
      extended by org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
          extended by org.kuali.rice.krad.uif.component.ComponentBase
              extended by org.kuali.rice.krad.uif.element.ContentElementBase
                  extended by org.kuali.rice.krad.uif.element.Action
All Implemented Interfaces:
Serializable, Cloneable, DictionaryBean, UifDictionaryBean, Component, ScriptEventSupport, ContentElement, org.springframework.core.Ordered

public class Action
extends ContentElementBase

Field that presents an action that can be taken on the UI such as submitting the form or invoking a script

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

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
Action()
           
 
Method Summary
 void addActionParameter(String parameterName, String parameterValue)
          Convenience method to add a parameter to the action parameters Map
protected  void buildActionData(View view, Object model, Component parent)
          Builds the data attributes that will be read client side to determine how to handle the action and the additional data that should be submitted with the action
 void completeValidation(ValidationTrace tracer)
          Validates different requirements of component compiling a series of reports detailing information on errors found in the component.
protected
<T> void
copyProperties(T component)
          Copies the properties over for the copy method
 String getActionEvent()
          Name of the event that will be set when the action is invoked
 Image getActionImage()
          Image to use for the action
 String getActionImagePlacement()
           
 String getActionLabel()
          Label text for the action
 String getActionParameter(String parameterName)
          Get an actionParameter by name
 Map<String,String> getActionParameters()
          Parameters that should be sent when the action is invoked
 String getActionScript()
          Client side javascript to be executed when this actionField is clicked
 ActionSecurity getActionSecurity()
          Action Security object that indicates what authorization (permissions) exist for the action
 Map<String,String> getAdditionalSubmitData()
          Map of additional data that will be posted when the action is invoked
 String getAjaxReturnType()
          Gets the return type for the ajax call
protected  Class<? extends ComponentSecurity> getComponentSecurityClass()
          Returns the security class that is associated with the component (used for initialization and validation)
 List<Component> getComponentsForLifecycle()
          List of components that are contained within the component and should be sent through the lifecycle
 List<String> getDisabledConditionControlNames()
          Control names to add handlers to for disable functionality, cannot be set
 String getDisabledConditionJs()
          Get the disable condition js derived from the springEL, cannot be set.
 String getDisabledReason()
          If the action field is disabled, gives a reason for why which will be displayed as a tooltip on the action field (button)
 List<String> getDisabledWhenChangedPropertyNames()
          Gets the property names of fields that when changed, will disable this component
 List<String> getEnabledWhenChangedPropertyNames()
          Gets the property names of fields that when changed, will enable this component
 String getErrorCallback()
          Gets the script which will be invoked when the action fails due to problems in the ajax call or the return of an incident report
 String getFocusOnIdAfterSubmit()
          The element to place focus on in the new page after the new page is retrieved.
 String getJumpToIdAfterSubmit()
           
 String getJumpToNameAfterSubmit()
          The name to jump to in the next page, the element with this name will be jumped to automatically when the new page is retrieved after a submit.
 String getLoadingMessageText()
          Gets the loading message used by action's blockUI
 String getMethodToCall()
          Name of the method that should be called when the action is selected
 String getNavigateToPageId()
          For an Action that is part of a NavigationGroup, the navigate to page id can be set to configure the page that should be navigated to when the action is selected
 String getPreSubmitCall()
          Gets the script which needs to be invoked before the form is submitted
 String getRefreshId()
          Id for the component that should be refreshed after the action completes
 String getRefreshPropertyName()
          Property name for the DataField that should be refreshed after the action completes
 String getSuccessCallback()
          Gets the script which will be invoked on a successful ajax call
 boolean isAjaxSubmit()
          When this property is set to true it will submit the form using Ajax instead of the browser submit.
 boolean isClearDirtyOnAction()
          True to make this action clear the dirty flag before submitting
 boolean isDirtyOnAction()
          When true, this action will mark the form dirty by incrementing the dirty field count, but if this action refreshes the entire view this will be lost (most actions only refresh the page)
 boolean isDisableBlocking()
          Indicates whether blocking for the action should be disabled
 boolean isDisabled()
          Indicates whether the action (input or button) is disabled (doesn't allow interaction)
 boolean isDisplayResponseInLightBox()
          Indicates if the action response should be displayed in a lightbox
 boolean isEvaluateDisabledOnKeyUp()
          Evaluate the disable condition on controls which disable it on each key up event
 boolean isPerformClientSideValidation()
          Indicates whether the form data should be validated on the client side return true if validation should occur, false otherwise
 boolean isPerformDirtyValidation()
           
 void performApplyModel(View view, Object model, Component parent)
          Sets the disabledExpression, if any, evaluates it and sets the disabled property
 void performFinalize(View view, Object model, Component parent)
          The following finalization is performed: Add methodToCall action parameter if set and setup event code for setting action parameters Invoke method to build the data attributes and submit data for the action Compose the final onclick script for the action Parses the disabled expressions, if any, to equivalent javascript and evaluates the disable/enable when changed property names
 void setActionEvent(String actionEvent)
          Setter for the action event
 void setActionImage(Image actionImage)
          Setter for the action image field
 void setActionImagePlacement(String actionImagePlacement)
          Set to TOP, BOTTOM, LEFT, RIGHT to position image at that location within the button.
 void setActionLabel(String actionLabel)
          Setter for the actions label
 void setActionParameters(Map<String,String> actionParameters)
          Setter for the action parameters
 void setActionScript(String actionScript)
           
 void setAdditionalSubmitData(Map<String,String> additionalSubmitData)
          Setter for map holding additional data to post
 void setAjaxReturnType(String ajaxReturnType)
          Setter for the type of ajax return
 void setAjaxSubmit(boolean ajaxSubmit)
          Setter for ajaxSubmit
 void setClearDirtyOnAction(boolean clearDirtyOnAction)
          Set clearDirtyOnAction
 void setComponentSecurity(ComponentSecurity componentSecurity)
          Override to assert a ActionSecurity instance is set
 void setDirtyOnAction(boolean dirtyOnAction)
          Set to true, if this action is considered one that changes the form's data (makes the form dirty)
 void setDisableBlocking(boolean disableBlocking)
          Setter for disabling blocking when the action is invoked
 void setDisabled(boolean disabled)
          Setter for the disabled indicator
 void setDisabledConditionControlNames(List<String> disabledConditionControlNames)
          Set disabled condition control names
protected  void setDisabledConditionJs(String disabledConditionJs)
          Sets the disabled condition javascript
protected  void setDisabledExpression(String disabledExpression)
          Sets the disabled expression
 void setDisabledReason(String disabledReason)
          Setter for the disabled reason text
 void setDisabledWhenChangedPropertyNames(List<String> disabledWhenChangedPropertyNames)
          Sets the property names of fields that when changed, will disable this component
 void setDisplayResponseInLightBox(boolean displayResponseInLightBox)
          Setter for indicating the response should be rendered in a lightbox
 void setEnabledWhenChangedPropertyNames(List<String> enabledWhenChangedPropertyNames)
          Sets the property names of fields that when changed, will enable this component
 void setErrorCallback(String errorCallback)
          Setter for errorCallback
 void setEvaluateDisabledOnKeyUp(boolean evaluateDisabledOnKeyUp)
          Set evaluateDisableOnKeyUp
 void setFocusOnIdAfterSubmit(String focusOnIdAfterSubmit)
           
 void setJumpToIdAfterSubmit(String jumpToIdAfterSubmit)
          The id to jump to in the next page, the element with this id will be jumped to automatically when the new page is retrieved after a submit.
 void setJumpToNameAfterSubmit(String jumpToNameAfterSubmit)
           
 void setLoadingMessageText(String loadingMessageText)
          When this property is set, it is used in place of the loading message text used by the blockUI
 void setMethodToCall(String methodToCall)
          Setter for the actions method to call
 void setNavigateToPageId(String navigateToPageId)
          Setter for the navigate to page id
 void setPerformClientSideValidation(boolean performClientSideValidation)
          Setter for the client side validation flag
 void setPerformDirtyValidation(boolean performDirtyValidation)
           
 void setPreSubmitCall(String preSubmitCall)
          Setter for preSubmitCall
 void setRefreshId(String refreshId)
          Setter for the component refresh id
 void setRefreshPropertyName(String refreshPropertyName)
          Setter for the property name of the DataField that should be refreshed
 void setSuccessCallback(String successCallback)
          Setter for successCallback
protected  void setupRefreshAction(View view)
          When the action is updating a component sets up the refresh script for the component (found by the given refresh id or refresh property name)
 
Methods inherited from class org.kuali.rice.krad.uif.element.ContentElementBase
getComponentTypeName
 
Methods inherited from class org.kuali.rice.krad.uif.component.ComponentBase
addCellCssClass, addDataAttribute, addDataAttributeIfNonEmpty, addStyleClass, appendToStyle, copy, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getBaseId, getCellCssClasses, getCellStyle, getCellStyleClassesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentPrototypes, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getMethodToCallOnRefresh, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, isSkipInTabOrder, performInitialization, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setMethodToCallOnRefresh, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setWidth
 
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.uif.component.Component
addCellCssClass, addDataAttribute, addStyleClass, appendToStyle, copy, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getBaseId, getCellCssClasses, getCellStyle, getCellWidth, getColSpan, getComponentModifiers, getComponentPrototypes, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, performInitialization, pushAllToContext, pushObjectToContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRowSpan, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setWidth
 
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, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript
 

Constructor Detail

Action

public Action()
Method Detail

performApplyModel

public void performApplyModel(View view,
                              Object model,
                              Component parent)
Sets the disabledExpression, if any, evaluates it and sets the disabled property

Specified by:
performApplyModel in interface Component
Overrides:
performApplyModel in class ComponentBase
Parameters:
view - view instance to which the component belongs
model - top level object containing the data (could be the form or a
parent -
See Also:
Component.performApplyModel(org.kuali.rice.krad.uif.view.View, java.lang.Object, org.kuali.rice.krad.uif.component.Component)

performFinalize

public void performFinalize(View view,
                            Object model,
                            Component parent)
The following finalization is performed:

Specified by:
performFinalize in interface Component
Overrides:
performFinalize in class ComponentBase
Parameters:
view - - view instance that should be finalized for rendering
model - - top level object containing the data
parent - - parent component
See Also:
ComponentBase.performFinalize(org.kuali.rice.krad.uif.view.View, java.lang.Object, org.kuali.rice.krad.uif.component.Component)

setupRefreshAction

protected void setupRefreshAction(View view)
When the action is updating a component sets up the refresh script for the component (found by the given refresh id or refresh property name)

Parameters:
view - view instance the action belongs to

buildActionData

protected void buildActionData(View view,
                               Object model,
                               Component parent)
Builds the data attributes that will be read client side to determine how to handle the action and the additional data that should be submitted with the action

Note these data attributes will be exposed as a data map client side. The simple attributes (non object value) are also written out as attributes on the action element.

Parameters:
view - view instance the action belongs to
model - model object containing the view data
parent - component the holds the action

getComponentsForLifecycle

public List<Component> getComponentsForLifecycle()
Description copied from interface: Component
List of components that are contained within the component and should be sent through the lifecycle

Used by ViewHelperService for the various lifecycle callbacks

Specified by:
getComponentsForLifecycle in interface Component
Overrides:
getComponentsForLifecycle in class ComponentBase
Returns:
List child components
See Also:
ComponentBase.getComponentsForLifecycle()

getMethodToCall

public String getMethodToCall()
Name of the method that should be called when the action is selected

For a server side call (clientSideCall is false), gives the name of the method in the mapped controller that should be invoked when the action is selected. For client side calls gives the name of the script function that should be invoked when the action is selected

Returns:
name of method to call

setMethodToCall

public void setMethodToCall(String methodToCall)
Setter for the actions method to call

Parameters:
methodToCall -

getActionLabel

public String getActionLabel()
Label text for the action

The label text is used by the template renderers to give a human readable label for the action. For buttons this generally is the button text, while for an action link it would be the links displayed text

Returns:
label for action

setActionLabel

public void setActionLabel(String actionLabel)
Setter for the actions label

Parameters:
actionLabel -

getActionImage

public Image getActionImage()
Image to use for the action

When the action image component is set (and render is true) the image will be used to present the action as opposed to the default (input submit). For action link templates the image is used for the link instead of the action link text

Returns:
action image

setActionImage

public void setActionImage(Image actionImage)
Setter for the action image field

Parameters:
actionImage -

getNavigateToPageId

public String getNavigateToPageId()
For an Action that is part of a NavigationGroup, the navigate to page id can be set to configure the page that should be navigated to when the action is selected

Support exists in the UifControllerBase for handling navigation between pages

Returns:
id of page that should be rendered when the action item is selected

setNavigateToPageId

public void setNavigateToPageId(String navigateToPageId)
Setter for the navigate to page id

Parameters:
navigateToPageId -

getActionEvent

public String getActionEvent()
Name of the event that will be set when the action is invoked

Action events can be looked at by the view or components in order to render differently depending on the action requested.

Returns:
action event name
See Also:
UifConstants.ActionEvents

setActionEvent

public void setActionEvent(String actionEvent)
Setter for the action event

Parameters:
actionEvent -

getAdditionalSubmitData

public Map<String,String> getAdditionalSubmitData()
Map of additional data that will be posted when the action is invoked

Each entry in this map will be sent as a request parameter when the action is chosen. Note this in addition to the form data that is sent. For example, suppose the model contained a property named number and a boolean named showActive, we can send values for this properties by adding the following entries to this map: {'number':'a13', 'showActive', 'true'}

The additionalSubmitData map is different from the actionParameters map. All name/value pairs given as actionParameters populated the form map actionParameters. While name/value pair given in additionalSubmitData populate different form (model) properties

Returns:
additional key/value pairs to submit

setAdditionalSubmitData

public void setAdditionalSubmitData(Map<String,String> additionalSubmitData)
Setter for map holding additional data to post

Parameters:
additionalSubmitData -

getActionParameters

public Map<String,String> getActionParameters()
Parameters that should be sent when the action is invoked

Action renderer will decide how the parameters are sent for the action (via script generated hiddens, or script parameters, ...)

Can be set by other components such as the CollectionGroup to provide the context the action is in (such as the collection name and line the action applies to)

Returns:
action parameters

setActionParameters

public void setActionParameters(Map<String,String> actionParameters)
Setter for the action parameters

Parameters:
actionParameters -

addActionParameter

public void addActionParameter(String parameterName,
                               String parameterValue)
Convenience method to add a parameter to the action parameters Map

Parameters:
parameterName - name of parameter to add
parameterValue - value of parameter to add

getActionParameter

public String getActionParameter(String parameterName)
Get an actionParameter by name


getActionSecurity

public ActionSecurity getActionSecurity()
Action Security object that indicates what authorization (permissions) exist for the action

Returns:
ActionSecurity instance

setComponentSecurity

public void setComponentSecurity(ComponentSecurity componentSecurity)
Override to assert a ActionSecurity instance is set

Specified by:
setComponentSecurity in interface Component
Overrides:
setComponentSecurity in class ComponentBase
Parameters:
componentSecurity - instance of ActionSecurity
See Also:
Component.setComponentSecurity(org.kuali.rice.krad.uif.component.ComponentSecurity)

getComponentSecurityClass

protected Class<? extends ComponentSecurity> getComponentSecurityClass()
Description copied from class: ComponentBase
Returns the security class that is associated with the component (used for initialization and validation)

Overrides:
getComponentSecurityClass in class ComponentBase
Returns:
Class

getJumpToIdAfterSubmit

public String getJumpToIdAfterSubmit()
Returns:
the jumpToIdAfterSubmit

setJumpToIdAfterSubmit

public void setJumpToIdAfterSubmit(String jumpToIdAfterSubmit)
The id to jump to in the next page, the element with this id will be jumped to automatically when the new page is retrieved after a submit. Using "TOP" or "BOTTOM" will jump to the top or the bottom of the resulting page. Passing in nothing for both jumpToIdAfterSubmit and jumpToNameAfterSubmit will result in this Action being jumped to by default if it is present on the new page. WARNING: jumpToIdAfterSubmit always takes precedence over jumpToNameAfterSubmit, if set.

Parameters:
jumpToIdAfterSubmit - the jumpToIdAfterSubmit to set

getJumpToNameAfterSubmit

public String getJumpToNameAfterSubmit()
The name to jump to in the next page, the element with this name will be jumped to automatically when the new page is retrieved after a submit. Passing in nothing for both jumpToIdAfterSubmit and jumpToNameAfterSubmit will result in this Action being jumped to by default if it is present on the new page. WARNING: jumpToIdAfterSubmit always takes precedence over jumpToNameAfterSubmit, if set.

Returns:
the jumpToNameAfterSubmit

setJumpToNameAfterSubmit

public void setJumpToNameAfterSubmit(String jumpToNameAfterSubmit)
Parameters:
jumpToNameAfterSubmit - the jumpToNameAfterSubmit to set

getFocusOnIdAfterSubmit

public String getFocusOnIdAfterSubmit()
The element to place focus on in the new page after the new page is retrieved.

The following are allowed:

Returns:
the focusOnAfterSubmit

setFocusOnIdAfterSubmit

public void setFocusOnIdAfterSubmit(String focusOnIdAfterSubmit)
Parameters:
focusOnIdAfterSubmit - the focusOnAfterSubmit to set

isPerformClientSideValidation

public boolean isPerformClientSideValidation()
Indicates whether the form data should be validated on the client side return true if validation should occur, false otherwise


setPerformClientSideValidation

public void setPerformClientSideValidation(boolean performClientSideValidation)
Setter for the client side validation flag

Parameters:
performClientSideValidation -

getActionScript

public String getActionScript()
Client side javascript to be executed when this actionField is clicked

This overrides the default action for this Action so the method called must explicitly submit, navigate, etc. through js, if necessary. In addition, this js occurs AFTER onClickScripts set on this field, it will be the last script executed by the click event. Sidenote: This js is always called after hidden actionParameters and methodToCall methods are written by the js to the html form.

Returns:
the actionScript

setActionScript

public void setActionScript(String actionScript)
Parameters:
actionScript - the actionScript to set

setPerformDirtyValidation

public void setPerformDirtyValidation(boolean performDirtyValidation)
Parameters:
performDirtyValidation - the blockValidateDirty to set

isPerformDirtyValidation

public boolean isPerformDirtyValidation()
Returns:
the blockValidateDirty

isClearDirtyOnAction

public boolean isClearDirtyOnAction()
True to make this action clear the dirty flag before submitting

This will clear both the dirtyForm flag on the form and the count of fields considered dirty on the client-side. This will only be performed if this action is a request based action.

Returns:
true if the dirty

setClearDirtyOnAction

public void setClearDirtyOnAction(boolean clearDirtyOnAction)
Set clearDirtyOnAction

Parameters:
clearDirtyOnAction -

isDirtyOnAction

public boolean isDirtyOnAction()
When true, this action will mark the form dirty by incrementing the dirty field count, but if this action refreshes the entire view this will be lost (most actions only refresh the page)

This will increase count of fields considered dirty on the client-side by 1. This will only be performed if this action is a request based action.

Returns:
true if this action is considered dirty, false otherwise

setDirtyOnAction

public void setDirtyOnAction(boolean dirtyOnAction)
Set to true, if this action is considered one that changes the form's data (makes the form dirty)

Parameters:
dirtyOnAction -

isDisabled

public boolean isDisabled()
Indicates whether the action (input or button) is disabled (doesn't allow interaction)

Returns:
true if the action field is disabled, false if not

setDisabled

public void setDisabled(boolean disabled)
Setter for the disabled indicator

Parameters:
disabled -

getDisabledReason

public String getDisabledReason()
If the action field is disabled, gives a reason for why which will be displayed as a tooltip on the action field (button)

Returns:
disabled reason text
See Also:
isDisabled()

setDisabledReason

public void setDisabledReason(String disabledReason)
Setter for the disabled reason text

Parameters:
disabledReason -

getActionImagePlacement

public String getActionImagePlacement()

setActionImagePlacement

public void setActionImagePlacement(String actionImagePlacement)
Set to TOP, BOTTOM, LEFT, RIGHT to position image at that location within the button. For the subclass ActionLinkField only LEFT and RIGHT are allowed. When set to blank/null/IMAGE_ONLY, the image itself will be the Action, if no value is set the default is ALWAYS LEFT, you must explicitly set blank/null/IMAGE_ONLY to use ONLY the image as the Action.


getPreSubmitCall

public String getPreSubmitCall()
Gets the script which needs to be invoked before the form is submitted

The preSubmitCall can carry out custom logic for the action before the submit occurs. The value should be given as one or more lines of script and should return a boolean. If false is returned from the call, the submit is not carried out. Furthermore, the preSubmitCall can refer to the request object through the variable 'kradRequest' or 'this'. This gives full access over the request for doing such things as adding additional data

Examples 'return doFunction(kradRequest);', 'var valid=true;return valid;'

The preSubmit call will be invoked both for ajax and non-ajax submits

Returns:
script text that will be invoked before form submission

setPreSubmitCall

public void setPreSubmitCall(String preSubmitCall)
Setter for preSubmitCall

Parameters:
preSubmitCall -

isAjaxSubmit

public boolean isAjaxSubmit()
When this property is set to true it will submit the form using Ajax instead of the browser submit. Will default to updating the page contents

Returns:
boolean

setAjaxSubmit

public void setAjaxSubmit(boolean ajaxSubmit)
Setter for ajaxSubmit

Parameters:
ajaxSubmit -

getAjaxReturnType

public String getAjaxReturnType()
Gets the return type for the ajax call

The ajax return type indicates how the response content will be handled in the client. Typical examples include updating a component, the page, or doing a redirect.

Returns:
return type
See Also:
UifConstants.AjaxReturnTypes

setAjaxReturnType

public void setAjaxReturnType(String ajaxReturnType)
Setter for the type of ajax return

Parameters:
ajaxReturnType -

isDisplayResponseInLightBox

public boolean isDisplayResponseInLightBox()
Indicates if the action response should be displayed in a lightbox

Returns:
true if response should be rendered in a lightbox, false if not

setDisplayResponseInLightBox

public void setDisplayResponseInLightBox(boolean displayResponseInLightBox)
Setter for indicating the response should be rendered in a lightbox

Parameters:
displayResponseInLightBox -

getSuccessCallback

public String getSuccessCallback()
Gets the script which will be invoked on a successful ajax call

The successCallback can carry out custom logic after a successful ajax submission has been made. The value can contain one or more script statements. In addition, the response contents can be accessed through the variable 'responseContents'

Examples 'handleSuccessfulUpdate(responseContents);'

The successCallback may only be specified when isAjaxSubmit() is true

Returns:
script to be executed when the action is successful

setSuccessCallback

public void setSuccessCallback(String successCallback)
Setter for successCallback

Parameters:
successCallback -

getErrorCallback

public String getErrorCallback()
Gets the script which will be invoked when the action fails due to problems in the ajax call or the return of an incident report

The errorCallback can carry out custom logic after a failed ajax submission. The value can contain one or more script statements. In addition, the response contents can be accessed through the variable 'responseContents'

Examples 'handleFailedUpdate(responseContents);'

The errorCallback may only be specified when isAjaxSubmit() is true

Returns:
script to be executed when the action is successful

setErrorCallback

public void setErrorCallback(String errorCallback)
Setter for errorCallback

Parameters:
errorCallback -

getRefreshId

public String getRefreshId()
Id for the component that should be refreshed after the action completes

Either refresh id or refresh property name can be set to configure the component that should be refreshed after the action completes. If both are blank, the page will be refreshed

Returns:
valid component id

setRefreshId

public void setRefreshId(String refreshId)
Setter for the component refresh id

Parameters:
refreshId -

getRefreshPropertyName

public String getRefreshPropertyName()
Property name for the DataField that should be refreshed after the action completes

Either refresh id or refresh property name can be set to configure the component that should be refreshed after the action completes. If both are blank, the page will be refreshed

Property name will be adjusted to use the default binding path unless it contains the form prefix

Returns:
valid property name with an associated DataField
See Also:
UifConstants.NO_BIND_ADJUST_PREFIX

setRefreshPropertyName

public void setRefreshPropertyName(String refreshPropertyName)
Setter for the property name of the DataField that should be refreshed

Parameters:
refreshPropertyName -

getLoadingMessageText

public String getLoadingMessageText()
Gets the loading message used by action's blockUI


setLoadingMessageText

public void setLoadingMessageText(String loadingMessageText)
When this property is set, it is used in place of the loading message text used by the blockUI

Parameters:
loadingMessageText -

isDisableBlocking

public boolean isDisableBlocking()
Indicates whether blocking for the action should be disabled

By default when an action is invoked part of the page or the entire window is blocked until the action completes. If this property is set to true the blocking will not be displayed.

Currently if an action returns a file download, this property should be set to true. If not, the blocking will never get unblocked (because the page does not get notification a file was downloaded)

Returns:
true if blocking should be disabled, false if not

setDisableBlocking

public void setDisableBlocking(boolean disableBlocking)
Setter for disabling blocking when the action is invoked

Parameters:
disableBlocking -

completeValidation

public void completeValidation(ValidationTrace tracer)
Description copied from interface: Component
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. Used by the RiceDictionaryValidator.

Specified by:
completeValidation in interface Component
Overrides:
completeValidation in class ComponentBase
Parameters:
tracer - Record of component's location
See Also:
Component.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)

isEvaluateDisabledOnKeyUp

public boolean isEvaluateDisabledOnKeyUp()
Evaluate the disable condition on controls which disable it on each key up event

Returns:
true if evaluate on key up, false otherwise

setEvaluateDisabledOnKeyUp

public void setEvaluateDisabledOnKeyUp(boolean evaluateDisabledOnKeyUp)
Set evaluateDisableOnKeyUp

Parameters:
evaluateDisabledOnKeyUp -

getDisabledConditionJs

public String getDisabledConditionJs()
Get the disable condition js derived from the springEL, cannot be set.

Returns:
the disableConditionJs javascript to be evaluated

setDisabledConditionJs

protected void setDisabledConditionJs(String disabledConditionJs)
Sets the disabled condition javascript

Parameters:
disabledConditionJs -

getDisabledConditionControlNames

public List<String> getDisabledConditionControlNames()
Control names to add handlers to for disable functionality, cannot be set

Returns:
control names to add handlers to for disable

setDisabledConditionControlNames

public void setDisabledConditionControlNames(List<String> disabledConditionControlNames)
Set disabled condition control names

Parameters:
disabledConditionControlNames -

getDisabledWhenChangedPropertyNames

public List<String> getDisabledWhenChangedPropertyNames()
Gets the property names of fields that when changed, will disable this component

Returns:
the property names to monitor for change to disable this component

setDisabledWhenChangedPropertyNames

public void setDisabledWhenChangedPropertyNames(List<String> disabledWhenChangedPropertyNames)
Sets the property names of fields that when changed, will disable this component

Parameters:
disabledWhenChangedPropertyNames -

getEnabledWhenChangedPropertyNames

public List<String> getEnabledWhenChangedPropertyNames()
Gets the property names of fields that when changed, will enable this component

Returns:
the property names to monitor for change to enable this component

setEnabledWhenChangedPropertyNames

public void setEnabledWhenChangedPropertyNames(List<String> enabledWhenChangedPropertyNames)
Sets the property names of fields that when changed, will enable this component

Parameters:
enabledWhenChangedPropertyNames -

setDisabledExpression

protected void setDisabledExpression(String disabledExpression)
Sets the disabled expression

Parameters:
disabledExpression -

copyProperties

protected <T> void copyProperties(T component)
Description copied from class: ComponentBase
Copies the properties over for the copy method

Overrides:
copyProperties in class ComponentBase
Parameters:
component - base bean
See Also:
ComponentBase.copy()


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.