Class DefaultPluginFormElementTemplateDescriptor.Builder
- java.lang.Object
-
- de.xima.fc.plugin.models.retval.form.DefaultPluginFormElementTemplateDescriptor.Builder
-
- Enclosing class:
- DefaultPluginFormElementTemplateDescriptor
public static final class DefaultPluginFormElementTemplateDescriptor.Builder extends Object
Simple builder for aIPluginFormElementTemplateDescriptor
.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
-
-
-
Method Detail
-
build
public DefaultPluginFormElementTemplateDescriptor build()
- Returns:
- A new descriptor with the current configuration.
-
className
public DefaultPluginFormElementTemplateDescriptor.Builder className(String className)
- Parameters:
className
- SeeIPluginFormElementTemplateDescriptor.getClassName()
- Returns:
- This builder for chaining method calls.
-
description
public DefaultPluginFormElementTemplateDescriptor.Builder description(ISerializableFunction<Locale,String> description)
Sets a localized description.- Parameters:
description
- SeeIPluginFormElementTemplateDescriptor.getDescription(Locale)
- Returns:
- This builder for chaining method calls.
-
description
public DefaultPluginFormElementTemplateDescriptor.Builder description(String description)
Sets a fixed description.- Parameters:
description
- SeeIPluginFormElementTemplateDescriptor.getDescription(Locale)
- Returns:
- This builder for chaining method calls.
-
icon
public DefaultPluginFormElementTemplateDescriptor.Builder icon(ISerializableFunction<Locale,IPluginFormElementTemplateIcon> icon)
Sets a localized icon.- Parameters:
icon
- SeeIPluginFormElementTemplateDescriptor.getIcon(Locale)
- Returns:
- This builder for chaining method calls.
-
icon
public DefaultPluginFormElementTemplateDescriptor.Builder icon(IPluginFormElementTemplateIcon icon)
Sets a fixed icon.- Parameters:
icon
- SeeIPluginFormElementTemplateDescriptor.getIcon(Locale)
- Returns:
- This builder for chaining method calls.
-
icon
public DefaultPluginFormElementTemplateDescriptor.Builder icon(String mediaType, URI icon)
Sets a fixed icon with a media type and URI.- Parameters:
mediaType
- Media type of the icon.icon
- URI of the icon, seeIPluginFormElementTemplateDescriptor.getIcon(Locale)
- Returns:
- This builder for chaining method calls.
-
name
public DefaultPluginFormElementTemplateDescriptor.Builder name(ISerializableFunction<Locale,String> name)
Sets a localized name.- Parameters:
name
- SeeIPluginFormElementTemplateDescriptor.getName(Locale)
- Returns:
- This builder for chaining method calls.
-
name
public DefaultPluginFormElementTemplateDescriptor.Builder name(String name)
Sets a fixed name.- Parameters:
name
- SeeIPluginFormElementTemplateDescriptor.getName(Locale)
- Returns:
- This builder for chaining method calls.
-
persistJson
public DefaultPluginFormElementTemplateDescriptor.Builder persistJson(URI persistJson)
- Parameters:
persistJson
- SeeIPluginFormElementTemplateDescriptor.getPersistJson()
- Returns:
- This builder for chaining method calls.
-
tags
public DefaultPluginFormElementTemplateDescriptor.Builder tags(ISerializableFunction<Locale,Set<String>> tags)
Sets localized tags.- Parameters:
tags
- SeeIPluginFormElementTemplateDescriptor.getTags(Locale)
- Returns:
- This builder for chaining method calls.
-
tags
public DefaultPluginFormElementTemplateDescriptor.Builder tags(Set<String> tags)
Sets fixed tags.- Parameters:
tags
- SeeIPluginFormElementTemplateDescriptor.getTags(Locale)
- Returns:
- This builder for chaining method calls.
-
-