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 |
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 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 forWorkflowActionResult(String actionName, IGuiIcon icon, String property, String kind)
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.