|
||||||||||
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.container.ContainerBase org.kuali.rice.krad.uif.view.View org.kuali.rice.krad.uif.view.FormView org.kuali.rice.krad.uif.view.LookupView
public class LookupView
View type for Maintenance documents
Supports doing a search against a data object class or performing a more advanced query. The view type is primarily made up of two groups, the search (or criteria) group and the results group. Many options are supported on the view to enable/disable certain features, like what actions are available on the search results.
Works in conjunction with LookupableImpl
which customizes the view and carries out the
business functionality
Field Summary | |
---|---|
protected boolean |
defaultSortAscending
|
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 | |
---|---|
LookupView()
|
Method Summary | |
---|---|
void |
applyConditionalLogicForFieldDisplay()
|
List<Component> |
getComponentPrototypes()
List of components that are maintained by the component as prototypes for creating other component instances |
List<Component> |
getCriteriaFields()
|
Group |
getCriteriaGroup()
|
Class<?> |
getDataObjectClassName()
Class name for the object the lookup applies to |
List<String> |
getDefaultSortAttributeNames()
|
String |
getMaintenanceUrlMapping()
String that maps to the maintenance controller for the maintenance document (if any) associated with the lookup data object class |
List<Component> |
getResultFields()
|
Field |
getResultsActionsField()
|
Integer |
getResultSetLimit()
Retrieves the maximum number of records that will be listed as a result of the lookup search |
CollectionGroup |
getResultsGroup()
|
Field |
getResultsReturnField()
|
String |
getReturnTarget()
|
boolean |
hasResultSetLimit()
Indicates whether a result set limit has been specified for the view |
protected void |
initializeGroups()
|
boolean |
isDefaultSortAscending()
|
boolean |
isHideReturnLinks()
|
boolean |
isMultipleValuesSelect()
Indicates whether multiple values select should be enabled for the lookup |
boolean |
isReturnByScript()
|
boolean |
isShowMaintenanceLinks()
|
boolean |
isSuppressActions()
|
void |
performApplyModel(View view,
Object model,
Component parent)
The following updates are done here: Evaluate the progressive render condition (if set) and combine with the current render status to set the render status |
void |
performInitialization(View view,
Object model)
The following initialization is performed: Set the abstractTypeClasses map for the lookup object path |
void |
setCriteriaFields(List<Component> criteriaFields)
|
void |
setCriteriaGroup(Group criteriaGroup)
|
void |
setDataObjectClassName(Class<?> dataObjectClassName)
Setter for the object class name |
void |
setDefaultSortAscending(boolean defaultSortAscending)
|
void |
setDefaultSortAttributeNames(List<String> defaultSortAttributeNames)
|
void |
setHideReturnLinks(boolean hideReturnLinks)
|
void |
setMaintenanceUrlMapping(String maintenanceUrlMapping)
Setter for the URL mapping string that will be used to build up maintenance action URLs |
void |
setMultipleValuesSelect(boolean multipleValuesSelect)
Setter for the multiple values select indicator |
void |
setResultFields(List<Component> resultFields)
|
void |
setResultsActionsField(Field resultsActionsField)
|
void |
setResultSetLimit(Integer resultSetLimit)
Setter for the result list limit |
void |
setResultsGroup(CollectionGroup resultsGroup)
|
void |
setResultsReturnField(Field resultsReturnField)
|
void |
setReturnByScript(boolean returnByScript)
Setter for the flag to indicate that lookups will return the value by script and not a post |
void |
setReturnTarget(String returnTarget)
|
void |
setShowMaintenanceLinks(boolean showMaintenanceLinks)
|
void |
setSuppressActions(boolean suppressActions)
|
Methods inherited from class org.kuali.rice.krad.uif.view.FormView |
---|
getFormPostUrl, isRenderForm, isValidateClientSide, isValidateServerSide, setFormPostUrl, setRenderForm, setValidateClientSide, setValidateServerSide |
Methods inherited from class org.kuali.rice.krad.uif.container.ContainerBase |
---|
getAdditionalMessageKeys, getErrorsField, getFooter, getHeader, getHelp, getInputFields, getInstructionalMessageField, getInstructionalText, getItemOrderingSequence, getLayoutManager, isFieldContainer, setAdditionalMessageKeys, setErrorsField, setFieldContainer, setFooter, setHeader, setHelp, setInstructionalMessageField, setInstructionalText, setItemOrderingSequence, setLayoutManager, setRenderFooter, setRenderHeader |
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 |
Field Detail |
---|
protected boolean defaultSortAscending
Constructor Detail |
---|
public LookupView()
Method Detail |
---|
public void performInitialization(View view, Object model)
performInitialization
in interface Component
performInitialization
in class View
view
- - view instance in which the component belongsmodel
- - object instance containing the view dataContainerBase.performInitialization(org.kuali.rice.krad.uif.view.View, java.lang.Object)
protected void initializeGroups()
public void performApplyModel(View view, Object model, Component parent)
ComponentBase
performApplyModel
in interface Component
performApplyModel
in class ContainerBase
view
- - view instance to which the component belongsmodel
- - Top level object containing the data (could be the form or a
top level business object, dto)org.kuali.rice.krad.uif.container.ContainerBase#performApplyModel(org.kuali.rice.krad.uif.view.View,
java.lang.Object)
public List<Component> getComponentPrototypes()
Component
Prototypes are held for configuring how a component should be created during the lifecycle. An example of this are the fields in a collection group that are created for each collection record. They only participate in the initialize phase.
getComponentPrototypes
in interface Component
getComponentPrototypes
in class View
Component.getComponentPrototypes()
public void applyConditionalLogicForFieldDisplay()
public Class<?> getDataObjectClassName()
The object class name is used to pick up a dictionary entry which will
feed the attribute field definitions and other configuration. In addition
it is to configure the Lookupable
which will carry out the
lookup action
public void setDataObjectClassName(Class<?> dataObjectClassName)
dataObjectClassName
- public boolean isHideReturnLinks()
public void setHideReturnLinks(boolean hideReturnLinks)
hideReturnLinks
- the hideReturnLinks to setpublic boolean isSuppressActions()
public void setSuppressActions(boolean suppressActions)
suppressActions
- the suppressActions to setpublic boolean isShowMaintenanceLinks()
public void setShowMaintenanceLinks(boolean showMaintenanceLinks)
showMaintenanceLinks
- the showMaintenanceLinks to setpublic boolean isMultipleValuesSelect()
When set to true, the select field is enabled for the lookup results group that allows the user to select one or more rows for returning
public void setMultipleValuesSelect(boolean multipleValuesSelect)
multipleValuesSelect
- public Field getResultsActionsField()
public void setResultsActionsField(Field resultsActionsField)
resultsActionsField
- the resultsActionsField to setpublic Field getResultsReturnField()
public void setResultsReturnField(Field resultsReturnField)
resultsReturnField
- the resultsReturnField to setpublic Group getCriteriaGroup()
public void setCriteriaGroup(Group criteriaGroup)
public CollectionGroup getResultsGroup()
public void setResultsGroup(CollectionGroup resultsGroup)
public List<Component> getCriteriaFields()
public void setCriteriaFields(List<Component> criteriaFields)
public List<Component> getResultFields()
public void setResultFields(List<Component> resultFields)
public List<String> getDefaultSortAttributeNames()
public void setDefaultSortAttributeNames(List<String> defaultSortAttributeNames)
public boolean isDefaultSortAscending()
public void setDefaultSortAscending(boolean defaultSortAscending)
public Integer getResultSetLimit()
public void setResultSetLimit(Integer resultSetLimit)
resultSetLimit
- Integer specifying limitpublic boolean hasResultSetLimit()
public void setReturnTarget(String returnTarget)
returnTarget
- the returnTarget to setpublic String getReturnTarget()
public boolean isReturnByScript()
public void setReturnByScript(boolean returnByScript)
returnByScript
- the returnByScript flagpublic String getMaintenanceUrlMapping()
Mapping will be used to build the maintenance action links (such as edit, copy, and new). If not given, the default maintenance mapping will be used
public void setMaintenanceUrlMapping(String maintenanceUrlMapping)
maintenanceUrlMapping
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |