Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.core.markup.html.bootstrap.button;
 
 
Combine sets of
into a
for more complex components.

Author(s):
miha
public final class ToolbarBehavior extends Behavior {
    @Override
    public void onComponentTag(final Component componentfinal ComponentTag tag) {
        super.onComponentTag(componenttag);
        Components.assertTag(componenttag"div");
        Attributes.addClass(tag"btn-toolbar");
    }
    @Override
    public void unbind(Component component) {
        super.unbind(component);
        BootstrapBaseBehavior.removeFrom(component);
    }
    @Override
    public void bind(Component component) {
        super.bind(component);
        BootstrapBaseBehavior.addTo(component);
    }
New to GrepCode? Check out our FAQ X