|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.wicket.bootstrap.Bootstrap
public class Bootstrap
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.
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 |
|---|
public static final CssResourceReference BOOTSTRAP_CSS
public static final CssResourceReference BOOTSTRAP_RESPONSIVE_CSS
| Method Detail |
|---|
public static JavaScriptResourceReference plain()
public static JavaScriptResourceReference responsive()
public static void renderHeadPlain(IHeaderResponse response)
public static void renderHeadResponsive(IHeaderResponse response)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||