Skip to content

Commit

Permalink
Add builder for RenderingHints
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Sep 7, 2023
1 parent 402564f commit dd13dbd
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package de.digitalcollections.model.view;

import lombok.experimental.SuperBuilder;

/** Contains hints for rendering a webpage */
@SuperBuilder
public class RenderingHints {

/** Defines if an in-page navigation (a TOC) is rendered */
Expand All @@ -9,6 +12,13 @@ public class RenderingHints {
/** Defines the name of the template to use for rendering */
private String templateName;

public RenderingHints() {}

public RenderingHints(boolean showInPageNavigation, String templateName) {
this.showInPageNavigation = showInPageNavigation;
this.templateName = templateName;
}

public String getTemplateName() {
return templateName;
}
Expand Down

0 comments on commit dd13dbd

Please sign in to comment.