Package io.goobi.viewer.model.jsf
Class DynamicContentBuilder
java.lang.Object
io.goobi.viewer.model.jsf.DynamicContentBuilder
- Author:
- florian
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.faces.component.UIComponent
build
(DynamicContent content, javax.faces.component.UIComponent parent) javax.faces.component.UIComponent
build
(JsfComponent jsfComponent, javax.faces.component.UIComponent parent, Map<String, Object> attributes) Optional<javax.faces.component.UIComponent>
buildHead
(DynamicContent content, javax.faces.component.html.HtmlPanelGroup parent) createContent
(String id, DynamicContentType type, Map<String, Object> attributes) javax.faces.component.UIComponent
static String
-
Constructor Details
-
DynamicContentBuilder
public DynamicContentBuilder()
-
-
Method Details
-
build
public javax.faces.component.UIComponent build(JsfComponent jsfComponent, javax.faces.component.UIComponent parent, Map<String, Object> attributes) throws PresentationException- Throws:
PresentationException
-
build
public javax.faces.component.UIComponent build(DynamicContent content, javax.faces.component.UIComponent parent) - Parameters:
content
-parent
-- Returns:
UIComponent
-
createTag
- Parameters:
name
-attributes
-- Returns:
UIComponent
-
buildHead
public Optional<javax.faces.component.UIComponent> buildHead(DynamicContent content, javax.faces.component.html.HtmlPanelGroup parent) - Parameters:
content
-parent
-- Returns:
- Optional
-
createContent
public DynamicContent createContent(String id, DynamicContentType type, Map<String, Object> attributes) - Parameters:
id
-type
-attributes
-- Returns:
DynamicContent
-
getFilenameForType
- Parameters:
type
-- Returns:
- File name
-