Package de.xima.fc.gui.model
Class PlaceHolder.PlaceHolderBuilder
java.lang.Object
de.xima.fc.gui.model.PlaceHolder.PlaceHolderBuilder
- Enclosing class:
- PlaceHolder
Utility class for creating a
PlaceHolder.- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()forAppointment(String name) forAttachment(String name, String i18n, String... params) Creates a placeholder of the following format:[%$name=param1,param2,...%], such as[%ATTACHMENT_ZIP=fileName%]forContext(String contextName, String name, IPlaceholderType type) Creates a new context placeholder of the form<CONTEXT_NAME>.<NAME>.forUser(EPlaceholderType userPlaceholderType, String userType, String path) forWorkflowActionResult(String actionName, IGuiIcon icon, String property, String kind) forWorkflowNode(String nodeName, IGuiIcon icon, String property, String description) forWorkflowTrigger(IGuiIcon icon, String property, String description)
-
Constructor Details
-
PlaceHolderBuilder
- Parameters:
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.
-
-
Method Details
-
alias
- Parameters:
alias- Only for form field placeholders: The alias of the form field- Returns:
- this for chaining
-
kind
- Parameters:
kind- The type or kind of the placeholder. May be used by certainIPlaceholderTypes for a more detailed description etc.- Returns:
- this for chaining
-
build
-
icon
- Parameters:
icon- Icon for this placeholder. Depending on the placeholder type, may overwrite the default icon of that type.- Returns:
- this for chaining
-
name
- Parameters:
name- Name of the placeholder, eg.CLIENT_ID. Usually shown in the list of available placeholders- Returns:
- this for chaining
-
text
- Parameters:
text- Content of this placeholder, eg. the HTML string for HTML template placeholders. May be empty for other placeholders types.- Returns:
- this for chaining
-
forContext
public static PlaceHolder.PlaceHolderBuilder forContext(String contextName, String name, IPlaceholderType type) Creates a new context placeholder of the form<CONTEXT_NAME>.<NAME>. For exampledata.emailordata.firstName.- Parameters:
contextName- Name of the contextname- Name of the placeholdertype- Type of the placeholder. Consider usingContextPlaceholderType.- Returns:
- New builder for further customization.
-
forSystem
-
forUser
public static PlaceHolder.PlaceHolderBuilder forUser(EPlaceholderType userPlaceholderType, String userType, String path) -
forAttachment
public 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%]- Parameters:
name- Name of the attachment placeholder, seeCmnConst.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)- Returns:
- A placeholder builder for an attachment placeholder.
-
forWorkflowActionResult
public static PlaceHolder.PlaceHolderBuilder forWorkflowActionResult(String actionName, IGuiIcon icon, String property, String kind) -
forWorkflowNode
public static PlaceHolder.PlaceHolderBuilder forWorkflowNode(String nodeName, IGuiIcon icon, String property, String description) -
forWorkflowTrigger
public static PlaceHolder.PlaceHolderBuilder forWorkflowTrigger(IGuiIcon icon, String property, String description) -
forAppointment
-