本文整理汇总了Java中org.kuali.rice.krad.util.KRADConstants.DISPATCH_REQUEST_PARAMETER属性的典型用法代码示例。如果您正苦于以下问题:Java KRADConstants.DISPATCH_REQUEST_PARAMETER属性的具体用法?Java KRADConstants.DISPATCH_REQUEST_PARAMETER怎么用?Java KRADConstants.DISPATCH_REQUEST_PARAMETER使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.kuali.rice.krad.util.KRADConstants
的用法示例。
在下文中一共展示了KRADConstants.DISPATCH_REQUEST_PARAMETER属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDeleteRowButtonField
/**
* Helper method to build up a Field containing a delete button mapped up to remove the collection record identified by the
* given collection name and index.
*
* @param collectionName - name of the collection
* @param rowIndex - index of the record to associate delete button
* @return Field - of type IMAGE_SUBMIT
*/
private static final Field getDeleteRowButtonField(String collectionName, String rowIndex) {
Field deleteButtonField = new Field();
String deleteButtonName = KRADConstants.DISPATCH_REQUEST_PARAMETER + "." + KRADConstants.DELETE_LINE_METHOD + "." + collectionName + "." + KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL + ".line" + rowIndex;
deleteButtonField.setPropertyName(deleteButtonName);
deleteButtonField.setFieldType(Field.IMAGE_SUBMIT);
deleteButtonField.setPropertyValue("images/tinybutton-delete1.gif");
return deleteButtonField;
}
示例2: addShowInactiveButtonField
/**
* Helper method to build up the show inactive button source and place in the section.
*
* @param section - section that will display the button
* @param collectionName - name of the collection to toggle setting
* @param showInactive - boolean indicating whether inactive rows should be displayed
* @return Field - of type IMAGE_SUBMIT
*/
private static final void addShowInactiveButtonField(Section section, String collectionName, boolean showInactive) {
String methodName = KRADConstants.DISPATCH_REQUEST_PARAMETER + "." + KRADConstants.TOGGLE_INACTIVE_METHOD + "." + collectionName.replace( '.', '_' );
methodName += "." + KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL + showInactive + ".anchorshowInactive." + collectionName + KRADConstants.METHOD_TO_CALL_BOPARM_RIGHT_DEL;
String imageSource = showInactive ? "tinybutton-showinact.gif" : "tinybutton-hideinact.gif";
String showInactiveButton = "property=" + methodName + ";src=" + imageSource + ";alt=show(hide) inactive" + ";title=show(hide) inactive";
section.setExtraButtonSource(showInactiveButton);
}
示例3: constructContainerField
/**
*
* This method handles setting up a container field not including the add fields
*
* @param collectionDefinition
* @param parents
* @param o
* @param hideAdd
* @param numberOfColumns
* @param collName
* @param collFields
* @return
*/
public static List<Field> constructContainerField(CollectionDefinitionI collectionDefinition, String parents, BusinessObject o, boolean hideAdd, int numberOfColumns, String collName, List<Field> collFields) {
// get label for collection
String collectionLabel = getDataDictionaryService().getCollectionLabel(o.getClass(), collectionDefinition.getName());
// retrieve the summary label either from the override or from the DD
String collectionElementLabel = collectionDefinition.getSummaryTitle();
if(StringUtils.isEmpty(collectionElementLabel)){
collectionElementLabel = getDataDictionaryService().getCollectionElementLabel(o.getClass().getName(), collectionDefinition.getName(),collectionDefinition.getBusinessObjectClass());
}
// container field
Field containerField;
containerField = FieldUtils.constructContainerField(collName, collectionLabel, collFields, numberOfColumns);
if(StringUtils.isNotEmpty(collectionElementLabel)) {
containerField.setContainerElementName(collectionElementLabel);
}
collFields = new ArrayList();
collFields.add(containerField);
// field button for adding lines
if(!hideAdd && collectionDefinition.getIncludeAddLine()) {
Field field = new Field();
String addButtonName = KRADConstants.DISPATCH_REQUEST_PARAMETER + "." + KRADConstants.ADD_LINE_METHOD + "." + parents + collectionDefinition.getName() + "." + KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL + collectionDefinition.getBusinessObjectClass().getName() + KRADConstants.METHOD_TO_CALL_BOPARM_RIGHT_DEL;
field.setPropertyName(addButtonName);
field.setFieldType(Field.IMAGE_SUBMIT);
field.setPropertyValue("images/tinybutton-add1.gif");
// collFields.add(field);
containerField.getContainerRows().add(new Row(field));
}
if (collectionDefinition instanceof MaintainableCollectionDefinition) {
if (FieldUtils.isCollectionMultipleLookupEnabled((MaintainableCollectionDefinition) collectionDefinition)) {
FieldUtils.modifyFieldToSupportMultipleValueLookups(containerField, parents, (MaintainableCollectionDefinition) collectionDefinition);
}
}
return collFields;
}
示例4: parseSearchUsingOnlyPrimaryKeyValues
/**
* Iterates through the request params, looks for the parameter representing the method to call in the format like
* methodToCall.sort.1.(::;true;::).x, and returns the boolean value in the (::; and ;::) delimiters.
*
* @see MultipleValueLookupForm#parseSearchUsingOnlyPrimaryKeyValues(String)
*
* @param request
* @return
*/
protected boolean parseSearchUsingOnlyPrimaryKeyValues(HttpServletRequest request) {
// the param we're looking for looks like: methodToCall.sort.1.(::;true;::).x , we want to parse out the "true" component
String paramPrefix = KRADConstants.DISPATCH_REQUEST_PARAMETER + "." + getMethodToCall() + ".";
for (Enumeration i = request.getParameterNames(); i.hasMoreElements();) {
String parameterName = (String) i.nextElement();
if (parameterName.startsWith(paramPrefix) && parameterName.endsWith(".x")) {
return parseSearchUsingOnlyPrimaryKeyValues(parameterName);
}
}
// maybe doing an initial search, so no value will be present
return false;
}
示例5: generateMaintenanceUrl
protected String generateMaintenanceUrl(HttpServletRequest request, DelegateRuleForm form) {
return getApplicationBaseUrl() + "/kr/" + KRADConstants.MAINTENANCE_ACTION + "?" +
KRADConstants.DISPATCH_REQUEST_PARAMETER + "=" + KRADConstants.START_METHOD + "&" +
KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE + "=" + RuleDelegationBo.class.getName() + "&" +
WebRuleUtils.RESPONSIBILITY_ID_PARAM + "=" + form.getParentResponsibilityId() + "&" +
WebRuleUtils.RULE_TEMPLATE_ID_PARAM + "=" + form.getParentRule().getRuleTemplate().getDelegationTemplateId() + "&" +
WebRuleUtils.DOCUMENT_TYPE_NAME_PARAM + "=" + form.getParentRule().getDocTypeName();
}
示例6: generateMaintenanceUrl
protected String generateMaintenanceUrl(HttpServletRequest request, RuleForm form) {
return getApplicationBaseUrl() + "/kr/" + KRADConstants.MAINTENANCE_ACTION + "?" +
KRADConstants.DISPATCH_REQUEST_PARAMETER + "=" + KRADConstants.START_METHOD + "&" +
KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE + "=" + RuleBaseValues.class.getName() + "&" +
WebRuleUtils.DOCUMENT_TYPE_NAME_PARAM + "=" + form.getDocumentTypeName() + "&" +
WebRuleUtils.RULE_TEMPLATE_NAME_PARAM + "=" + form.getRuleTemplateName();
}