|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.component.ConfigurableBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.uif.field.FieldBase org.kuali.rice.krad.uif.field.ActionField
public class ActionField
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 | |
---|---|
ActionField()
|
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 |
ImageField |
getActionImage()
Image to use for the action |
String |
getActionImageLocation()
|
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 |
getClientSideJs()
Client side javascript to be executed when this actionField is clicked. |
ActionFieldSecurity |
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 |
getFocusOnAfterSubmit()
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. |
LightBox |
getLightBoxDirectInquiry()
LightBox widget for the field |
LightBox |
getLightBoxLookup()
LightBoxLookup widget for the field |
String |
getMethodToCall()
Name of the method that should be called when the action is selected |
String |
getNavigateToPageId()
For an ActionField that is part of a
NavigationGroup
|
boolean |
getSupportsOnClick()
Indicates whether the component supports the onClick event |
boolean |
isBlockValidateDirty()
|
boolean |
isDisabled()
Indicates whether the action (input or button) is disabled (doesn't allow interaction) |
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 |
performInitialization(View view,
Object model)
The following initialization is performed: Set the actionLabel if blank to the Field label |
void |
setActionEvent(String actionEvent)
Setter for the action event |
void |
setActionImage(ImageField actionImage)
Setter for the action image field |
void |
setActionImageLocation(String actionImageLocation)
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 |
setBlockValidateDirty(boolean blockValidateDirty)
|
void |
setClientSideJs(String clientSideJs)
|
void |
setComponentSecurity(ComponentSecurity componentSecurity)
Override to assert a ActionFieldSecurity instance is set |
void |
setDisabled(boolean disabled)
Setter for the disabled indicator |
void |
setDisabledReason(String disabledReason)
Setter for the disabled reason text |
void |
setFocusOnAfterSubmit(String focusOnAfterSubmit)
|
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 |
setLightBoxDirectInquiry(LightBox lightBoxDirectInquiry)
Setter for the light box direct inquiry widget |
void |
setLightBoxLookup(LightBox lightBoxLookup)
Setter for the light box lookup widget |
void |
setMethodToCall(String methodToCall)
Setter for the actions method to call |
void |
setNavigateToPageId(String navigateToPageId)
Setter for the navigate to page id |
Methods inherited from class org.kuali.rice.krad.uif.field.FieldBase |
---|
getComponentTypeName, getLabel, getLabelField, getLabelPlacement, getShortLabel, isLabelFieldRendered, setLabel, setLabelField, setLabelFieldRendered, setLabelPlacement, setShortLabel, setShowLabel |
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
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 |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
Constructor Detail |
---|
public ActionField()
Method Detail |
---|
public void performInitialization(View view, Object model)
performInitialization
in interface Component
performInitialization
in class FieldBase
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)
performFinalize
in interface Component
performFinalize
in class FieldBase
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 FieldBase
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 ImageField getActionImage()
When the action image field 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(ImageField actionImage)
actionImage
- public String getNavigateToPageId()
ActionField
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 ActionFieldSecurity getComponentSecurity()
getComponentSecurity
in interface Component
getComponentSecurity
in class FieldBase
Component.getComponentSecurity()
public void setComponentSecurity(ComponentSecurity componentSecurity)
ActionFieldSecurity
instance is set
setComponentSecurity
in interface Component
setComponentSecurity
in class FieldBase
componentSecurity
- - instance of ActionFieldSecurityComponent.setComponentSecurity(org.kuali.rice.krad.uif.component.ComponentSecurity)
protected Class<? extends ComponentSecurity> getComponentSecurityClass()
ComponentBase
getComponentSecurityClass
in class FieldBase
public boolean getSupportsOnClick()
ScriptEventSupport
getSupportsOnClick
in interface ScriptEventSupport
getSupportsOnClick
in class ComponentBase
ComponentBase.getSupportsOnClick()
public void setLightBoxLookup(LightBox lightBoxLookup)
lightBoxLookup
- LightBoxLookup
widget to setpublic LightBox getLightBoxLookup()
The light box lookup widget will change the lookup behaviour to open the lookup in a light box.
DirectInquiry
field DirectInquirypublic 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 getFocusOnAfterSubmit()
public void setFocusOnAfterSubmit(String focusOnAfterSubmit)
focusOnAfterSubmit
- the focusOnAfterSubmit to setpublic String getClientSideJs()
public void setClientSideJs(String clientSideJs)
clientSideJs
- the clientSideJs to setpublic void setLightBoxDirectInquiry(LightBox lightBoxDirectInquiry)
lightBoxDirectInquiry
- LightBox
widget to setpublic LightBox getLightBoxDirectInquiry()
The light box widget will change the direct inquiry behaviour to open up in a light box.
LightBox
field LightBoxpublic void setBlockValidateDirty(boolean blockValidateDirty)
blockValidateDirty
- the blockValidateDirty to setpublic boolean isBlockValidateDirty()
public boolean isDisabled()
public String getDisabledReason()
#isDisabled()}
public void setDisabledReason(String disabledReason)
disabledReason
- public void setDisabled(boolean disabled)
disabled
- public String getActionImageLocation()
public void setActionImageLocation(String actionImageLocation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |