org.kuali.rice.krad.uif.widget
Class Inquiry

java.lang.Object
  extended by org.kuali.rice.krad.uif.core.ComponentBase
      extended by org.kuali.rice.krad.uif.widget.WidgetBase
          extended by org.kuali.rice.krad.uif.widget.Inquiry
All Implemented Interfaces:
Serializable, Component, ScriptEventSupport, Widget, org.springframework.core.Ordered
Direct Known Subclasses:
DirectInquiry

public class Inquiry
extends WidgetBase

Widget for rendering an Inquiry link on a field's value

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

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 org.kuali.rice.krad.uif.core.ComponentBase
addStyleClass, appendToStyle, getAlign, getBaseId, getColSpan, getComponentModifiers, getComponentOptions, getComponentOptionsJSString, getConditionalColSpan, getConditionalReadOnly, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getConditionalRender, getConditionalRequired, getConditionalRowSpan, getContext, getEventCode, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertiesForReferenceCopy, getPropertyExpressions, getPropertyReplacers, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getStyleClassesAsString, getSupportsOnBlur, getSupportsOnChange, getSupportsOnClick, getSupportsOnClose, getSupportsOnDblClick, getSupportsOnDocumentReady, getSupportsOnFocus, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnLoad, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnSubmit, getSupportsOnUnload, getTemplate, getTitle, getValign, getWidth, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRender, isSelfRendered, isSkipInTabOrder, performApplyModel, performInitialization, pushObjectToContext, setAlign, setBaseId, setColSpan, setComponentModifiers, setComponentOptions, setConditionalColSpan, setConditionalReadOnly, setConditionalRefresh, setConditionalRender, setConditionalRequired, setConditionalRowSpan, setContext, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setHidden, setId, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyExpressions, setPropertyReplacers, setReadOnly, setRefresh, setRefreshWhenChanged, setRender, setRender, setRenderOutput, setRequired, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setStyleClasses, setTemplate, setTitle, setValign, setWidth
 
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.core.Component
addStyleClass, appendToStyle, getBaseId, getColSpan, getComponentModifiers, getComponentOptions, getConditionalReadOnly, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getConditionalRender, getContext, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertiesForReferenceCopy, getPropertyReplacers, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getTemplate, getTitle, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRender, isSelfRendered, performApplyModel, performInitialization, pushObjectToContext, setBaseId, setColSpan, setComponentModifiers, setComponentOptions, setConditionalReadOnly, setConditionalRefresh, setConditionalRender, setContext, setHidden, setId, setOrder, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefresh, setRefreshWhenChanged, setRender, setRenderOutput, setRequired, setRowSpan, setSelfRendered, setStyle, setStyleClasses, setTemplate, setTitle
 
Methods inherited from interface org.kuali.rice.krad.uif.core.ScriptEventSupport
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getSupportsOnBlur, getSupportsOnChange, getSupportsOnClick, getSupportsOnClose, getSupportsOnDblClick, getSupportsOnDocumentReady, getSupportsOnFocus, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnLoad, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnSubmit, getSupportsOnUnload, setOnBlurScript
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

LOG

private static final org.apache.log4j.Logger LOG

INQUIRY_TITLE_PREFIX

public static final String INQUIRY_TITLE_PREFIX
See Also:
Constant Field Values

baseInquiryUrl

private String baseInquiryUrl

dataObjectClassName

private String dataObjectClassName

viewName

private String viewName

inquiryParameters

private Map<String,String> inquiryParameters

forceInquiry

private boolean forceInquiry

inquiryLinkField

private LinkField inquiryLinkField
Constructor Detail

Inquiry

public Inquiry()
Method Detail

performFinalize

public void performFinalize(View view,
                            Object model,
                            Component parent)
Description copied from class: ComponentBase
The following finalization is done here:

Specified by:
performFinalize in interface Component
Overrides:
performFinalize in class ComponentBase
Parameters:
view - - view instance that should be finalized for rendering
model - - top level object containing the data
parent - - parent component
See Also:
ComponentBase.performFinalize(org.kuali.rice.krad.uif.container.View, java.lang.Object, org.kuali.rice.krad.uif.core.Component)

setupLink

public 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

Parameters:
view - - Container View
model - - model
field - - The parent Attribute field

buildInquiryLink

public void buildInquiryLink(Object dataObject,
                             String propertyName,
                             Class<?> inquiryObjectClass,
                             Map<String,String> inquiryParms)
Builds the inquiry link based on the given inquiry class and parameters

Parameters:
dataObject - - parent object that contains the data (used to pull inquiry parameters)
propertyName - - name of the property the inquiry is set on
inquiryObjectClass - - class of the object the inquiry should point to
inquiryParms - - map of key field mappings for the inquiry

createTitleText

public String createTitleText(Class<?> dataObjectClass)
Gets text to prepend to the inquiry link title

Parameters:
dataObjectClass - - data object class being inquired into
Returns:
String title prepend text

getNestedComponents

public List<Component> getNestedComponents()
Description copied from interface: Component
List of components that are contained within the component

Used by ViewHelperService for the various lifecycle callbacks

Specified by:
getNestedComponents in interface Component
Overrides:
getNestedComponents in class ComponentBase
Returns:
List child components
See Also:
ComponentBase.getNestedComponents()

getBaseInquiryUrl

public String getBaseInquiryUrl()

setBaseInquiryUrl

public void setBaseInquiryUrl(String baseInquiryUrl)

getDataObjectClassName

public String getDataObjectClassName()

setDataObjectClassName

public void setDataObjectClassName(String dataObjectClassName)

getViewName

public String getViewName()

setViewName

public void setViewName(String viewName)

isForceInquiry

public boolean isForceInquiry()

setForceInquiry

public void setForceInquiry(boolean forceInquiry)

getInquiryParameters

public Map<String,String> getInquiryParameters()

setInquiryParameters

public void setInquiryParameters(Map<String,String> inquiryParameters)

getInquiryLinkField

public LinkField getInquiryLinkField()

setInquiryLinkField

public void setInquiryLinkField(LinkField inquiryLinkField)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.