|
||||||||||
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.
Nested Class Summary | |
---|---|
static class |
LocationSuggest.LocationSuggestPostData
Holds post data for the location suggest component. |
Nested classes/interfaces inherited from class org.kuali.rice.krad.uif.widget.Suggest |
---|
Suggest.SuggestPostData |
Field Summary |
---|
Fields inherited from class org.kuali.rice.krad.uif.component.ComponentBase |
---|
templateOptions |
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
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. |
LocationSuggest.LocationSuggestPostData |
getPostData()
Returns object containing post data to store for the suggest request. |
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(Object model,
LifecycleElement parent)
Process the objectIdPropertyName, if set The following actions are performed: Adjusts the query field mappings on the query based on the binding configuration of the field TODO: determine query if render is true and query is not set The following finalization is done here: progressiveRender and conditionalRefresh variables are processed if set If any of the style properties were given, sets the style string on the style property Set the skipInTabOrder flag for nested components The last phase before the view is rendered |
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, setExpressionGraph, setPropertyExpressions |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode, unwrap |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement |
---|
checkMutable, getContext, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performInitialization, pushAllToContext, pushObjectToContext, setContext, setId, setPhasePathMapping, setRender, setViewPath, setViewStatus, skipLifecycle |
Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable |
---|
clone, copy, preventModification, unwrap |
Constructor Detail |
---|
public LocationSuggest()
Method Detail |
---|
public void performFinalize(Object model, LifecycleElement parent)
Here final preparations can be made based on the updated view state.
performFinalize
in interface LifecycleElement
performFinalize
in class Suggest
model
- - top level object containing the dataparent
- - parent componentpublic LocationSuggest.LocationSuggestPostData getPostData()
getPostData
in class Suggest
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 |