Module wicket.bootstrap.core
Class BootstrapResourcesBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapResourcesBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
#### Description
just includes all bootstrap resource references. If
IBootstrapSettings.autoAppendResources()
is true, there's no need to add it manually.
#### Usage
```java
component.add(BootstrapResourceBehavior.instance());
```- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BootstrapResourcesBehaviorinstance()voidrenderHead(IBootstrapSettings settings, IHeaderResponse headerResponse) render theBootstrapJavaScriptReferenceto the response.Methods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
addTo, getBootstrapSettings, removeFrom, renderHeadMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
BootstrapResourcesBehavior
public BootstrapResourcesBehavior()
-
-
Method Details
-
instance
- Returns:
- default instance of
BootstrapResourcesBehavior
-
renderHead
Description copied from class:BootstrapJavascriptBehaviorrender theBootstrapJavaScriptReferenceto the response.- Overrides:
renderHeadin classBootstrapJavascriptBehavior- Parameters:
settings- the boundIBootstrapSettingsheaderResponse- the currentIHeaderResponse
-