|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.core.ComponentBase org.kuali.rice.krad.uif.widget.WidgetBase org.kuali.rice.krad.uif.widget.Inquiry
public class Inquiry
Widget for rendering an Inquiry link on a field's value
Field Summary | |
---|---|
private String |
baseInquiryUrl
|
private String |
dataObjectClassName
|
private boolean |
forceInquiry
|
static String |
INQUIRY_TITLE_PREFIX
|
private LinkField |
inquiryLinkField
|
private Map<String,String> |
inquiryParameters
|
private static org.apache.log4j.Logger |
LOG
|
private static long |
serialVersionUID
|
private String |
viewName
|
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 | |
---|---|
Inquiry()
|
Method Summary | |
---|---|
void |
buildInquiryLink(Object dataObject,
String propertyName,
Class<?> inquiryObjectClass,
Map<String,String> inquiryParms)
Builds the inquiry link based on the given inquiry class and parameters |
String |
createTitleText(Class<?> dataObjectClass)
Gets text to prepend to the inquiry link title |
String |
getBaseInquiryUrl()
|
String |
getDataObjectClassName()
|
LinkField |
getInquiryLinkField()
|
Map<String,String> |
getInquiryParameters()
|
List<Component> |
getNestedComponents()
List of components that are contained within the component |
String |
getViewName()
|
boolean |
isForceInquiry()
|
void |
performFinalize(View view,
Object model,
Component parent)
The following finalization is done here: If any of the style properties were given, sets the style string on the style property Setup the decorator chain (if component has decorators) for rendering Set the skipInTabOrder flag for nested components |
void |
setBaseInquiryUrl(String baseInquiryUrl)
|
void |
setDataObjectClassName(String dataObjectClassName)
|
void |
setForceInquiry(boolean forceInquiry)
|
void |
setInquiryLinkField(LinkField inquiryLinkField)
|
void |
setInquiryParameters(Map<String,String> inquiryParameters)
|
void |
setupLink(View view,
Object model,
AttributeField field)
Get parent object and field name and build the inquiry link This was moved from the performFinalize because overlapping and to be used by DirectInquiry |
void |
setViewName(String viewName)
|
Methods inherited from class org.kuali.rice.krad.uif.widget.WidgetBase |
---|
getComponentTypeName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static final org.apache.log4j.Logger LOG
public static final String INQUIRY_TITLE_PREFIX
private String baseInquiryUrl
private String dataObjectClassName
private String viewName
private Map<String,String> inquiryParameters
private boolean forceInquiry
private LinkField inquiryLinkField
Constructor Detail |
---|
public Inquiry()
Method Detail |
---|
public void performFinalize(View view, Object model, Component parent)
ComponentBase
performFinalize
in interface Component
performFinalize
in class ComponentBase
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 void setupLink(View view, Object model, AttributeField field)
view
- - Container Viewmodel
- - modelfield
- - The parent Attribute fieldpublic void buildInquiryLink(Object dataObject, String propertyName, Class<?> inquiryObjectClass, Map<String,String> inquiryParms)
dataObject
- - parent object that contains the data (used to pull inquiry
parameters)propertyName
- - name of the property the inquiry is set oninquiryObjectClass
- - class of the object the inquiry should point toinquiryParms
- - map of key field mappings for the inquirypublic String createTitleText(Class<?> dataObjectClass)
dataObjectClass
- - data object class being inquired into
public List<Component> getNestedComponents()
Component
Used by ViewHelperService
for the various lifecycle
callbacks
getNestedComponents
in interface Component
getNestedComponents
in class ComponentBase
ComponentBase.getNestedComponents()
public String getBaseInquiryUrl()
public void setBaseInquiryUrl(String baseInquiryUrl)
public String getDataObjectClassName()
public void setDataObjectClassName(String dataObjectClassName)
public String getViewName()
public void setViewName(String viewName)
public boolean isForceInquiry()
public void setForceInquiry(boolean forceInquiry)
public Map<String,String> getInquiryParameters()
public void setInquiryParameters(Map<String,String> inquiryParameters)
public LinkField getInquiryLinkField()
public void setInquiryLinkField(LinkField inquiryLinkField)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |