Package io.goobi.viewer.model.jsf
Class DynamicContentBuilder
java.lang.Object
io.goobi.viewer.model.jsf.DynamicContentBuilder
- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(DynamicContent content, UIComponent parent) build(JsfComponent jsfComponent, UIComponent parent, Map<String, Object> attributes) buildHead(DynamicContent content, HtmlPanelGroup parent) createContent(String id, DynamicContentType type, Map<String, Object> attributes) static String
-
Constructor Details
-
DynamicContentBuilder
public DynamicContentBuilder()
-
-
Method Details
-
build
public UIComponent build(JsfComponent jsfComponent, UIComponent parent, Map<String, Object> attributes) throws PresentationException- Throws:
PresentationException
-
build
- Parameters:
content- dynamic content descriptor specifying type and attributesparent- parent UI component to attach the built component to- Returns:
UIComponent
-
createTag
- Parameters:
name- HTML element tag name to renderattributes- map of HTML attributes to write on the element- Returns:
UIComponent
-
buildHead
- Parameters:
content- dynamic content descriptor specifying type and attributesparent- parent panel group to attach head elements to- Returns:
- Optional
-
createContent
public DynamicContent createContent(String id, DynamicContentType type, Map<String, Object> attributes) - Parameters:
id- unique component ID to assign to the contenttype- content type determining the component templateattributes- map of content-specific configuration attributes- Returns:
DynamicContent
-
getFilenameForType
- Parameters:
type- content type to resolve a filename for- Returns:
- File name
-