本文整理匯總了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());
}
示例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());
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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());
}
示例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);
}
示例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);
}
示例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());
}
示例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());
}
示例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);