public static class PlaceHolder.PlaceHolderBuilder extends Object
PlaceHolder
.Constructor and Description |
---|
PlaceHolderBuilder(String placeholder,
IPlaceholderType type) |
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 IPlaceholderType
s 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 forUser(EPlaceholderType userPlaceholderType, String userType, String path)
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)
public static PlaceHolder.PlaceHolderBuilder forAppointment(String name)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.