org.apache.wicket.bootstrap
Class Bootstrap

java.lang.Object
  extended by org.apache.wicket.bootstrap.Bootstrap

public class Bootstrap
extends Object

Resources for Twitter Bootstrap. This class exposes a plain and a responsive bootstrap resource reference. The resource references have the correct dependencies: jquery, bootstrap (responsive) stylesheet and javascript. They will use the minified variants when running in deployment mode. For your convenience you can also use renderHeadPlain(IHeaderResponse) and renderHeadResponsive(IHeaderResponse) to write these references to the header.

Example

 public class BootstrapPage extends WebPage
 {
        public void renderHead(IHeaderResponse response)
        {
                Bootstrap.renderHeadResponsive(response);
        }
 }
 


Field Summary
static CssResourceReference BOOTSTRAP_CSS
           
static CssResourceReference BOOTSTRAP_RESPONSIVE_CSS
           
 
Method Summary
static JavaScriptResourceReference plain()
          Defines a resource reference for plain, non-responsive bootstrap.
static void renderHeadPlain(IHeaderResponse response)
          Convenience method for rendering a dependency on bootstrap (without responsive layout) in your header.
static void renderHeadResponsive(IHeaderResponse response)
          Convenience method for rendering a dependency on bootstrap (with responsive layout) in your header.
static JavaScriptResourceReference responsive()
          Defines a resource reference for responsive bootstrap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOTSTRAP_CSS

public static final CssResourceReference BOOTSTRAP_CSS

BOOTSTRAP_RESPONSIVE_CSS

public static final CssResourceReference BOOTSTRAP_RESPONSIVE_CSS
Method Detail

plain

public static JavaScriptResourceReference plain()
Defines a resource reference for plain, non-responsive bootstrap. This resource reference depends on jquery, bootstrap.css and bootstrap.js

Returns:
a bootstrap resource reference that includes everything necessary for bootstrap

responsive

public static JavaScriptResourceReference responsive()
Defines a resource reference for responsive bootstrap. This resource reference depends on jquery, bootstrap.css, bootstrap-responsive.css and bootstrap.js

Returns:
a bootstrap resource reference that includes everything necessary for responsive bootstrap

renderHeadPlain

public static void renderHeadPlain(IHeaderResponse response)
Convenience method for rendering a dependency on bootstrap (without responsive layout) in your header.


renderHeadResponsive

public static void renderHeadResponsive(IHeaderResponse response)
Convenience method for rendering a dependency on bootstrap (with responsive layout) in your header.



Copyright © 2006–2014 Apache Software Foundation. All rights reserved.