本文整理汇总了Java中org.kuali.rice.krad.util.KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL属性的典型用法代码示例。如果您正苦于以下问题:Java KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL属性的具体用法?Java KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL怎么用?Java KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.kuali.rice.krad.util.KRADConstants
的用法示例。
在下文中一共展示了KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}