Skip to content

Commit

Permalink
format and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ursjoss committed Jun 8, 2024
1 parent 2ccbcf0 commit e9c55fc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ abstract class AbstractPage<T> : GenericWebPage<T> {
StringResourceModel("brandname", this, null).string
else brand

protected open fun addLinksTo(nb: Navbar) {}
protected open fun addLinksTo(nb: Navbar) {
// override to add links
}

@JvmOverloads
fun queueFieldAndLabel(field: FormComponent<*>, pv: PropertyValidator<*>? = null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ void handleDatishObject(@NotNull final StringBuilder sb, @NotNull final java.lan
}
case final Day day -> sb.append(day.getvalue());
default -> {
// no-op
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,7 @@ abstract class PaperPanel<T>(
mainCodeOfCodeClass1: TextField<String>,
codeClass1: BootstrapMultiSelect<Code>,
) {
// override to add code class change behavior
}

internal class CodeClass1ConsistencyValidator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ abstract class ResultPanel protected constructor(
else "column.title.exclude", this@ResultPanel, null
)

override fun onClickPerformed(target: AjaxRequestTarget, rowModel: IModel<PaperSlim>, link: AjaxLink<Void>) {
override fun onClickPerformed(
target: AjaxRequestTarget,
rowModel: IModel<PaperSlim>,
link: AjaxLink<Void>,
) {
val excludedId = rowModel.getObject().id
target.add(results)
excludedId?.let {
Expand Down Expand Up @@ -391,11 +395,19 @@ abstract class ResultPanel protected constructor(
.build()
if (plus)
addOrReplace(
newJasperResourceLink(id, "literature_review_plus", PaperLiteratureReviewPlusDataSource(dataProvider, rhf, config))
newJasperResourceLink(
id,
"literature_review_plus",
PaperLiteratureReviewPlusDataSource(dataProvider, rhf, config)
)
)
else
addOrReplace(
newJasperResourceLink(id, "literature_review", PaperLiteratureReviewDataSource(dataProvider, rhf, config))
newJasperResourceLink(
id,
"literature_review",
PaperLiteratureReviewDataSource(dataProvider, rhf, config)
)
)
}

Expand Down

0 comments on commit e9c55fc

Please sign in to comment.