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 8061c6c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added missing builders and missing `hashCode`, `equals`, `toString` methods
- Added mapping logic for table elements to `HtmlMapper`
- Added possibility to define a custom parser in `HtmlMapper`
- Added builder for `RenderingHints`

## [12.1.0](https://github.com/dbmdz/digitalcollections-model/releases/tag/12.1.0) - 2023-08-01

Expand Down
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 8061c6c

Please sign in to comment.