Package de.xima.fc.form.renderer
Class XFormIncludesBuilder
- java.lang.Object
-
- de.xima.fc.form.renderer.XFormIncludesBuilder
-
public class XFormIncludesBuilder extends Object
Builder-Class for generating the list of includes. Designed for use with fluent api and buildJsIncludes- and buildCssIncludes-method- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description XFormIncludesBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
buildCssIncludes()
List<String>
buildJsIncludes()
XFormIncludesBuilder
filterDir(String filterDir)
XFormIncludesBuilder
relative(boolean relative)
XFormIncludesBuilder
sortBy(Comparator<String> sortOrder)
XFormIncludesBuilder
useJquery(boolean useJquery)
XFormIncludesBuilder
useJqueryUi(boolean useJqueryUi)
XFormIncludesBuilder
useResponseJs(boolean useResponseJs)
-
-
-
Method Detail
-
filterDir
public XFormIncludesBuilder filterDir(String filterDir)
-
sortBy
public XFormIncludesBuilder sortBy(Comparator<String> sortOrder)
- Parameters:
sortOrder
- The order in which the files are returned. Defaults to a case-insensitive sort. Maybenull
, in which case no sorting is performed.- Returns:
- This for chaining.
-
relative
public XFormIncludesBuilder relative(boolean relative)
-
useJquery
public XFormIncludesBuilder useJquery(boolean useJquery)
- Parameters:
useJquery
- Iffalse
, do not include JQuery javascript files. Defaults totrue
.- Returns:
- This for chaining.
-
useJqueryUi
public XFormIncludesBuilder useJqueryUi(boolean useJqueryUi)
- Parameters:
useJqueryUi
- Iffalse
, do no include the JQueryUI JavaScript and CSS files. Defaults totrue
.- Returns:
- This for chaining.
-
useResponseJs
public XFormIncludesBuilder useResponseJs(boolean useResponseJs)
- Parameters:
useResponseJs
- Iffalse
, do not include thereponse.js
file. Defaults totrue
.- Returns:
- This for chaining.
-
-