|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.krad.uif.core.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.core.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 |
ImageField |
getActionImageField()
Image to use for the action |
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. |
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 |
getLightBox()
LightBox widget for the field |
LightBoxLookup |
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()
|
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)
The following initialization is performed: Set the actionLabel if blank to the Field label |
void |
setActionImageField(ImageField actionImageField)
Setter for the action image field |
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 |
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 |
setLightBox(LightBox lightBox)
Setter for the light box widget |
void |
setLightBoxLookup(LightBoxLookup 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, getNestedComponents, getShortLabel, isLabelFieldRendered, setLabel, setLabelField, setLabelFieldRendered, setLabelPlacement, setShortLabel, setShowLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionField()
Method Detail |
---|
public void performInitialization(View view)
performInitialization
in interface Component
performInitialization
in class FieldBase
view
- - view instance in which the component belongsComponentBase.performInitialization(org.kuali.rice.krad.uif.container.View)
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.container.View,
java.lang.Object, org.kuali.rice.krad.uif.core.Component)
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 getActionImageField()
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 setActionImageField(ImageField actionImageField)
actionImageField
- 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 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 boolean getSupportsOnClick()
ScriptEventSupport
getSupportsOnClick
in interface ScriptEventSupport
getSupportsOnClick
in class ComponentBase
ComponentBase.getSupportsOnClick()
public void setLightBoxLookup(LightBoxLookup lightBoxLookup)
the
- LightBoxLookup
widget to setpublic LightBoxLookup 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 setLightBox(LightBox lightBox)
the
- LightBox
widget to setpublic LightBox getLightBox()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |