Module wicket.bootstrap.core
Class BootstrapBaseBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
- Direct Known Subclasses:
AlignmentBehavior,BackgroundColorBehavior,BootstrapJavascriptBehavior,BorderBehavior,ButtonBehavior,ColorBehavior,ContainerBehavior,DropDownAlignmentBehavior,DropDownVariationBehavior,FormBehavior,HeadingBehavior,ImageBehavior,InputBehavior,ListBehavior,RowBehavior,ScrollSpyBehavior,SpanBehavior,TableBehavior
#### Description
The
BootstrapBaseBehavior renders the current active
ITheme which includes the BootstrapCssReference
if enabled to the response.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadds theBootstrapBaseBehaviorfrom givenComponentprotected final IBootstrapSettingsgetBootstrapSettings(Component component) returns theIBootstrapSettingsimplementation likeBootstrapSettingswhich was bound to the current application.static BootstrapBaseBehaviorinstance()static voidremoveFrom(Component component) removes theBootstrapBaseBehaviorfrom givenComponentvoidrenderHead(IBootstrapSettings settings, IHeaderResponse headerResponse) Render the current activeIThemewhich includes allResourceReferenceobjects if enabled to the response.voidrenderHead(Component component, IHeaderResponse headerResponse) Methods 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
-
BootstrapBaseBehavior
public BootstrapBaseBehavior()
-
-
Method Details
-
instance
- Returns:
- bootstrap base behavior instance
-
removeFrom
removes theBootstrapBaseBehaviorfrom givenComponent- Parameters:
component- The component to remove the behavior from.
-
addTo
adds theBootstrapBaseBehaviorfrom givenComponent- Parameters:
component- The component to add the behavior to.
-
getBootstrapSettings
returns theIBootstrapSettingsimplementation likeBootstrapSettingswhich was bound to the current application.- Parameters:
component- the bound component- Returns:
- the bound
IBootstrapSettings
-
renderHead
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classBehavior
-
renderHead
Render the current activeIThemewhich includes allResourceReferenceobjects if enabled to the response. Also it allows all subclasses to get theIBootstrapSettingsby overriding this method.- Parameters:
settings- the boundIBootstrapSettingsheaderResponse- the currentIHeaderResponse
-