|
||||||||||
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.Suggest org.kuali.rice.krad.uif.widget.LocationSuggest
public class LocationSuggest
LocationSuggest widget for providing suggestions that represent locations. When the suggestion is clicked, the navigation occurs immediately.
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 | |
---|---|
LocationSuggest()
|
Method Summary | |
---|---|
Map<String,String> |
getAdditionalRequestParameters()
AdditionalRequestParameters specify the static(constant) request parameters that should be appended to the url. |
String |
getAdditionalRequestParameterString()
Gets the constant additionalRequestParameters as a request string value to use as part of the url |
String |
getAdditionalUrlPathPropertyName()
AdditionalUrlPathProperty specifies the property on the retrieved suggestion result that contains a url appendage to be appended to the baseUrl when this selection is chosen. |
String |
getBaseUrl()
BaseUrl for the suggestions. |
String |
getHrefPropertyName()
The hrefPropertyName specifies the property on the retrieved suggestion result that contains the href value (full url). |
String |
getObjectIdPropertyName()
The objectIdPropertyName that represents the key for getting the object as a request parameter. |
String |
getRequestParameterPropertyNameJsObject()
Gets an object translated to js for the requestParameterPropertyNames. |
Map<String,String> |
getRequestParameterPropertyNames()
RequestParameterPropertyNames specify the properties that should be included in the request parameters. |
void |
performFinalize(View view,
Object model,
Component parent)
Process the objectIdPropertyName, if set |
void |
setAdditionalRequestParameters(Map<String,String> additionalRequestParameters)
Get the additionalRequestParameters |
void |
setAdditionalUrlPathPropertyName(String additionalUrlPathPropertyName)
Set additionalUrlPathProperty |
void |
setBaseUrl(String baseUrl)
Set the baseUrl |
void |
setHrefPropertyName(String hrefPropertyName)
Set the hrefPropertyName |
void |
setObjectIdPropertyName(String objectIdPropertyName)
Set the objectIdPropertyName |
void |
setRequestParameterPropertyNames(Map<String,String> requestParameterPropertyNames)
Set the requestParameterPropertyNames |
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 |
Constructor Detail |
---|
public LocationSuggest()
Method Detail |
---|
public void performFinalize(View view, Object model, Component parent)
performFinalize
in interface Component
performFinalize
in class Suggest
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the dataparent
- - parent componentComponent.performFinalize(org.kuali.rice.krad.uif.view.View, Object, org.kuali.rice.krad.uif.component.Component)
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl
- public String getAdditionalUrlPathPropertyName()
One use case for setting this is to retrieve a controllerMapping that changes based on selection. Note: for suggestions that all point to the same controllerMapping, simply set it as part of the baseUrl.
public void setAdditionalUrlPathPropertyName(String additionalUrlPathPropertyName)
additionalUrlPathPropertyName
- public String getHrefPropertyName()
This property must contain a full url if it exists on the object. If this property name is matched on the suggestion result, it takes precedence over any other settings set on this locationSuggest and is used as the navigation url. If the property name does not exist on the object, the suggest will fall back to building the url dynamically with baseUrl.
public void setHrefPropertyName(String hrefPropertyName)
hrefPropertyName
- public String getObjectIdPropertyName()
This convenience method is essentially equivalent to having a property by objectIdPropertyName as a key and value in the requestParameterPropertyNames.
public void setObjectIdPropertyName(String objectIdPropertyName)
objectIdPropertyName
- public Map<String,String> getRequestParameterPropertyNames()
The key is used as the key of the request parameter and the value is used as the property name to look for in the suggestion result object. If the property name specified exists on the result object, the request parameter in the url will appear as key=propertyValue in the request parameters.
public void setRequestParameterPropertyNames(Map<String,String> requestParameterPropertyNames)
requestParameterPropertyNames
- public Map<String,String> getAdditionalRequestParameters()
The key represents the key of the request parameter and the value represents the value of the request parameter. This will be used on each suggestion which uses a generated url (using baseUrl construction).
public void setAdditionalRequestParameters(Map<String,String> additionalRequestParameters)
additionalRequestParameters
- public String getRequestParameterPropertyNameJsObject()
public String getAdditionalRequestParameterString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |