当前位置: 首页>>代码示例>>Java>>正文


Java KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL属性代码示例

本文整理汇总了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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:SectionBridge.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:SectionBridge.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:52,代码来源:FieldBridge.java


注:本文中的org.kuali.rice.krad.util.KRADConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。