當前位置: 首頁>>代碼示例>>Java>>正文


Java Field類代碼示例

本文整理匯總了Java中play.api.data.Field的典型用法代碼示例。如果您正苦於以下問題:Java Field類的具體用法?Java Field怎麽用?Java Field使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Field類屬於play.api.data包,在下文中一共展示了Field類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {

    String description = "";
    if (displayDescription) {
        description = Msg.get(customAttributeDefinition.description);
    }

    String uid = userSessionManagerPlugin.getUserSessionId(Controller.ctx());

    return views.html.framework_views.parts.checkboxlist.render(field, Msg.get(customAttributeDefinition.name), description,
            customAttributeDefinition.getValueHoldersCollectionFromNameForDynamicMultiItemCustomAttribute(i18nMessagesPlugin, uid), true, false,
            customAttributeDefinition.isRequired());

}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:17,代碼來源:DynamicMultiItemCustomAttributeValue.java

示例2: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {

    String description = "";
    if (displayDescription) {
        description = Msg.get(customAttributeDefinition.description);
    }

    if (!customAttributeDefinition.isAutoComplete()) {
        String uid = userSessionManagerPlugin.getUserSessionId(Controller.ctx());
        return views.html.framework_views.parts.dropdownlist.render(field, Msg.get(customAttributeDefinition.name),
                customAttributeDefinition.getValueHoldersCollectionFromNameForDynamicSingleItemCustomAttribute(i18nMessagesPlugin, "%", uid), description,
                true, customAttributeDefinition.isRequired(), false, false);
    }
    return views.html.framework_views.parts.autocomplete.render(field, Msg.get(customAttributeDefinition.name), description,
            implementationDefinedObjectService.getRouteForDynamicSingleCustomAttributeApi().url(),
            customAttributeDefinition.getContextParametersForDynamicApi());
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:20,代碼來源:DynamicSingleItemCustomAttributeValue.java

示例3: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = customAttributeDefinition.description;
    }
    return views.html.framework_views.parts.fileupload_field.render(field, customAttributeDefinition.name, description, null, null);
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:10,代碼來源:ImageCustomAttributeValue.java

示例4: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = customAttributeDefinition.description;
    }
    return views.html.framework_views.parts.url_input.render(field, customAttributeDefinition.name, description, customAttributeDefinition.isRequired(),
            displayDescription);
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:11,代碼來源:UrlCustomAttributeValue.java

示例5: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = customAttributeDefinition.description;
    }
    return views.html.framework_views.parts.basic_input_text.render(field, customAttributeDefinition.name, description,
            customAttributeDefinition.isRequired());
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:11,代碼來源:IntegerCustomAttributeValue.java

示例6: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin, IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = customAttributeDefinition.description;
    }
    return views.html.framework_views.parts.read_only_field.render(field, customAttributeDefinition.name, description);
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:9,代碼來源:ScriptCustomAttributeValue.java

示例7: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = customAttributeDefinition.description;
    }
    return views.html.framework_views.parts.dateinput.render(field, customAttributeDefinition.name, description, null,
            customAttributeDefinition.isRequired());
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:11,代碼來源:DateCustomAttributeValue.java

示例8: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = Msg.get(customAttributeDefinition.description);
    }
    return views.html.framework_views.parts.checkbox.render(field, Msg.get(customAttributeDefinition.name), description);
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:10,代碼來源:BooleanCustomAttributeValue.java

示例9: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = Msg.get(customAttributeDefinition.description);
    }
    return views.html.framework_views.parts.dropdownlist.render(field, Msg.get(customAttributeDefinition.name),
            CustomAttributeItemOption.getSelectableValuesForDefinitionId(customAttributeDefinition.id), description, true,
            customAttributeDefinition.isRequired(), false, false);
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:12,代碼來源:SingleItemCustomAttributeValue.java

示例10: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = customAttributeDefinition.description;
    }
    return views.html.framework_views.parts.textarea.render(field, customAttributeDefinition.name, description, customAttributeDefinition.isRequired());
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:10,代碼來源:TextCustomAttributeValue.java

示例11: renderFormField

import play.api.data.Field; //導入依賴的package包/類
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
        IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
    String description = "";
    if (displayDescription) {
        description = customAttributeDefinition.description;
    }
    return views.html.framework_views.parts.checkboxlist.render(field, customAttributeDefinition.name, description,
            CustomAttributeMultiItemOption.getSelectableValuesForDefinitionId(customAttributeDefinition.id), true, true,
            customAttributeDefinition.isRequired());
}
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:12,代碼來源:MultiItemCustomAttributeValue.java

示例12: renderFormField

import play.api.data.Field; //導入依賴的package包/類
/**
 * Render a form field.
 * 
 * @param field
 *            a form field
 * @param displayDescription
 *            true if the field description (help) should be displayed if it
 *            exists
 * @return an Html display of the form field attached to the specified value
 */
Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
                     IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription);
 
開發者ID:theAgileFactory,項目名稱:app-framework,代碼行數:13,代碼來源:ICustomAttributeValue.java


注:本文中的play.api.data.Field類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。