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 SummaryConstructors Constructor Description PlaceHolderBuilder(String placeholder, IPlaceholderType type)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
PlaceHolderBuilderpublic 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- 
aliaspublic PlaceHolder.PlaceHolderBuilder alias(String alias) - Parameters:
- alias- Only for form field placeholders: The alias of the form field
- Returns:
- this for chaining
 
 - 
kindpublic PlaceHolder.PlaceHolderBuilder kind(String kind) - Parameters:
- kind- The type or kind of the placeholder. May be used by certain- IPlaceholderTypes for a more detailed description etc.
- Returns:
- this for chaining
 
 - 
buildpublic PlaceHolder build() 
 - 
iconpublic 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
 
 - 
namepublic 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
 
 - 
textpublic 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
 
 - 
forContextpublic 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 context
- name- Name of the placeholder
- type- Type of the placeholder. Consider using- ContextPlaceholderType.
- Returns:
- New builder for further customization.
 
 - 
forSystempublic static PlaceHolder.PlaceHolderBuilder forSystem(String name) 
 - 
forUserpublic static PlaceHolder.PlaceHolderBuilder forUser(EPlaceholderType userPlaceholderType, String userType, String path) 
 - 
forAttachmentpublic 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, 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)
- Returns:
- A placeholder builder for an attachment placeholder.
 
 - 
forWorkflowActionResultpublic static PlaceHolder.PlaceHolderBuilder forWorkflowActionResult(String actionName, IGuiIcon icon, String property, String kind) 
 - 
forWorkflowNodepublic static PlaceHolder.PlaceHolderBuilder forWorkflowNode(String nodeName, IGuiIcon icon, String property, String description) 
 - 
forWorkflowTriggerpublic static PlaceHolder.PlaceHolderBuilder forWorkflowTrigger(IGuiIcon icon, String property, String description) 
 - 
forAppointmentpublic static PlaceHolder.PlaceHolderBuilder forAppointment(String name) 
 
- 
 
-