|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.krad.uif.component.ConfigurableBase
org.kuali.rice.krad.uif.component.ComponentBase
org.kuali.rice.krad.uif.element.ContentElementBase
org.kuali.rice.krad.uif.element.Action
public class Action
Field that presents an action that can be taken on the UI such as submitting the form or invoking a script
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 |
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 |
getComponentSecurity()
Action Field Security object that indicates what authorization (permissions) exist for the action |
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 |
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) |
String |
getErrorCallback()
Getter for errorCallback. |
String |
getFocusOnIdAfterSubmit()
The id of the field 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()
get 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
|
String |
getPreSubmitCall()
Gets the script which needs to be invoked before the form is submitted. |
String |
getSuccessCallback()
Getter for successCallback property. |
String |
getUpdatingMessageText()
get updating message used by action's blockUI |
boolean |
isAjaxSubmit()
When this property is set to true it will submit the form using Ajax instead of the browser submit. |
boolean |
isDisabled()
Indicates whether the action (input or button) is disabled (doesn't allow interaction) |
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 |
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 |
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 |
setAjaxSubmit(boolean ajaxSubmit)
Setter for ajaxSubmit |
void |
setComponentSecurity(ComponentSecurity componentSecurity)
Override to assert a ActionSecurity instance is set |
void |
setDisabled(boolean disabled)
Setter for the disabled indicator |
void |
setDisabledReason(String disabledReason)
Setter for the disabled reason text |
void |
setErrorCallback(String errorCallback)
Setter for errorCallback |
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 |
setSuccessCallback(String successCallback)
Setter for successCallback |
void |
setUpdatingMessageText(String updatingMessageText)
When this property is set, it is used in place of the updating message text used by the blockUI |
Methods inherited from class org.kuali.rice.krad.uif.element.ContentElementBase |
---|
getComponentTypeName |
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
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.Configurable |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
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 Action()
Method Detail |
---|
public void performFinalize(View view, Object model, Component parent)
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)
public List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public String getMethodToCall()
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
public void setMethodToCall(String methodToCall)
methodToCall
- public String getActionLabel()
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
public void setActionLabel(String actionLabel)
actionLabel
- public Image getActionImage()
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
public void setActionImage(Image actionImage)
actionImage
- public String getNavigateToPageId()
Action
that is part of a
NavigationGroup
Support exists in the UifControllerBase
for handling
navigation between pages
public void setNavigateToPageId(String navigateToPageId)
navigateToPageId
- public String getActionEvent()
Action events can be looked at by the view or components in order to render differently depending on the action requested.
UifConstants.ActionEvents
public void setActionEvent(String actionEvent)
actionEvent
- public Map<String,String> getActionParameters()
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)
public void setActionParameters(Map<String,String> actionParameters)
actionParameters
- public void addActionParameter(String parameterName, String parameterValue)
parameterName
- - name of parameter to addparameterValue
- - value of parameter to addpublic String getActionParameter(String parameterName)
public ActionSecurity getComponentSecurity()
getComponentSecurity
in interface Component
getComponentSecurity
in class ComponentBase
Component.getComponentSecurity()
public void setComponentSecurity(ComponentSecurity componentSecurity)
ActionSecurity
instance is set
setComponentSecurity
in interface Component
setComponentSecurity
in class ComponentBase
componentSecurity
- - instance of ActionSecurityComponent.setComponentSecurity(org.kuali.rice.krad.uif.component.ComponentSecurity)
protected Class<? extends ComponentSecurity> getComponentSecurityClass()
ComponentBase
getComponentSecurityClass
in class ComponentBase
public String getJumpToIdAfterSubmit()
public void setJumpToIdAfterSubmit(String jumpToIdAfterSubmit)
jumpToIdAfterSubmit
- the jumpToIdAfterSubmit to setpublic String getJumpToNameAfterSubmit()
public void setJumpToNameAfterSubmit(String jumpToNameAfterSubmit)
jumpToNameAfterSubmit
- the jumpToNameAfterSubmit to setpublic String getFocusOnIdAfterSubmit()
public void setFocusOnIdAfterSubmit(String focusOnIdAfterSubmit)
focusOnIdAfterSubmit
- the focusOnAfterSubmit to setpublic boolean isPerformClientSideValidation()
public void setPerformClientSideValidation(boolean performClientSideValidation)
performClientSideValidation
- public String getActionScript()
public void setActionScript(String actionScript)
actionScript
- the actionScript to setpublic void setPerformDirtyValidation(boolean performDirtyValidation)
performDirtyValidation
- the blockValidateDirty to setpublic boolean isPerformDirtyValidation()
public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- public String getDisabledReason()
#isDisabled()}
public void setDisabledReason(String disabledReason)
disabledReason
- public String getActionImagePlacement()
public void setActionImagePlacement(String actionImagePlacement)
public String getPreSubmitCall()
public void setPreSubmitCall(String preSubmitCall)
preSubmitCall
- public boolean isAjaxSubmit()
public void setAjaxSubmit(boolean ajaxSubmit)
ajaxSubmit
- public String getLoadingMessageText()
public void setLoadingMessageText(String loadingMessageText)
loadingMessageText
- public String getUpdatingMessageText()
public void setUpdatingMessageText(String updatingMessageText)
updatingMessageText
- public String getSuccessCallback()
public void setSuccessCallback(String successCallback)
successCallback
- public String getErrorCallback()
public void setErrorCallback(String errorCallback)
errorCallback
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |