|
||||||||||
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.widget.WidgetBase org.kuali.rice.krad.uif.widget.QuickFinder
public class QuickFinder
Widget for navigating to a lookup from a field (called a quickfinder)
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 | |
---|---|
QuickFinder()
|
Method Summary | |
---|---|
protected void |
addActionParameterIfNotNull(String parameterName,
Object parameterValue)
|
protected void |
generateFieldConversions(InputField field,
DataObjectRelationship relationship)
|
protected void |
generateLookupParameters(InputField field,
DataObjectRelationship relationship)
|
Boolean |
getAutoSearch()
|
String |
getBaseLookupUrl()
Returns the URL for the lookup for which parameters will be added |
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
String |
getDataObjectClassName()
Full class name the lookup should be provided for |
Boolean |
getDisableSearchButtons()
|
Map<String,String> |
getFieldConversions()
|
Boolean |
getHeaderBarEnabled()
|
Boolean |
getHideReturnLink()
|
String |
getLookupCollectionName()
For the case of multi-value lookup, indicates the collection that should be populated with the return results |
Boolean |
getLookupCriteriaEnabled()
|
Map<String,String> |
getLookupParameters()
|
Boolean |
getMultipleValuesSelect()
Indicates whether a multi-values lookup should be requested |
ActionField |
getQuickfinderActionField()
|
String |
getReadOnlySearchFields()
|
String |
getReferencesToRefresh()
|
protected DataObjectRelationship |
getRelationshipForField(View view,
Object model,
InputField field)
|
Boolean |
getShowMaintenanceLinks()
|
Boolean |
getSupplementalActionsEnabled()
|
Boolean |
getSuppressActions()
|
String |
getViewName()
Specifies the name of the lookup view that should be render when the quickfinder is clicked |
void |
performFinalize(View view,
Object model,
Component parent)
The following finalization is performed: Sets defaults on collectionLookup such as collectionName, and the class if not set |
void |
setAutoSearch(Boolean autoSearch)
|
void |
setBaseLookupUrl(String baseLookupUrl)
Setter for the lookup base url (comain, context, and controller) |
void |
setDataObjectClassName(String dataObjectClassName)
Setter for the class name that lookup should be provided for |
void |
setDisableSearchButtons(Boolean disableSearchButtons)
|
void |
setFieldConversions(Map<String,String> fieldConversions)
|
void |
setHeaderBarEnabled(Boolean headerBarEnabled)
|
void |
setHideReturnLink(Boolean hideReturnLink)
|
void |
setLookupCollectionName(String lookupCollectionName)
Setter for the name of the collection that should be populated with lookup results |
void |
setLookupCriteriaEnabled(Boolean lookupCriteriaEnabled)
|
void |
setLookupParameters(Map<String,String> lookupParameters)
|
void |
setMultipleValuesSelect(Boolean multipleValuesSelect)
Setter for the multi-values lookup indicator |
void |
setQuickfinderActionField(ActionField quickfinderActionField)
|
void |
setReadOnlySearchFields(String readOnlySearchFields)
|
void |
setReferencesToRefresh(String referencesToRefresh)
|
void |
setShowMaintenanceLinks(Boolean showMaintenanceLinks)
|
void |
setSupplementalActionsEnabled(Boolean supplementalActionsEnabled)
|
void |
setSuppressActions(Boolean suppressActions)
|
void |
setViewName(String viewName)
Setter for the lookup view name |
void |
updateFieldConversions(BindingInfo bindingInfo)
Adjusts the path on the field conversion to property to match the binding path prefix of the given BindingInfo |
void |
updateLookupParameters(BindingInfo bindingInfo)
Adjusts the path on the lookup parameter from property to match the binding path prefix of the given BindingInfo |
Methods inherited from class org.kuali.rice.krad.uif.widget.WidgetBase |
---|
getComponentTypeName |
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 QuickFinder()
Method Detail |
---|
public void performFinalize(View view, Object model, Component parent)
If the data object class was not configured for the lookup, the class configured for the collection group will be used if it has a lookup defined. If not data object class is found for the lookup it will be disabled. The collection name is also defaulted to the binding path for this collection group, so the results returned from the lookup will populate this collection. Finally field conversions will be generated based on the PK fields of the collection object class
performFinalize
in interface Component
performFinalize
in class ComponentBase
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,
java.lang.Object, org.kuali.rice.krad.uif.component.Component)
protected void addActionParameterIfNotNull(String parameterName, Object parameterValue)
protected DataObjectRelationship getRelationshipForField(View view, Object model, InputField field)
protected void generateFieldConversions(InputField field, DataObjectRelationship relationship)
protected void generateLookupParameters(InputField field, DataObjectRelationship relationship)
public void updateFieldConversions(BindingInfo bindingInfo)
BindingInfo
bindingInfo
- - binding info instance to copy binding path prefix frompublic void updateLookupParameters(BindingInfo bindingInfo)
BindingInfo
bindingInfo
- - binding info instance to copy binding path prefix frompublic List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle
callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public String getBaseLookupUrl()
The base URL includes the domain, context, and controller mapping for the lookup invocation. Parameters are then added based on configuration to complete the URL. This is generally defaulted to the application URL and internal KRAD servlet mapping, but can be changed to invoke another application such as the Rice standalone server
public void setBaseLookupUrl(String baseLookupUrl)
baseLookupUrl
- public String getDataObjectClassName()
This is passed on to the lookup request for the data object the lookup should be rendered for. This is then
used by the lookup framework to select the lookup view (if more than one lookup view exists for the same
data object class name, the getViewName()
property should be specified to select the view to render).
public void setDataObjectClassName(String dataObjectClassName)
dataObjectClassName
- public String getViewName()
When more than one lookup exists for the getDataObjectClassName()
, the view name must be specified
to select which one to render. Note when a view name is not specified, it receives a name of 'DEFAULT'.
Therefore this name can be sent to select the lookup view without a view name specified.
public void setViewName(String viewName)
viewName
- public String getReferencesToRefresh()
public void setReferencesToRefresh(String referencesToRefresh)
public Map<String,String> getFieldConversions()
public void setFieldConversions(Map<String,String> fieldConversions)
public Map<String,String> getLookupParameters()
public void setLookupParameters(Map<String,String> lookupParameters)
public String getReadOnlySearchFields()
public void setReadOnlySearchFields(String readOnlySearchFields)
public Boolean getHideReturnLink()
public void setHideReturnLink(Boolean hideReturnLink)
public Boolean getSuppressActions()
public void setSuppressActions(Boolean suppressActions)
public Boolean getAutoSearch()
public void setAutoSearch(Boolean autoSearch)
public Boolean getLookupCriteriaEnabled()
public void setLookupCriteriaEnabled(Boolean lookupCriteriaEnabled)
public Boolean getSupplementalActionsEnabled()
public void setSupplementalActionsEnabled(Boolean supplementalActionsEnabled)
public Boolean getDisableSearchButtons()
public void setDisableSearchButtons(Boolean disableSearchButtons)
public Boolean getHeaderBarEnabled()
public void setHeaderBarEnabled(Boolean headerBarEnabled)
public Boolean getShowMaintenanceLinks()
public void setShowMaintenanceLinks(Boolean showMaintenanceLinks)
public ActionField getQuickfinderActionField()
public void setQuickfinderActionField(ActionField quickfinderActionField)
public Boolean getMultipleValuesSelect()
public void setMultipleValuesSelect(Boolean multipleValuesSelect)
multipleValuesSelect
- public String getLookupCollectionName()
Note when the quickfinder is associated with a CollectionGroup
, this property is
set automatically from the collection name associated with the group
public void setLookupCollectionName(String lookupCollectionName)
lookupCollectionName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |