Package de.xima.fc.gui.model
Class PlaceHolder.PlaceHolderBuilder
- java.lang.Object
 - 
- de.xima.fc.gui.model.PlaceHolder.PlaceHolderBuilder
 
 
- 
- Enclosing class:
 - PlaceHolder
 
public static class PlaceHolder.PlaceHolderBuilder extends Object
Utility class for creating aPlaceHolder.- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description PlaceHolderBuilder(String placeholder, IPlaceholderType type) 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
PlaceHolderBuilder
public PlaceHolderBuilder(String placeholder, IPlaceholderType type)
- 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 Detail
- 
alias
public PlaceHolder.PlaceHolderBuilder alias(String alias)
- Parameters:
 alias- Only for form field placeholders: The alias of the form field- Returns:
 - this for chaining
 
 
- 
kind
public PlaceHolder.PlaceHolderBuilder kind(String 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
public PlaceHolder build()
 
- 
icon
public PlaceHolder.PlaceHolderBuilder icon(IGuiIcon 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
public PlaceHolder.PlaceHolderBuilder name(String name)
- Parameters:
 name- Name of the placeholder, eg.CLIENT_ID. Usually shown in the list of available placeholders- Returns:
 - this for chaining
 
 
- 
text
public PlaceHolder.PlaceHolderBuilder text(String 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
public static PlaceHolder.PlaceHolderBuilder forSystem(String name)
 
- 
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
public static PlaceHolder.PlaceHolderBuilder forAppointment(String name)
 
 - 
 
 -