Class ToolkitPack.Builder
java.lang.Object
org.apache.juneau.console.freemarker.ToolkitPack.Builder
- Enclosing class:
- ToolkitPack
Builder for
ToolkitPack.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the pack.Appends CSS asset paths.Appends CSS asset paths.Appends the names of packs this one depends on.Appends JS asset paths.Appends JS asset paths.kind(ToolkitPack.Kind value) Sets the pack kind.Sets the asset-URL resolver.
-
Method Details
-
css
Appends CSS asset paths.- Parameters:
paths- The paths.- Returns:
- This object.
-
css
Appends CSS asset paths.- Parameters:
paths- The paths.- Returns:
- This object.
-
js
Appends JS asset paths.- Parameters:
paths- The paths.- Returns:
- This object.
-
js
Appends JS asset paths.- Parameters:
paths- The paths.- Returns:
- This object.
-
dependsOn
Appends the names of packs this one depends on.- Parameters:
names- The pack names.- Returns:
- This object.
-
kind
Sets the pack kind. Required.- Parameters:
value- The kind.- Returns:
- This object.
-
resolver
Sets the asset-URL resolver. Defaults toToolkitPackRegistry.VIEWS_RESOLVER.- Parameters:
value- The resolver.- Returns:
- This object.
-
build
Builds the pack.- Returns:
- A new pack.
- Throws:
IllegalArgumentException- If no kind was set.
-