org.wicketstuff.calendarviews
Class AddCssClassBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.wicketstuff.calendarviews.AddCssClassBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.event.IEventSink, IClusterable, IHeaderContributor

public class AddCssClassBehavior
extends Behavior

A behavior for adding a class attribute of ICategorizedEvent events to a component, even if there is already a class on the tag. If there is, this behavior will add a space between the two classes.

Author:
Jeremy Thomerson
See Also:
Serialized Form

Constructor Summary
AddCssClassBehavior(IModel<IEvent> event)
           
 
Method Summary
 void onComponentTag(Component component, ComponentTag tag)
           
 
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, renderHead, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddCssClassBehavior

public AddCssClassBehavior(IModel<IEvent> event)
Method Detail

onComponentTag

public void onComponentTag(Component component,
                           ComponentTag tag)
Overrides:
onComponentTag in class Behavior


Copyright © 2011. All Rights Reserved.