public static class PlaceHolder.PlaceHolderBuilder extends Object
PlaceHolder.| Constructor and Description | 
|---|
PlaceHolderBuilder(String placeholder,
                  IPlaceholderType type)  | 
| Modifier and Type | Method and Description | 
|---|---|
PlaceHolder.PlaceHolderBuilder | 
alias(String alias)  | 
PlaceHolder | 
build()  | 
static PlaceHolder.PlaceHolderBuilder | 
forAttachment(String name,
             String i18n,
             String... params)
Creates a placeholder of the following format:  
[%$name=param1,param2,...%], such as [%ATTACHMENT_ZIP=fileName%] | 
static PlaceHolder.PlaceHolderBuilder | 
forContext(String contextName,
          String name,
          IPlaceholderType type)
Creates a new context placeholder of the form {@code  
 | 
static PlaceHolder.PlaceHolderBuilder | 
forSystem(String name)  | 
static PlaceHolder.PlaceHolderBuilder | 
forWorkflowActionResult(String actionName,
                       IGuiIcon icon,
                       String property,
                       String kind)  | 
PlaceHolder.PlaceHolderBuilder | 
icon(IGuiIcon icon)  | 
PlaceHolder.PlaceHolderBuilder | 
kind(String kind)  | 
PlaceHolder.PlaceHolderBuilder | 
name(String name)  | 
PlaceHolder.PlaceHolderBuilder | 
text(String text)  | 
public PlaceHolderBuilder(String placeholder, IPlaceholderType type)
placeholder - The placeholder value without the bracket, eg. $$CLIENT_ID. This is the value
 that is inserted into the text field.type - The type of placeholder, used for grouping etc.public PlaceHolder.PlaceHolderBuilder alias(String alias)
alias - Only for form field placeholders: The alias of the form fieldpublic PlaceHolder.PlaceHolderBuilder kind(String kind)
kind - The type or kind of the placeholder. May be used by certain IPlaceholderTypes for a more
 detailed description etc.public PlaceHolder build()
public PlaceHolder.PlaceHolderBuilder icon(IGuiIcon icon)
icon - Icon for this placeholder. Depending on the placeholder type, may overwrite the default icon of that
 type.public PlaceHolder.PlaceHolderBuilder name(String name)
name - Name of the placeholder, eg. CLIENT_ID. Usually shown in the list of available
 placeholderspublic PlaceHolder.PlaceHolderBuilder text(String text)
text - Content of this placeholder, eg. the HTML string for HTML template placeholders. May be empty for
 other placeholders types.public static PlaceHolder.PlaceHolderBuilder forContext(String contextName, String name, IPlaceholderType type)
<CONTEXT_NAME>.<NAME>. For example data.email or
 data.firstName.contextName - Name of the contextname - Name of the placeholdertype - Type of the placeholder. Consider using ContextPlaceholderType.public static PlaceHolder.PlaceHolderBuilder forSystem(String name)
public static PlaceHolder.PlaceHolderBuilder forAttachment(String name, String i18n, String... params)
[%$name=param1,param2,...%], such as [%ATTACHMENT_ZIP=fileName%]name - Name of the attachment placeholder, see CmnConst.SESSION_ATTACHMENT, CmnConst.SESSION_ATTACHMENT_LIST, CmnConst.SESSION_ATTACHMENT_ZIP.i18n - I18N key of the placeholder name and description.params - Parameters added to the placeholder name (see above)public static PlaceHolder.PlaceHolderBuilder forWorkflowActionResult(String actionName, IGuiIcon icon, String property, String kind)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.