net.databinder.components
Class AlternatingClassModifier

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.AttributeModifier
          extended by net.databinder.components.AlternatingClassModifier
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor

public class AlternatingClassModifier
extends org.apache.wicket.AttributeModifier

Alternates between class attribute values of "a" and "b", or user selected values, for even and odd ListItem components.

Author:
Nathan Hamblen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.AttributeModifier
VALUELESS_ATTRIBUTE_ADD, VALUELESS_ATTRIBUTE_REMOVE
 
Constructor Summary
AlternatingClassModifier(org.apache.wicket.markup.html.list.ListItem item)
          Constructs AttributeModifier for "class" with values "a" or "b".
AlternatingClassModifier(org.apache.wicket.markup.html.list.ListItem item, java.lang.String classA, java.lang.String classB)
          Constructs AttributeModifier for "class" with the given alternating class values.
 
Method Summary
 
Methods inherited from class org.apache.wicket.AttributeModifier
detach, getAddAttributeIfNotPresent, getAttribute, getContextRelativeValue, getPattern, getReplaceModel, isEnabled, isEnabled, newValue, onComponentTag, replaceAttibuteValue, setEnabled, toString
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, bind, cleanup, detachModel, exception, getStatelessHint, isTemporary, onException, onRendered, rendered, renderHead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlternatingClassModifier

public AlternatingClassModifier(org.apache.wicket.markup.html.list.ListItem item)
Constructs AttributeModifier for "class" with values "a" or "b".

Parameters:
item - Object whose index determines class value.

AlternatingClassModifier

public AlternatingClassModifier(org.apache.wicket.markup.html.list.ListItem item,
                                java.lang.String classA,
                                java.lang.String classB)
Constructs AttributeModifier for "class" with the given alternating class values.

Parameters:
item - Object whose index determines class value.


Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.