Interface IBootstrapSettings

All Known Implementing Classes:
BootstrapSettings

public interface IBootstrapSettings
#### Description Settings interface for bootstrap settings.
  • Field Details

  • Method Details

    • setVersion

      IBootstrapSettings setVersion(String version)
      Parameters:
      version - The version of Bootstrap. CDN resources use it to construct their urls
      Returns:
      same instance for chaining
    • setModernizrVersion

      IBootstrapSettings setModernizrVersion(String version)
      Parameters:
      version - The version of modernizr. CDN resources use it to construct their urls
      Returns:
      same instance for chaining
    • setPopperJsVersion

      IBootstrapSettings setPopperJsVersion(String version)
      Parameters:
      version - The version of popper.js. CDN resources use it to construct their urls
      Returns:
      same instance for chaining
    • deferJavascript

      boolean deferJavascript()
      Returns:
      the deferJavascript flag
    • getVersion

      String getVersion()
      Returns:
      The version of Bootstrap. CDN resources use it to construct their urls
    • getModernizrVersion

      String getModernizrVersion()
      Returns:
      The version of modernizr. CDN resources use it to construct their urls
    • getPopperJsVersion

      String getPopperJsVersion()
      Returns:
      The version of popper.js. CDN resources use it to construct their urls
    • autoAppendResources

      boolean autoAppendResources()
      Returns:
      True, if bootstrap resources should be added to each page automatically
    • getCssResourceReference

      ResourceReference getCssResourceReference()
      Returns:
      the base bootstrap css resource reference
    • getJsResourceReference

      ResourceReference getJsResourceReference()
      Returns:
      the base bootstrap JavaScript resource reference
    • getModernizrResourceReference

      ResourceReference getModernizrResourceReference()
      Returns:
      the modernizr JavaScript resource reference
    • getPopperJsResourceReference

      ResourceReference getPopperJsResourceReference()
      Returns:
      the popper.js JavaScript resource reference
    • setCssResourceReference

      IBootstrapSettings setCssResourceReference(ResourceReference reference)
      Parameters:
      reference - a reference to the base bootstrap css library. Defaults to the embedded bootstrap.css
      Returns:
      same instance for chaining
    • setCssRtlResourceReference

      IBootstrapSettings setCssRtlResourceReference(ResourceReference reference)
      Parameters:
      reference - a reference to the RTL (right-to-left) bootstrap css library. Defaults to the embedded bootstrap.rtl.css
      Returns:
      same instance for chaining
    • setJsResourceReference

      IBootstrapSettings setJsResourceReference(ResourceReference reference)
      Parameters:
      reference - a reference to the base bootstrap JavaScript library. Defaults to the embedded bootstrap.js
      Returns:
      same instance for chaining
    • setModernizrResourceReference

      IBootstrapSettings setModernizrResourceReference(ResourceReference reference)
      Parameters:
      reference - a reference to the Modernizr library. Defaults to the embedded modernizr.js
      Returns:
      same instance for chaining
    • setPopperJsResourceReference

      IBootstrapSettings setPopperJsResourceReference(ResourceReference popperJsResourceReference)
      Parameters:
      popperJsResourceReference - a reference to the Popper.js library. Defaults to the embedded popper.js.
      Returns:
      same instance for chaining
    • getJsResourceFilterName

      String getJsResourceFilterName()
      Returns:
      javascript resource filter name
    • setAutoAppendResources

      IBootstrapSettings setAutoAppendResources(boolean value)
      set value to true, if bootstrap resources should be added to each page automatically
      Parameters:
      value - true, if bootstrap resources should be added to each page automatically
      Returns:
      same instance for chaining
    • setJsResourceFilterName

      IBootstrapSettings setJsResourceFilterName(String name)
      sets the filter name for all bootstrap js resource references
      Parameters:
      name - javascript resource filter name
      Returns:
      same instance for chaining
    • setUpdateSecurityManager

      IBootstrapSettings setUpdateSecurityManager(boolean activate)
      if true, all necessary exceptions will be added to security manager to allow fonts and less files. (default is true)
      Parameters:
      activate - true, if security manger should be updated while installing these settings
      Returns:
      same instance for chaining
    • setDeferJavascript

      IBootstrapSettings setDeferJavascript(boolean defer)
      if true, the <script/> tag for the bootstrap javascript will get the defer="defer" attribute
      Parameters:
      defer -
      Returns:
      same instance for chaining
    • updateSecurityManager

      boolean updateSecurityManager()
      if true, all necessary exceptions will be added to security manager to allow fonts and less files. (default is true)
      Returns:
      true, if security manger should be updated while installing these settings
    • setActiveThemeProvider

      IBootstrapSettings setActiveThemeProvider(ActiveThemeProvider themeProvider)
      The ActiveThemeProvider provides access to the active theme
      Parameters:
      themeProvider - The ActiveThemeProvider instance
      Returns:
      same instance for chaining
    • getActiveThemeProvider

      ActiveThemeProvider getActiveThemeProvider()
      Returns:
      The ActiveThemeProvider instance
    • getThemeProvider

      ThemeProvider getThemeProvider()
      Returns:
      The ThemeProvider instance
    • setThemeProvider

      IBootstrapSettings setThemeProvider(ThemeProvider themeProvider)
      The ThemeProvider instance provides access to all available themes.
      Parameters:
      themeProvider - The ThemeProvider instance
      Returns:
      same instance for chaining
    • useCdnResources

      boolean useCdnResources()
      Returns:
      true, if the resources for the themes should be loaded from a CDN network
    • useWebjars

      boolean useWebjars()
      Returns:
      true, if wicket bootstrap uses the webjars library. If you don't want to use the webjars libraries, please set bootstrap css/js, modernizr reference to your own instance or call useCdnResources(boolean). Some components uses webjars references internally, so if you want to use them, please override the provided newXYHeaderItem() methods.
    • useCdnResources

      IBootstrapSettings useCdnResources(boolean useCdnResources)
      Parameters:
      useCdnResources - a flag indicating whether the resources for the themes should be loaded from a CDN network
      Returns:
      this instance